Skip to content

Commit

Permalink
Fix a test and address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed May 31, 2017
1 parent 6020363 commit 03876ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_resolve/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/test/compile-fail/feature-gate-decl_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 03876ec

Please sign in to comment.