]> git.lizzy.rs Git - rust.git/commitdiff
Fix a test and address review comment
authorest31 <MTest31@outlook.com>
Wed, 31 May 2017 19:12:02 +0000 (21:12 +0200)
committerest31 <MTest31@outlook.com>
Wed, 31 May 2017 19:12:02 +0000 (21:12 +0200)
src/librustc_resolve/lib.rs
src/test/compile-fail/feature-gate-decl_macro.rs

index b4c6b8ec856c8d6619ff10013ee497872f824485..5b633e3d46223bd8db2a1cc9fd24569d63df0ac6 100644 (file)
@@ -1200,7 +1200,7 @@ pub struct Resolver<'a> {
     pub found_unresolved_macro: bool,
 
     // List of crate local macros that we need to warn about as being unused.
-    // Right now this only includes macro_rules! macros, and 2.0 macros.
+    // Right now this only includes macro_rules! macros, and macros 2.0.
     unused_macros: FxHashSet<DefId>,
 
     // Maps the `Mark` of an expansion to its containing module or block.
index af7d5fec07199d4c125fa03fc0bebaa685273518..c5c83977c77fd0ae0e820a8d209b37247b82e9c8 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unused_macros)]
+
 macro m() {} //~ ERROR `macro` is experimental (see issue #39412)
 //~| HELP add #![feature(decl_macro)] to the crate attributes to enable