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:
Philipp Krones 2018-10-05 18:10:48 +02:00 committed by GitHub
commit 87f6d9e7f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()); }
)
}
}