Skip to content

Commit fb27341

Browse files
committed
---
yaml --- r: 205817 b: refs/heads/beta c: 77acda1 h: refs/heads/master i: 205815: 2fd8e13 v: v3
1 parent 9e75db6 commit fb27341

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3030
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3131
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32-
refs/heads/beta: 1131bc0a0f9d4ce920f239dccbd0fcfe1c940548
32+
refs/heads/beta: 77acda1c8ee75f9eb923ddd811ee591951b2d43f
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3535
refs/heads/tmp: 579e31929feff51dcaf8d444648eff8de735f91a

branches/beta/src/librustc/middle/stability.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ impl<'a> Annotator<'a> {
9595
let tag = attr.name();
9696
if tag == "unstable" || tag == "stable" || tag == "deprecated" {
9797
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");
101101
}
102102
}
103103
f(self);

branches/beta/src/librustc_data_structures/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@
2222
#![unstable(feature = "rustc_private")]
2323
#![crate_type = "dylib"]
2424
#![crate_type = "rlib"]
25+
#![staged_api]
2526
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2627
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2728
html_root_url = "http://doc.rust-lang.org/nightly/")]
2829

29-
#![feature(rustc_private)]
30+
#![feature(rustc_private, staged_api)]
3031
#![cfg_attr(test, feature(test))]
3132

3233
#[macro_use] extern crate log;

branches/beta/src/test/compile-fail/stability-attribute-non-staged.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

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
1814
fn main() { }

0 commit comments

Comments
 (0)