`proc-macro-error` is incompatible with `proc-macro-hack`

Hi,

I'm trying to use this crate along with proc_macro_hack. Error reporting works nice but whenever I trigger an abort!() I get two errors in the console.

The first error shows perfectly. I displays the message I pass to abort!().

However, there also is a second error, which says:

cannot find macro "proc_macro_call!" in this scope.

My macro is defined like so:

#[proc_macro_hack]
#[proc_macro_error]
pub fn my_macro(input: TokenStream) -> TokenStream {
   ...
   abort!("my error");
   ...
}

Any advice?

Edited Oct 30, 2019 by CreepySkeleton
Assignee Loading
Time tracking Loading