fix: add workaround for current compiler version

This commit is contained in:
Ulf Lilleengen 2025-08-16 12:24:14 +02:00
parent cd7a7f97c0
commit 1f9452e076
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,7 @@ flate2 = "1.1.1"
[patch.crates-io]
cargo-semver-checks = { git = "https://github.com/lulf/cargo-semver-checks.git", rev="385f274edcbb6bf5156e30a94315852b27a527e6" }
#cargo-semver-checks = { path = "../../cargo-semver-checks" }
[package.metadata.embassy]
skip = true

View File

@ -13,6 +13,9 @@ pub fn minimum_update(krate: &Crate) -> Result<ReleaseType, anyhow::Error> {
let package_name = krate.name.clone();
let current_path = build_doc_json(krate, config)?;
// TODO: Prevent compiler panic on current compiler version
std::env::set_var("RUSTFLAGS", "--cap-lints=warn");
let baseline = Rustdoc::from_registry_latest_crate_version();
let doc = Rustdoc::from_path(&current_path);
let mut semver_check = Check::new(doc);