From cd842736d97477218553c56b4919f8c2618671a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 5 Oct 2018 15:52:51 +0200 Subject: [PATCH] mini-macro: fix tests with latest rustc (rename feature: proc_macro_non_items -> proc_macro_hygiene). --- mini-macro/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mini-macro/src/lib.rs b/mini-macro/src/lib.rs index 8a19dc2c4e58..01cdc70c72a4 100644 --- a/mini-macro/src/lib.rs +++ b/mini-macro/src/lib.rs @@ -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()); } ) -} \ No newline at end of file +}