about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2020-04-07 14:59:07 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2020-04-07 14:59:07 +0300
commitb88cb3dc114a04800c5361a8a6a826cd0c554b5b (patch)
treee1ea19db6efd73151d1dd2369dc262ec0fc8d18d /src/bootstrap
parent39b62533c7f9d0581a6ea9b9fc2cc51f21c3b5b0 (diff)
bootstrap: work around "unused attribute" errors in incremental stdlib rebuilds.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/builder.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index b14352d7f4b..7fc089d18f1 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -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");
+                }
             }
         }