Skip to content

Commit

Permalink
Fix diplomat-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Dec 19, 2024
1 parent a061080 commit 1656eab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/make/diplomat-coverage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2021"
diplomat_core = { workspace = true }
elsa = { workspace = true }
lazy_static = "1"
rustdoc-types = "0.24"
rustdoc-types = "0.28"
serde_json = { workspace = true }
syn-inline-mod = "0.6.0"

1 change: 1 addition & 0 deletions tools/make/diplomat-coverage/src/allowlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ lazy_static::lazy_static! {
"Borrow",
"BorrowMut",
"Clone",
"CloneToUninit",
"Copy",
"Debug",
"Default", // We expose this when we see fit
Expand Down
7 changes: 3 additions & 4 deletions tools/make/diplomat-coverage/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,15 @@ fn collect_public_types(krate: &str) -> impl Iterator<Item = (Vec<String>, ast::
if CRATES.get(krate).is_none() {
eprintln!("Parsing crate {krate}");
std::process::Command::new("rustup")
.args(["install", "nightly-2024-01-01"])
.args(["install", "nightly-2024-07-23"])
.output()
.expect("failed to install nightly");
let output = std::process::Command::new("rustup")
.args([
"run",
"nightly-2024-01-01",
"nightly-2024-07-23",
"cargo",
"rustdoc",
"-Zsparse-registry",
"-p",
krate,
"--all-features",
Expand Down Expand Up @@ -337,7 +336,7 @@ fn collect_public_types(krate: &str) -> impl Iterator<Item = (Vec<String>, ast::
}
insert_ty(types, path, ast::DocType::Trait);
}
ItemEnum::Constant(_) => {
ItemEnum::Constant { .. } => {
insert_ty(types, path, ast::DocType::Constant);
}
ItemEnum::Function(_) => {
Expand Down

0 comments on commit 1656eab

Please sign in to comment.