diff options
| author | bors <bors@rust-lang.org> | 2017-05-13 05:22:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-05-13 05:22:08 +0000 |
| commit | 4f3886abf1b52d0804564c043fd699da039a12fb (patch) | |
| tree | 2ed7e676dca983647f80990de2523c22c7514eff /src/libsyntax | |
| parent | d5f1cfd0fedc3eaa42ce0be3d5e36c13061d397d (diff) | |
| parent | ab54f4b226639558ff46ea1f3e3f504aacef562d (diff) | |
| download | rust-4f3886abf1b52d0804564c043fd699da039a12fb.tar.gz rust-4f3886abf1b52d0804564c043fd699da039a12fb.zip | |
Auto merge of #41847 - alexcrichton:less-unstable-annotations, r=eddyb
rustc: Add a new `-Z force-unstable-if-unmarked` flag This commit adds a new `-Z` flag to the compiler for use when bootstrapping the compiler itself. We want to be able to use crates.io crates, but we also want the usage of such crates to be as ergonomic as possible! To that end compiler crates are a little tricky in that the crates.io crates are not annotated as unstable, nor do they expect to pull in unstable dependencies. To cover all these situations it's intended that the compiler will forever now bootstrap with `-Z force-unstable-if-unmarked`. This flags serves a dual purpose of forcing crates.io crates to themselves be unstable while also allowing them to use other "unstable" crates.io crates. This should mean that adding a dependency to compiler no longer requires upstream modification with unstable/staged_api attributes for inclusion!
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 89c67b88cbd..32dafcdb582 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -15,7 +15,6 @@ //! This API is completely unstable and subject to change. #![crate_name = "syntax"] -#![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", @@ -24,12 +23,14 @@ test(attr(deny(warnings))))] #![deny(warnings)] -#![feature(rustc_private)] -#![feature(staged_api)] #![feature(unicode)] #![feature(rustc_diagnostic_macros)] #![feature(i128_type)] +#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))] +#![cfg_attr(stage0, feature(rustc_private))] +#![cfg_attr(stage0, feature(staged_api))] + extern crate serialize; #[macro_use] extern crate log; #[macro_use] extern crate bitflags; |
