Skip to content

Commit 03876ec

Browse files
committed
Fix a test and address review comment
1 parent 6020363 commit 03876ec

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/librustc_resolve/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ pub struct Resolver<'a> {
12001200
pub found_unresolved_macro: bool,
12011201

12021202
// List of crate local macros that we need to warn about as being unused.
1203-
// Right now this only includes macro_rules! macros, and 2.0 macros.
1203+
// Right now this only includes macro_rules! macros, and macros 2.0.
12041204
unused_macros: FxHashSet<DefId>,
12051205

12061206
// Maps the `Mark` of an expansion to its containing module or block.

src/test/compile-fail/feature-gate-decl_macro.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unused_macros)]
12+
1113
macro m() {} //~ ERROR `macro` is experimental (see issue #39412)
1214
//~| HELP add #![feature(decl_macro)] to the crate attributes to enable
1315

0 commit comments

Comments
 (0)