about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/bin/rustc.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs
index 34bd62d300d..5b5e9e0def2 100644
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -310,7 +310,9 @@ fn main() {
         let crate_name = crate_name[1].to_string_lossy();
         if crate_name.starts_with("rustc") || crate_name.starts_with("syntax") {
             cmd.arg("-Zunstable-options");
-            cmd.arg("-Winternal");
+            if stage != "0" {
+                cmd.arg("-Wrustc::internal");
+            }
         }
     }