bootstrap: work around "unused attribute" errors in incremental stdlib rebuilds.

This commit is contained in:
Eduard-Mihai Burtescu 2020-04-07 14:59:07 +03:00
parent 39b62533c7
commit b88cb3dc11

View File

@ -1099,6 +1099,13 @@ pub fn cargo(
if self.config.deny_warnings {
rustflags.arg("-Dwarnings");
// FIXME(#58633) hide "unused attribute" errors in incremental
// builds of the standard library, as the underlying checks are
// not yet properly integrated with incremental recompilation.
if mode == Mode::Std && compiler.stage == 0 && self.config.incremental {
rustflags.arg("-Aunused-attributes");
}
}
}