Skip to content

Commit

Permalink
Merge pull request #3268 from matthiaskrgr/rustup_macros_20
Browse files Browse the repository at this point in the history
mini-macro: fix tests with latest rustc (rename feature: proc_macro_non_items -> proc_macro_hygiene).
  • Loading branch information
flip1995 authored Oct 5, 2018
2 parents c935956 + cd84273 commit 87f6d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mini-macro/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand All @@ -8,4 +8,4 @@ pub fn mini_macro(_: TokenStream) -> TokenStream {
quote!(
#[allow(unused)] fn needless_take_by_value(s: String) { println!("{}", s.len()); }
)
}
}

0 comments on commit 87f6d9e

Please sign in to comment.