Skip to content

Commit

Permalink
bootstrap: work around "unused attribute" errors in incremental stdli…
Browse files Browse the repository at this point in the history
…b rebuilds.
  • Loading branch information
eddyb committed Apr 7, 2020
1 parent 39b6253 commit b88cb3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,13 @@ impl<'a> Builder<'a> {

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");
}
}
}

Expand Down

0 comments on commit b88cb3d

Please sign in to comment.