Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/ui/misuse.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ error[E0599]: the method `FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR
|
= note: the following trait bounds were not satisfied:
`Foo: quote::to_tokens::ToTokens`
which is required by `&Foo: ToTokensAsSpanRange`
which is required by `&Foo: proc_macro_error2::__export::ToTokensAsSpanRange`
note: the trait `quote::to_tokens::ToTokens` must be implemented
--> $CARGO/quote-1.0.37/src/to_tokens.rs
--> $CARGO/quote-$VERSION/src/to_tokens.rs
|
| pub trait ToTokens {
| ^^^^^^^^^^^^^^^^^^
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item `FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange`, perhaps you need to implement one of them:
candidate #1: `Span2AsSpanRange`
candidate #2: `SpanAsSpanRange`
candidate #3: `SpanRangeAsSpanRange`
candidate #4: `ToTokensAsSpanRange`
candidate #1: `proc_macro_error2::__export::Span2AsSpanRange`
candidate #2: `proc_macro_error2::__export::SpanAsSpanRange`
candidate #3: `proc_macro_error2::__export::SpanRangeAsSpanRange`
candidate #4: `proc_macro_error2::__export::ToTokensAsSpanRange`
= note: this error originates in the macro `$crate::diagnostic` which comes from the expansion of the macro `abort` (in Nightly builds, run with -Z macro-backtrace for more info)
1 change: 1 addition & 0 deletions tests/ui/not_proc_macro.stderr
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
error: #[proc_macro_error] attribute can be used only with procedural macros

= hint: if you are really sure that #[proc_macro_error] should be applied to this exact function, use #[proc_macro_error(allow_not_macro)]

--> tests/ui/not_proc_macro.rs:3:1
|
3 | #[proc_macro_error]
Expand Down