]> git.lizzy.rs Git - rust.git/commitdiff
Deny `internal` in stage0
authorMateusz Mikuła <matti@marinelayer.io>
Mon, 15 Apr 2019 11:35:08 +0000 (13:35 +0200)
committerMazdak Farrokhzad <twingoow@gmail.com>
Wed, 17 Apr 2019 03:15:00 +0000 (05:15 +0200)
27 files changed:
src/bootstrap/bin/rustc.rs
src/libarena/lib.rs
src/libfmt_macros/lib.rs
src/librustc/lib.rs
src/librustc/ty/mod.rs
src/librustc_allocator/lib.rs
src/librustc_borrowck/lib.rs
src/librustc_codegen_ssa/lib.rs
src/librustc_codegen_utils/lib.rs
src/librustc_driver/lib.rs
src/librustc_errors/lib.rs
src/librustc_incremental/lib.rs
src/librustc_interface/lib.rs
src/librustc_lint/lib.rs
src/librustc_metadata/lib.rs
src/librustc_mir/lib.rs
src/librustc_passes/lib.rs
src/librustc_privacy/lib.rs
src/librustc_resolve/lib.rs
src/librustc_save_analysis/lib.rs
src/librustc_target/lib.rs
src/librustc_traits/lib.rs
src/librustc_typeck/lib.rs
src/librustdoc/lib.rs
src/libsyntax/lib.rs
src/libsyntax_ext/lib.rs
src/libsyntax_pos/lib.rs

index a76584093fc760acd40ba40dee4574a9e58973d7..a8f0d24ce63db9de984bdd36fa4c4f240268fbea 100644 (file)
@@ -290,9 +290,7 @@ fn main() {
     }
 
     // This is required for internal lints.
-    if stage != "0" {
-        cmd.arg("-Zunstable-options");
-    }
+    cmd.arg("-Zunstable-options");
 
     // Force all crates compiled by this compiler to (a) be unstable and (b)
     // allow the `rustc_private` feature to link to other unstable crates
index cfe317a00f9067fb2a994dcc91bd8ab6435923af..ce5e5f23a94b81e0745d9acaae662bea75adf719 100644 (file)
@@ -12,7 +12,7 @@
        test(no_crate_inject, attr(deny(warnings))))]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #![feature(core_intrinsics)]
 #![feature(dropck_eyepatch)]
index 2536121c7a3247da618679eeea97c298e361de9a..6fed83021609d76a16a4cf8dc2302a836d92a0bb 100644 (file)
@@ -9,7 +9,7 @@
        test(attr(deny(warnings))))]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #![feature(nll)]
 #![feature(rustc_private)]
index c5c2cbfcb89404cdc1c568cd86525d02854f9f4a..4cbf8e3ecfc66ec03a0f4379427ac5738e0347b4 100644 (file)
@@ -29,7 +29,7 @@
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 #![allow(explicit_outlives_requirements)]
 
 #![feature(arbitrary_self_types)]
index d24395ac9c18285573ec0e49d0272de46886990b..4aca01d9411c79c47f0a41716acc268895ec2a6b 100644 (file)
@@ -1,4 +1,4 @@
-#![cfg_attr(not(stage0), allow(usage_of_ty_tykind))]
+#![allow(usage_of_ty_tykind)]
 
 pub use self::Variance::*;
 pub use self::AssociatedItemContainer::*;
index a9e422fb238b8ef3b173928745a0062cd1754379..3aef5a76a3a05c9c652b7f825069fe6ce4d7d1ab 100644 (file)
@@ -2,7 +2,7 @@
 #![feature(rustc_private)]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 pub mod expand;
 
index 3761a52bcccf2d8da1c4a2edfbcabf3e8b2de739..14bc77f380accdb9654dabdc5bc8325c66e3c9b5 100644 (file)
@@ -2,7 +2,7 @@
 
 #![allow(non_camel_case_types)]
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #![feature(nll)]
 
index e2917578c0ece4c3c098113fd1601ffa5d1f418c..c6e689f2e83c38f65ce92a3fc85d030aa75278f7 100644 (file)
@@ -14,7 +14,7 @@
 #![allow(unused_attributes)]
 #![allow(dead_code)]
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 #![allow(explicit_outlives_requirements)]
 
 #![recursion_limit="256"]
index 330cfe154e302814e9034e6e354cfc6314f6ea93..437515f1e9ab4855744cd09cb19ebbcc31321fc5 100644 (file)
@@ -16,7 +16,7 @@
 #![recursion_limit="256"]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #[macro_use]
 extern crate rustc;
index 66c7c9d0eae7e53de36e854819c8138a3d9db90a..6a5accc8d7f05130b86be0293ffcbed2cbebb253 100644 (file)
@@ -17,7 +17,7 @@
 #![recursion_limit="256"]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 pub extern crate getopts;
 #[cfg(unix)]
