Skip to content

Commit 4dfa73a

Browse files
authored
Rollup merge of rust-lang#70881 - eddyb:stage0-hide-incremental-unused-attrs, r=Mark-Simulacrum
bootstrap: work around "unused attribute" errors in incremental stdlib rebuilds. This should alleviate rust-lang#58633 separately from a proper fix. r? @Mark-Simulacrum
2 parents 426fb27 + b88cb3d commit 4dfa73a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bootstrap/builder.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,13 @@ impl<'a> Builder<'a> {
10991099

11001100
if self.config.deny_warnings {
11011101
rustflags.arg("-Dwarnings");
1102+
1103+
// FIXME(#58633) hide "unused attribute" errors in incremental
1104+
// builds of the standard library, as the underlying checks are
1105+
// not yet properly integrated with incremental recompilation.
1106+
if mode == Mode::Std && compiler.stage == 0 && self.config.incremental {
1107+
rustflags.arg("-Aunused-attributes");
1108+
}
11021109
}
11031110
}
11041111

0 commit comments

Comments
 (0)