diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-01-21 15:26:19 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-01-24 20:35:55 -0800 |
| commit | 2273b5202354b3091f493cfcfa5bf48165e92b1e (patch) | |
| tree | b2278359e6147284131500eed2706c8a93c9fbe0 /src/libsyntax_ext | |
| parent | 6866f1361debf5857856ff95eeee806bb7bea738 (diff) | |
| download | rust-2273b5202354b3091f493cfcfa5bf48165e92b1e.tar.gz rust-2273b5202354b3091f493cfcfa5bf48165e92b1e.zip | |
mk: Move from `-D warnings` to `#![deny(warnings)]`
This commit removes the `-D warnings` flag being passed through the makefiles to all crates to instead be a crate attribute. We want these attributes always applied for all our standard builds, and this is more amenable to Cargo-based builds as well. Note that all `deny(warnings)` attributes are gated with a `cfg(stage0)` attribute currently to match the same semantics we have today
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax_ext/lib.rs b/src/libsyntax_ext/lib.rs index 0f049fa9792..97531d4279d 100644 --- a/src/libsyntax_ext/lib.rs +++ b/src/libsyntax_ext/lib.rs @@ -11,13 +11,13 @@ //! Syntax extensions in the Rust compiler. #![crate_name = "syntax_ext"] +#![unstable(feature = "rustc_private", issue = "27812")] #![crate_type = "dylib"] #![crate_type = "rlib"] #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", html_favicon_url = "https://doc.rust-lang.org/favicon.ico", html_root_url = "https://doc.rust-lang.org/nightly/")] - -#![unstable(feature = "rustc_private", issue = "27812")] +#![cfg_attr(not(stage0), deny(warnings))] #![feature(rustc_private)] #![feature(staged_api)] |
