Skip to content

Commit cd84273

Browse files
committed
mini-macro: fix tests with latest rustc (rename feature: proc_macro_non_items -> proc_macro_hygiene).
1 parent c935956 commit cd84273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mini-macro/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(proc_macro_quote, proc_macro_non_items)]
1+
#![feature(proc_macro_quote, proc_macro_hygiene)]
22
extern crate proc_macro;
33

44
use proc_macro::{TokenStream, quote};
@@ -8,4 +8,4 @@ pub fn mini_macro(_: TokenStream) -> TokenStream {
88
quote!(
99
#[allow(unused)] fn needless_take_by_value(s: String) { println!("{}", s.len()); }
1010
)
11-
}
11+
}

0 commit comments

Comments
 (0)