mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00

Those that didn't previously preserved kind are now marked as not requiring annotations to keep the previous behavior. Also, do not lose diagnostics with an empty message.
57 lines
1.7 KiB
Plaintext
57 lines
1.7 KiB
Plaintext
error: macros that expand to items must be delimited with braces or followed by a semicolon
|
|
--> $DIR/issue-91800.rs:6:10
|
|
|
|
|
LL | #[derive(MyTrait)]
|
|
| ^^^^^^^
|
|
|
|
|
= note: this error originates in the derive macro `MyTrait` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: proc-macro derive produced unparsable tokens
|
|
--> $DIR/issue-91800.rs:6:10
|
|
|
|
|
LL | #[derive(MyTrait)]
|
|
| ^^^^^^^
|
|
|
|
error:
|
|
--> $DIR/issue-91800.rs:6:10
|
|
|
|
|
LL | #[derive(MyTrait)]
|
|
| ^^^^^^^
|
|
|
|
|
= note: this error originates in the derive macro `MyTrait` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: macros that expand to items must be delimited with braces or followed by a semicolon
|
|
--> $DIR/issue-91800.rs:10:1
|
|
|
|
|
LL | #[attribute_macro]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the attribute macro `attribute_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error:
|
|
--> $DIR/issue-91800.rs:10:1
|
|
|
|
|
LL | #[attribute_macro]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the attribute macro `attribute_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: macros that expand to items must be delimited with braces or followed by a semicolon
|
|
--> $DIR/issue-91800.rs:15:1
|
|
|
|
|
LL | fn_macro! {}
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `fn_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error:
|
|
--> $DIR/issue-91800.rs:15:1
|
|
|
|
|
LL | fn_macro! {}
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `fn_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: aborting due to 7 previous errors
|
|
|