Skip to content

Commit b88cb3d

Browse files
committed
bootstrap: work around "unused attribute" errors in incremental stdlib rebuilds.
1 parent 39b6253 commit b88cb3d

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)