]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/parse/attr.rs
Convert most code to new inner attribute syntax.
[rust.git] / src / libsyntax / parse / attr.rs
index b569bb28a7dc577d275d1127c234988d921284bc..ddb6ddb64b433e64223e3e1184454c5253522700 100644 (file)
@@ -93,9 +93,8 @@ fn parse_attribute(&mut self, permit_inner: bool) -> ast::Attribute {
         };
 
         if permit_inner && self.eat(&token::SEMI) {
-            // NOTE: uncomment this after a stage0 snap
-            //self.warn("This uses the old attribute syntax. Semicolons
-            //  are not longer required.");
+            self.span_warn(span, "this inner attribute syntax is deprecated. \
+                           The new syntax is `#![foo]`, with a bang and no semicolon.");
             style = ast::AttrInner;
         }