diff options
| author | flip1995 <hello@philkrones.com> | 2019-06-24 10:43:51 +0200 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2019-06-24 10:45:21 +0200 |
| commit | 7de6f5472812a7dde8ffba399b71a3c558cd44bf (patch) | |
| tree | 83e7cd0180cbcd1b3c22e9b540ffe216c3de9007 /src/bootstrap | |
| parent | 08b81f2d070fdeb5364c96ccb2fdd8d992dff955 (diff) | |
| download | rust-7de6f5472812a7dde8ffba399b71a3c558cd44bf.tar.gz rust-7de6f5472812a7dde8ffba399b71a3c558cd44bf.zip | |
Turn internal lints into tool lints
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 5b5e9e0def2..a1333ff3dc7 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -306,10 +306,14 @@ fn main() { } // This is required for internal lints. + cmd.arg("-Zunstable-options"); if let Some(crate_name) = args.windows(2).find(|a| &*a[0] == "--crate-name") { let crate_name = crate_name[1].to_string_lossy(); - if crate_name.starts_with("rustc") || crate_name.starts_with("syntax") { - cmd.arg("-Zunstable-options"); + if crate_name.starts_with("rustc") + || crate_name.starts_with("syntax") + || crate_name == "arena" + || crate_name == "fmt_macros" + { if stage != "0" { cmd.arg("-Wrustc::internal"); } |
