diff options
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, |