about summary refs log tree commit diff
path: root/src/librustc
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2015-04-20 17:00:35 -0700
committerBrian Anderson <banderson@mozilla.com>2015-04-20 17:33:31 -0700
commitbb407b1e9db575fc04f59addcb9ba04076d8206b (patch)
tree6e9e86c1c62ce206ddc05b0de2b7eeddb371d240 /src/librustc
parentf46c4e158d395cf6e186bf6afdf1705c12071cbe (diff)
downloadrust-bb407b1e9db575fc04f59addcb9ba04076d8206b.tar.gz
rust-bb407b1e9db575fc04f59addcb9ba04076d8206b.zip
Make stability attributes an error. #22830
Diffstat (limited to 'src/librustc')
-rw-r--r--src/librustc/middle/stability.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/middle/stability.rs b/src/librustc/middle/stability.rs
index e7c25d82150..d75dc861e83 100644
--- a/src/librustc/middle/stability.rs
+++ b/src/librustc/middle/stability.rs
@@ -95,9 +95,9 @@ impl<'a> Annotator<'a> {
                 let tag = attr.name();
                 if tag == "unstable" || tag == "stable" || tag == "deprecated" {
                     attr::mark_used(attr);
-                    self.sess.span_warn(attr.span(),
-                                        "stability attributes are deprecated \
-                                         and will soon become errors");
+                    self.sess.span_err(attr.span(),
+                                       "stability attributes may not be used outside \
+                                        of the standard library");
                 }
             }
             f(self);