index 71bef54cd17a12c30ce796f1e14e241d97f8b0e6..cb45e13c4d2dc98e0ca59700dc9cfe9d17b16148 100644 (file)
@@ -6,7 +6,7 @@
 #![feature(nll)]
 #![feature(optin_builtin_traits)]
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #[allow(unused_extern_crates)]
 extern crate serialize as rustc_serialize; // used by deriving
index d7db324f3463efa9b723295a2c9c7ae8c0477baf..eb82885abee06e6dd2f851261be2d219e456f4dc 100644 (file)
@@ -8,7 +8,7 @@
 #![recursion_limit="256"]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #[macro_use] extern crate rustc;
 #[allow(unused_extern_crates)]
index 353ff6a57a5efee02c99134bc49e470b7c4aa4a2..d1e2a1a4ad5063baa20cfc70632da6758b1800b3 100644 (file)
@@ -7,7 +7,7 @@
 #![cfg_attr(unix, feature(libc))]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #![allow(unused_imports)]
 
index 9354f203e4e4ecb02b8f45807eecb58defc590ed..ff5e4f02554cc40a234ad015a351c7ef7fc6e7a2 100644 (file)
@@ -20,7 +20,7 @@
 #![recursion_limit="256"]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #[macro_use]
 extern crate rustc;
index 4078171733fc3fd5862ae3028743f835734cee33..d052e13f9c0a7fd02215a6b0799ae058891efc4f 100644 (file)
@@ -14,7 +14,7 @@
 #![recursion_limit="256"]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 extern crate libc;
 #[allow(unused_extern_crates)]
index deeed9a0b9846ecc4892e66fc5de96f3c8550ea0..a16eaf011c86e8eee3ffc2375979360548deef32 100644 (file)
@@ -28,7 +28,7 @@
 #![recursion_limit="256"]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 #![allow(explicit_outlives_requirements)]
 
 #[macro_use] extern crate log;
index 20442a4a566ece72d545793798884de7118bf043..db8fcaa5693898a4ac092d3b870b56975de691b6 100644 (file)
@@ -12,7 +12,7 @@
 #![recursion_limit="256"]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #[macro_use]
 extern crate rustc;
index 44621e5dc95d1b2b823f810fc109a6f7c64c780a..ef315c5f95502fbb919b196658bafcd61c273192 100644 (file)
@@ -1,7 +1,7 @@
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #![feature(nll)]
 #![feature(rustc_diagnostic_macros)]
index 96aac977297979cbe8d14af8f0300dd9e94f6ddb..864fc2ebaec77637eb5194e54bdfc687669ade38 100644 (file)
@@ -9,7 +9,7 @@
 #![recursion_limit="256"]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 pub use rustc::hir::def::{Namespace, PerNS};
 
index ce0decaee496fb67cbf1e99b72741e72175dd70c..d901fb2bff8c7aa15b91e3ff8c723d11ece24c6e 100644 (file)
@@ -2,7 +2,7 @@
 #![feature(custom_attribute)]
 #![feature(nll)]
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 #![allow(unused_attributes)]
 
 #![recursion_limit="256"]
index f1812c20dccde3bab91d7005aa09ef4bb46d5493..3fcf08adb5c8e2766c1c58630ab1b60ae93e8f19 100644 (file)
@@ -16,7 +16,7 @@
 #![feature(step_trait)]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #[macro_use] extern crate log;
 
index bc034e1fb16278fd6d0836a67ea141c14fbc072f..959130f1cf2289e344345314ae5b2a3bd82b7d87 100644 (file)
@@ -2,7 +2,7 @@
 //! the guts are broken up into modules; see the comments in those modules.
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #![feature(crate_visibility_modifier)]
 #![feature(in_band_lifetimes)]
index 21d1af229ddc2815a4536ed9499cff0adf4378e6..4320e28d676edb69c75e4510a51e032b86f432ea 100644 (file)
@@ -71,7 +71,7 @@
 #![recursion_limit="256"]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 #![allow(explicit_outlives_requirements)]
 
 #[macro_use] extern crate log;
index 6cb937d9216ac857b3773c2a27ea1ea9457dea1d..5b76f6861de79b084739f850186c562626032695 100644 (file)
@@ -1,5 +1,5 @@
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/",
        html_playground_url = "https://play.rust-lang.org/")]
index 9905b981395c0d886c7a50691dbaf89a60a670e6..1486909b276920937caedf74c0a58027ba2783c9 100644 (file)
@@ -8,7 +8,7 @@
        test(attr(deny(warnings))))]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #![feature(crate_visibility_modifier)]
 #![feature(label_break_value)]
index ee0b86963f31dcdc9f7da4b3a298b0b82ed6f8e1..8371d27207589faf27cbc3a08463d6f2dfe151f1 100644 (file)
@@ -3,7 +3,7 @@
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #![feature(in_band_lifetimes)]
 #![feature(proc_macro_diagnostic)]
index 1ad556bbcfa5637fe9cab41c574169a36eeb3d6e..3f09405a5c8c6ed98850e25aab84920cf06b1fda 100644 (file)
@@ -7,7 +7,7 @@
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
 
 #![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
 
 #![feature(const_fn)]
 #![feature(crate_visibility_modifier)]