2019-09-15 12:55:18 +03:00
|
|
|
error: cannot find attribute `C` in this scope
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:9:3
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #[C]
|
2025-08-08 21:26:50 +03:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
|
|
help: the derive macro `B` accepts the similarly named `B` attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[C]
|
|
|
|
|
LL + #[B]
|
|
|
|
|
|
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `B` is ambiguous
|
2018-12-27 03:07:00 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:6:3
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #[B]
|
2018-12-16 20:23:27 +03:00
|
|
|
| ^ ambiguous name
|
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a name conflict with a derive helper attribute
|
2018-12-16 20:23:27 +03:00
|
|
|
note: `B` could refer to the derive helper attribute defined here
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:19:10
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| ^
|
|
|
|
|
note: `B` could also refer to the derive macro imported here
|
2018-12-27 03:07:00 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:3:1
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
|
|
LL | #[macro_use]
|
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `B` is ambiguous
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:10:3
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #[B(D)]
|
2018-12-16 20:23:27 +03:00
|
|
|
| ^ ambiguous name
|
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a name conflict with a derive helper attribute
|
2018-12-16 20:23:27 +03:00
|
|
|
note: `B` could refer to the derive helper attribute defined here
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:19:10
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| ^
|
|
|
|
|
note: `B` could also refer to the derive macro imported here
|
2018-12-27 03:07:00 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:3:1
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
|
|
LL | #[macro_use]
|
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `B` is ambiguous
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:13:3
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #[B(E = "foo")]
|
2018-12-16 20:23:27 +03:00
|
|
|
| ^ ambiguous name
|
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a name conflict with a derive helper attribute
|
2018-12-16 20:23:27 +03:00
|
|
|
note: `B` could refer to the derive helper attribute defined here
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:19:10
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| ^
|
|
|
|
|
note: `B` could also refer to the derive macro imported here
|
2018-12-27 03:07:00 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:3:1
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
|
|
LL | #[macro_use]
|
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `B` is ambiguous
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:16:3
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #[B(arbitrary tokens)]
|
2018-12-16 20:23:27 +03:00
|
|
|
| ^ ambiguous name
|
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a name conflict with a derive helper attribute
|
2018-12-16 20:23:27 +03:00
|
|
|
note: `B` could refer to the derive helper attribute defined here
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:19:10
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| ^
|
|
|
|
|
note: `B` could also refer to the derive macro imported here
|
2018-12-27 03:07:00 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:3:1
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
|
|
LL | #[macro_use]
|
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
2025-07-14 17:31:41 +03:00
|
|
|
error: derive helper attribute is used before it is introduced
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:6:3
|
|
|
|
|
|
|
|
|
|
|
LL | #[B]
|
|
|
|
|
| ^
|
|
|
|
|
...
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| - the attribute is introduced here
|
|
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
= note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
|
2025-04-28 13:47:25 +02:00
|
|
|
= note: `#[deny(legacy_derive_helpers)]` (part of `#[deny(future_incompatible)]`) on by default
|
2020-11-14 14:47:14 +03:00
|
|
|
|
2025-07-14 17:31:41 +03:00
|
|
|
error: derive helper attribute is used before it is introduced
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:10:3
|
|
|
|
|
|
|
|
|
|
|
LL | #[B(D)]
|
|
|
|
|
| ^
|
|
|
|
|
...
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| - the attribute is introduced here
|
|
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
= note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
|
|
|
|
|
|
2025-07-14 17:31:41 +03:00
|
|
|
error: derive helper attribute is used before it is introduced
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:13:3
|
|
|
|
|
|
|
|
|
|
|
LL | #[B(E = "foo")]
|
|
|
|
|
| ^
|
|
|
|
|
...
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| - the attribute is introduced here
|
|
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
= note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
|
|
|
|
|
|
2025-07-14 17:31:41 +03:00
|
|
|
error: derive helper attribute is used before it is introduced
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/proc-macro-attributes.rs:16:3
|
|
|
|
|
|
|
|
|
|
|
LL | #[B(arbitrary tokens)]
|
|
|
|
|
| ^
|
|
|
|
|
...
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| - the attribute is introduced here
|
|
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
= note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
|
|
|
|
|
|
2025-07-14 17:31:41 +03:00
|
|
|
error: aborting due to 9 previous errors
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2019-07-12 01:00:20 +03:00
|
|
|
For more information about this error, try `rustc --explain E0659`.
|
2025-07-14 17:31:41 +03:00
|
|
|
Future incompatibility report: Future breakage diagnostic:
|
|
|
|
|
error: derive helper attribute is used before it is introduced
|
|
|
|
|
--> $DIR/proc-macro-attributes.rs:6:3
|
|
|
|
|
|
|
|
|
|
|
LL | #[B]
|
|
|
|
|
| ^
|
|
|
|
|
...
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| - the attribute is introduced here
|
|
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
= note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
|
2025-04-28 13:47:25 +02:00
|
|
|
= note: `#[deny(legacy_derive_helpers)]` (part of `#[deny(future_incompatible)]`) on by default
|
2025-07-14 17:31:41 +03:00
|
|
|
|
|
|
|
|
Future breakage diagnostic:
|
|
|
|
|
error: derive helper attribute is used before it is introduced
|
|
|
|
|
--> $DIR/proc-macro-attributes.rs:10:3
|
|
|
|
|
|
|
|
|
|
|
LL | #[B(D)]
|
|
|
|
|
| ^
|
|
|
|
|
...
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| - the attribute is introduced here
|
|
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
= note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
|
2025-04-28 13:47:25 +02:00
|
|
|
= note: `#[deny(legacy_derive_helpers)]` (part of `#[deny(future_incompatible)]`) on by default
|
2025-07-14 17:31:41 +03:00
|
|
|
|
|
|
|
|
Future breakage diagnostic:
|
|
|
|
|
error: derive helper attribute is used before it is introduced
|
|
|
|
|
--> $DIR/proc-macro-attributes.rs:13:3
|
|
|
|
|
|
|
|
|
|
|
LL | #[B(E = "foo")]
|
|
|
|
|
| ^
|
|
|
|
|
...
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| - the attribute is introduced here
|
|
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
= note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
|
2025-04-28 13:47:25 +02:00
|
|
|
= note: `#[deny(legacy_derive_helpers)]` (part of `#[deny(future_incompatible)]`) on by default
|
2025-07-14 17:31:41 +03:00
|
|
|
|
|
|
|
|
Future breakage diagnostic:
|
|
|
|
|
error: derive helper attribute is used before it is introduced
|
|
|
|
|
--> $DIR/proc-macro-attributes.rs:16:3
|
|
|
|
|
|
|
|
|
|
|
LL | #[B(arbitrary tokens)]
|
|
|
|
|
| ^
|
|
|
|
|
...
|
|
|
|
|
LL | #[derive(B)]
|
|
|
|
|
| - the attribute is introduced here
|
|
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
= note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
|
2025-04-28 13:47:25 +02:00
|
|
|
= note: `#[deny(legacy_derive_helpers)]` (part of `#[deny(future_incompatible)]`) on by default
|
2025-07-14 17:31:41 +03:00
|
|
|
|