File tree 3 files changed +8
-11
lines changed
3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,9 @@ impl<'a> Annotator<'a> {
95
95
let tag = attr. name ( ) ;
96
96
if tag == "unstable" || tag == "stable" || tag == "deprecated" {
97
97
attr:: mark_used ( attr) ;
98
- self . sess . span_warn ( attr. span ( ) ,
99
- "stability attributes are deprecated \
100
- and will soon become errors ") ;
98
+ self . sess . span_err ( attr. span ( ) ,
99
+ "stability attributes may not be used outside \
100
+ of the standard library ") ;
101
101
}
102
102
}
103
103
f ( self ) ;
Original file line number Diff line number Diff line change 22
22
#![ unstable( feature = "rustc_private" ) ]
23
23
#![ crate_type = "dylib" ]
24
24
#![ crate_type = "rlib" ]
25
+ #![ staged_api]
25
26
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
26
27
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
27
28
html_root_url = "http://doc.rust-lang.org/nightly/" ) ]
28
29
29
- #![ feature( rustc_private) ]
30
+ #![ feature( rustc_private, staged_api ) ]
30
31
#![ cfg_attr( test, feature( test) ) ]
31
32
32
33
#[ macro_use] extern crate log;
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // These two generate an error to satisfy the compile-fail test
12
- #![ deny( warnings) ]
13
- #![ feature( blah) ] //~ ERROR
14
-
15
- #[ unstable] //~ WARNING: stability attributes are deprecated
16
- #[ stable] //~ WARNING: stability attributes are deprecated
17
- #[ deprecated] //~ WARNING: stability attributes are deprecated
11
+ #[ unstable] //~ ERROR: stability attributes may not be used
12
+ #[ stable] //~ ERROR: stability attributes may not be used
13
+ #[ deprecated] //~ ERROR: stability attributes may not be used
18
14
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments