diff options
| author | Philipp Krones <hello@philkrones.com> | 2018-10-05 18:10:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-05 18:10:48 +0200 |
| commit | 87f6d9e7f94af1e2c192a68c997e6b247bba5d06 (patch) | |
| tree | e6cd8e677353908da215a72df428cd625733f887 | |
| parent | c9359566adf947d75782302374bbaa51db9cab43 (diff) | |
| parent | cd842736d97477218553c56b4919f8c2618671a9 (diff) | |
| download | rust-87f6d9e7f94af1e2c192a68c997e6b247bba5d06.tar.gz rust-87f6d9e7f94af1e2c192a68c997e6b247bba5d06.zip | |
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).
| -rw-r--r-- | mini-macro/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mini-macro/src/lib.rs b/mini-macro/src/lib.rs index 8a19dc2c4e5..01cdc70c72a 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 +} |
