Skip to content

Commit 72b8a31

Browse files
authored
Rollup merge of #71736 - RalfJung:silence-spurious-unused, r=Mark-Simulacrum
bootstrap: also apply unused-attributes hack without deny_warnings This is a follow-up to #70881 that also silences these warnings when deny_warnings is off. They otherwise spam my screen during development and make it hard to see actual warnings. Cc @eddyb r? @Mark-Simulacrum
2 parents cd824a5 + 6c8ae7c commit 72b8a31

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bootstrap/builder.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1088,13 +1088,13 @@ impl<'a> Builder<'a> {
10881088

10891089
if self.config.deny_warnings {
10901090
rustflags.arg("-Dwarnings");
1091+
}
10911092

1092-
// FIXME(#58633) hide "unused attribute" errors in incremental
1093-
// builds of the standard library, as the underlying checks are
1094-
// not yet properly integrated with incremental recompilation.
1095-
if mode == Mode::Std && compiler.stage == 0 && self.config.incremental {
1096-
rustflags.arg("-Aunused-attributes");
1097-
}
1093+
// FIXME(#58633) hide "unused attribute" errors in incremental
1094+
// builds of the standard library, as the underlying checks are
1095+
// not yet properly integrated with incremental recompilation.
1096+
if mode == Mode::Std && compiler.stage == 0 && self.config.incremental {
1097+
rustflags.arg("-Aunused-attributes");
10981098
}
10991099
}
11001100

0 commit comments

Comments
 (0)