Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/cargo/diagnostics/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,6 @@ fn emit_parse_ws_diagnostics(workspace: &Workspace<'_>) -> CargoResult<()> {
&mut stats,
workspace.gctx(),
)?;
}

// This is a short term hack to allow `blanket_hint_mostly_unused`
// to run without requiring `-Zcargo-lints`, which should hopefully
// improve the testing experience while we are collecting feedback
if workspace.gctx().cli_unstable().profile_hint_mostly_unused {
Comment on lines -232 to -235

@Muscraft Muscraft May 20, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joshtriplett, just wanted to make you aware of this change

View changes since the review

blanket_hint_mostly_unused(
workspace,
workspace.root_maybe(),
Expand Down
8 changes: 4 additions & 4 deletions tests/testsuite/lints/blanket_hint_mostly_unused.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ hint-mostly-unused = true
)
.file("src/main.rs", "fn main() {}")
.build();
p.cargo("check -Zprofile-hint-mostly-unused -v")
p.cargo("check -Zprofile-hint-mostly-unused -Zcargo-lints -Zcargo-lints -v")
.masquerade_as_nightly_cargo(&["profile-hint-mostly-unused", "cargo-lints"])
.with_stderr_data(str![[r#"
[WARNING] `hint-mostly-unused` is being blanket applied to all dependencies
Expand Down Expand Up @@ -61,7 +61,7 @@ hint-mostly-unused = true
)
.file("src/main.rs", "fn main() {}")
.build();
p.cargo("check -Zprofile-hint-mostly-unused -v")
p.cargo("check -Zprofile-hint-mostly-unused -Zcargo-lints -v")
.masquerade_as_nightly_cargo(&["profile-hint-mostly-unused", "cargo-lints"])
.with_stderr_data(str![[r#"
[WARNING] `hint-mostly-unused` is being blanket applied to all dependencies
Expand Down Expand Up @@ -100,7 +100,7 @@ hint-mostly-unused = true
)
.file("src/main.rs", "fn main() {}")
.build();
p.cargo("check -Zprofile-hint-mostly-unused -v")
p.cargo("check -Zprofile-hint-mostly-unused -Zcargo-lints -v")
.masquerade_as_nightly_cargo(&["profile-hint-mostly-unused", "cargo-lints"])
.with_stderr_data(str![[r#"
[WARNING] `hint-mostly-unused` is being blanket applied to all dependencies
Expand Down Expand Up @@ -148,7 +148,7 @@ authors = []
.file("foo/src/lib.rs", "")
.build();

p.cargo("check -Zprofile-hint-mostly-unused -v")
p.cargo("check -Zprofile-hint-mostly-unused -Zcargo-lints -v")
.masquerade_as_nightly_cargo(&["profile-hint-mostly-unused", "cargo-lints"])
.with_stderr_data(str![[r#"
[WARNING] `hint-mostly-unused` is being blanket applied to all dependencies
Expand Down