diff options
| author | flip1995 <hello@philkrones.com> | 2019-06-24 18:14:04 +0200 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2019-06-24 18:14:04 +0200 |
| commit | 8e087cdd98850f9bdb998ddfa6c4dfe2d4553260 (patch) | |
| tree | dabe042d99665a6ea9f1ca9f3eebedb34bdff3b7 /src/bootstrap/bin | |
| parent | 7de6f5472812a7dde8ffba399b71a3c558cd44bf (diff) | |
| download | rust-8e087cdd98850f9bdb998ddfa6c4dfe2d4553260.tar.gz rust-8e087cdd98850f9bdb998ddfa6c4dfe2d4553260.zip | |
Use symbols in lint tool list
Diffstat (limited to 'src/bootstrap/bin')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index a1333ff3dc7..242074fec77 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -306,14 +306,15 @@ 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") - || crate_name == "arena" - || crate_name == "fmt_macros" + if crate_name != "rustc_version" + && (crate_name.starts_with("rustc") + || crate_name.starts_with("syntax") + || crate_name == "arena" + || crate_name == "fmt_macros") { + cmd.arg("-Zunstable-options"); if stage != "0" { cmd.arg("-Wrustc::internal"); } |
