]> git.lizzy.rs Git - rust.git/blobdiff - src/libgetopts/lib.rs
rustc: Remove #![unstable] annotation
[rust.git] / src / libgetopts / lib.rs
index a5cd9fab2cf4bca92f621174243f803c904c6b0d..c69c68ba59c011a65e6b3aaa873f4fdb690d584e 100644 (file)
@@ -78,9 +78,9 @@
 //! ```
 
 #![crate_name = "getopts"]
-#![unstable(feature = "rustc_private",
+#![cfg_attr(stage0, unstable(feature = "rustc_private",
             reason = "use the crates.io `getopts` library instead",
-            issue = "27812")]
+            issue = "27812"))]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -91,7 +91,7 @@
 
 #![deny(missing_docs)]
 #![deny(warnings)]
-#![feature(staged_api)]
+#![cfg_attr(stage0, feature(staged_api))]
 
 use self::Name::*;
 use self::HasArg::*;