Merge pull request #3268 from matthiaskrgr/rustup_macros_20
mini-macro: fix tests with latest rustc (rename feature: proc_macro_non_items -> proc_macro_hygiene).
This commit is contained in:
commit
87f6d9e7f9
@ -1,4 +1,4 @@
|
||||
#![feature(proc_macro_quote, proc_macro_non_items)]
|
||||
#![feature(proc_macro_quote, proc_macro_hygiene)]
|
||||
extern crate proc_macro;
|
||||
|
||||
use proc_macro::{TokenStream, quote};
|
||||
@ -8,4 +8,4 @@ pub fn mini_macro(_: TokenStream) -> TokenStream {
|
||||
quote!(
|
||||
#[allow(unused)] fn needless_take_by_value(s: String) { println!("{}", s.len()); }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user