Files
rust/tests/ui/proc-macro/derive-helper-shadowing.stderr

91 lines
3.5 KiB
Plaintext
Raw Normal View History

2019-10-05 16:59:52 +03:00
error: cannot use a derive helper attribute through an import
--> $DIR/derive-helper-shadowing.rs:43:15
2019-10-05 16:59:52 +03:00
|
LL | #[renamed]
| ^^^^^^^
|
note: the derive helper attribute imported here
--> $DIR/derive-helper-shadowing.rs:42:17
2019-10-05 16:59:52 +03:00
|
LL | use empty_helper as renamed;
| ^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find attribute `empty_helper` in this scope
--> $DIR/derive-helper-shadowing.rs:39:22
2019-10-05 16:59:52 +03:00
|
LL | #[derive(GenHelperUse)]
| ^^^^^^^^^^^^
|
= note: `empty_helper` is an attribute that can be used by the derive macro `Empty`, you might be missing a `derive` attribute
= note: this error originates in the derive macro `GenHelperUse` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this attribute macro through its public re-export
|
LL + use empty_helper;
|
2019-10-05 16:59:52 +03:00
error: cannot find attribute `empty_helper` in this scope
--> $DIR/derive-helper-shadowing.rs:15:11
2019-10-05 16:59:52 +03:00
|
LL | #[empty_helper]
| ^^^^^^^^^^^^
...
LL | gen_helper_use!();
2021-10-14 13:28:28 -05:00
| ----------------- in this macro invocation
|
= note: `empty_helper` is an attribute that can be used by the derive macro `Empty`, you might be missing a `derive` attribute
= note: this error originates in the macro `gen_helper_use` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this attribute macro through its public re-export
|
LL + use crate::empty_helper;
|
2019-10-05 16:59:52 +03:00
error[E0659]: `empty_helper` is ambiguous
--> $DIR/derive-helper-shadowing.rs:20:3
|
LL | #[empty_helper]
| ^^^^^^^^^^^^ ambiguous name
|
= note: ambiguous because of a name conflict with a derive helper attribute
note: `empty_helper` could refer to the derive helper attribute defined here
--> $DIR/derive-helper-shadowing.rs:23:10
|
LL | #[derive(Empty)]
| ^^^^^
note: `empty_helper` could also refer to the attribute macro imported here
--> $DIR/derive-helper-shadowing.rs:11:5
|
LL | use test_macros::empty_attr as empty_helper;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: use `crate::empty_helper` to refer to this attribute macro unambiguously
error: derive helper attribute is used before it is introduced
--> $DIR/derive-helper-shadowing.rs:20:3
|
LL | #[empty_helper]
| ^^^^^^^^^^^^
...
LL | #[derive(Empty)]
| ----- 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
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0659`.
Future incompatibility report: Future breakage diagnostic:
error: derive helper attribute is used before it is introduced
--> $DIR/derive-helper-shadowing.rs:20:3
|
LL | #[empty_helper]
| ^^^^^^^^^^^^
...
LL | #[derive(Empty)]
| ----- 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