diff options
author | Nadrieril | 2019-09-10 15:42:11 +0200 |
---|---|---|
committer | Nadrieril | 2019-09-10 15:42:11 +0200 |
commit | 20e75122354dc44468fa58c40e94a43a128aa764 (patch) | |
tree | 3625ed64f60e915c32aa9fbd68ed00135488babb /pest_consume_macros | |
parent | e4003cc25efcae79c1332e3481d7edfca1067c4f (diff) |
Use proc_macro_hack to avoid the need for the proc_macro_hygiene feature
Diffstat (limited to 'pest_consume_macros')
-rw-r--r-- | pest_consume_macros/Cargo.toml | 1 | ||||
-rw-r--r-- | pest_consume_macros/src/lib.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pest_consume_macros/Cargo.toml b/pest_consume_macros/Cargo.toml index dd65d95..317fd29 100644 --- a/pest_consume_macros/Cargo.toml +++ b/pest_consume_macros/Cargo.toml @@ -15,4 +15,5 @@ doctest = false [dependencies] quote = "1.0.2" proc-macro2 = "1.0.2" +proc-macro-hack = "0.5.9" syn = { version = "1.0.5", features = ["full", "extra-traits"] } diff --git a/pest_consume_macros/src/lib.rs b/pest_consume_macros/src/lib.rs index b5368ec..3929974 100644 --- a/pest_consume_macros/src/lib.rs +++ b/pest_consume_macros/src/lib.rs @@ -19,7 +19,7 @@ pub fn make_parser(attrs: TokenStream, input: TokenStream) -> TokenStream { }) } -#[proc_macro] +#[proc_macro_hack::proc_macro_hack] pub fn match_inputs(input: TokenStream) -> TokenStream { TokenStream::from(match match_inputs::match_inputs(input) { Ok(tokens) => tokens, |