File tree Expand file tree Collapse file tree 4 files changed +9
-12
lines changed Expand file tree Collapse file tree 4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
29
29
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
30
30
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
31
31
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32
- refs/heads/beta: 1131bc0a0f9d4ce920f239dccbd0fcfe1c940548
32
+ refs/heads/beta: 77acda1c8ee75f9eb923ddd811ee591951b2d43f
33
33
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
34
34
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35
35
refs/heads/tmp: 579e31929feff51dcaf8d444648eff8de735f91a
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