Closed as not planned
Description
[INFO] [stdout] error: mismatched function-like proc macro signature
[INFO] [stdout] --> src/lib.rs:7:37
[INFO] [stdout] |
[INFO] [stdout] 7 | pub fn demo(tokens: TokenStream) -> TokenStream {
[INFO] [stdout] | ^^^^^^^^^^^ found TokenStream, expected type `proc_macro::TokenStream`
[INFO] [stdout] |
[INFO] [stdout] = note: function-like proc macros must have a signature of `fn(TokenStream) -> TokenStream`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `proc-macro2-test` due to 3 previous errors
[INFO] [stdout] error: mismatched function-like proc macro signature
[INFO] [stdout] --> src/lib.rs:7:21
[INFO] [stdout] |
[INFO] [stdout] 7 | pub fn demo(tokens: TokenStream) -> TokenStream {
[INFO] [stdout] | ^^^^^^^^^^^ found TokenStream, expected type `proc_macro::TokenStream`
[INFO] [stdout] |
[INFO] [stdout] = note: function-like proc macros must have a signature of `fn(TokenStream) -> TokenStream`
This code seems to have compiled fine previously -- even if this ends up not being a regression, we probably ought to call it a diagnostics bug, since the found/expected type message is pretty poor.