File tree 7 files changed +20
-1
lines changed
7 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ pub use crate::sys::windows_ext as windows;
23
23
pub mod linux;
24
24
25
25
#[ cfg( doc) ]
26
+ #[ stable( feature = "wasi_ext_doc" , since = "1.35.0" ) ]
26
27
pub use crate :: sys:: wasi_ext as wasi;
27
28
28
29
// If we're not documenting libstd then we just expose the main modules as we otherwise would.
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ cfg_if::cfg_if! {
111
111
cfg_if:: cfg_if! {
112
112
if #[ cfg( target_os = "wasi" ) ] {
113
113
// On WASI we'll document what's already available
114
- #[ stable( feature = "rust1 " , since = "1.0 .0" ) ]
114
+ #[ stable( feature = "wasi_ext_doc " , since = "1.35 .0" ) ]
115
115
pub use self :: ext as wasi_ext;
116
116
} else if #[ cfg( any( target_os = "hermit" ,
117
117
target_arch = "wasm32" ,
@@ -125,6 +125,7 @@ cfg_if::cfg_if! {
125
125
} else {
126
126
// On other platforms like Windows document the bare bones of WASI
127
127
#[ path = "wasi/ext/mod.rs" ]
128
+ #[ stable( feature = "wasi_ext_doc" , since = "1.35.0" ) ]
128
129
pub mod wasi_ext;
129
130
}
130
131
}
Original file line number Diff line number Diff line change @@ -491,6 +491,7 @@ crate fn run_global_ctxt(
491
491
tcx. ensure ( ) . check_mod_attrs ( module) ;
492
492
}
493
493
} ) ;
494
+ rustc_passes:: stability:: check_unused_or_stable_features ( tcx) ;
494
495
495
496
let access_levels = tcx. privacy_access_levels ( LOCAL_CRATE ) ;
496
497
// Convert from a HirId set to a DefId set since we don't always have easy access
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ extern crate rustc_metadata;
49
49
extern crate rustc_middle;
50
50
extern crate rustc_mir;
51
51
extern crate rustc_parse;
52
+ extern crate rustc_passes;
52
53
extern crate rustc_resolve;
53
54
extern crate rustc_session;
54
55
extern crate rustc_span as rustc_span;
Original file line number Diff line number Diff line change
1
+ #![ feature( box_syntax) ]
2
+ #![ feature( box_syntax) ] //~ ERROR
3
+
4
+ pub fn foo ( ) { }
Original file line number Diff line number Diff line change
1
+ error[E0636]: the feature `box_syntax` has already been declared
2
+ --> $DIR/rustc-check-passes.rs:2:12
3
+ |
4
+ LL | #![feature(box_syntax)]
5
+ | ^^^^^^^^^^
6
+
7
+ error: aborting due to previous error
8
+
9
+ For more information about this error, try `rustc --explain E0636`.
Original file line number Diff line number Diff line change
1
+ #![ stable( feature = "bar" , since = "OLD 1.0" ) ]
1
2
#![ crate_name = "foo" ]
2
3
3
4
#![ feature( staged_api) ]
@@ -8,6 +9,7 @@ pub trait Bar {}
8
9
#[ stable( feature = "baz" , since = "OLD 1.0" ) ]
9
10
pub trait Baz { }
10
11
12
+ #[ stable( feature = "baz" , since = "OLD 1.0" ) ]
11
13
pub struct Foo ;
12
14
13
15
// @has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' 'NEW 2.0'
You can’t perform that action at this time.
0 commit comments