diff options
| author | est31 <MTest31@outlook.com> | 2017-05-31 21:12:02 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2017-05-31 21:12:02 +0200 |
| commit | 03876ec1b12ed0080fe3a29a8161229cc5fd3c86 (patch) | |
| tree | 326689d8580703a9c370059aec1f017447e2c3e9 | |
| parent | 602036370f37d1dbad98e25bfbc8803337c22a6f (diff) | |
| download | rust-03876ec1b12ed0080fe3a29a8161229cc5fd3c86.tar.gz rust-03876ec1b12ed0080fe3a29a8161229cc5fd3c86.zip | |
Fix a test and address review comment
| -rw-r--r-- | src/librustc_resolve/lib.rs | 2 | ||||
| -rw-r--r-- | src/test/compile-fail/feature-gate-decl_macro.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index b4c6b8ec856..5b633e3d462 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -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. diff --git a/src/test/compile-fail/feature-gate-decl_macro.rs b/src/test/compile-fail/feature-gate-decl_macro.rs index af7d5fec071..c5c83977c77 100644 --- a/src/test/compile-fail/feature-gate-decl_macro.rs +++ b/src/test/compile-fail/feature-gate-decl_macro.rs @@ -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 |
