1 error: cannot use a derive helper attribute through an import
2 --> $DIR/derive-helper-shadowing.rs:42:15
7 note: the derive helper attribute imported here
8 --> $DIR/derive-helper-shadowing.rs:41:17
10 LL | use empty_helper as renamed;
11 | ^^^^^^^^^^^^^^^^^^^^^^^
13 error: cannot find attribute `empty_helper` in this scope
14 --> $DIR/derive-helper-shadowing.rs:38:22
16 LL | #[derive(GenHelperUse)]
19 = note: this error originates in the derive macro `GenHelperUse` (in Nightly builds, run with -Z macro-backtrace for more info)
21 error: cannot find attribute `empty_helper` in this scope
22 --> $DIR/derive-helper-shadowing.rs:14:11
27 LL | gen_helper_use!();
28 | ------------------ in this macro invocation
30 = note: this error originates in the macro `gen_helper_use` (in Nightly builds, run with -Z macro-backtrace for more info)
32 error[E0659]: `empty_helper` is ambiguous (name vs any other name during import resolution)
33 --> $DIR/derive-helper-shadowing.rs:26:13
35 LL | use empty_helper;
36 | ^^^^^^^^^^^^ ambiguous name
38 note: `empty_helper` could refer to the derive helper attribute defined here
39 --> $DIR/derive-helper-shadowing.rs:22:10
43 note: `empty_helper` could also refer to the attribute macro imported here
44 --> $DIR/derive-helper-shadowing.rs:10:5
46 LL | use test_macros::empty_attr as empty_helper;
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
50 error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name)
51 --> $DIR/derive-helper-shadowing.rs:19:3
54 | ^^^^^^^^^^^^ ambiguous name
56 note: `empty_helper` could refer to the derive helper attribute defined here
57 --> $DIR/derive-helper-shadowing.rs:22:10
61 note: `empty_helper` could also refer to the attribute macro imported here
62 --> $DIR/derive-helper-shadowing.rs:10:5
64 LL | use test_macros::empty_attr as empty_helper;
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
68 warning: derive helper attribute is used before it is introduced
69 --> $DIR/derive-helper-shadowing.rs:19:3
75 | ----- the attribute is introduced here
77 = note: `#[warn(legacy_derive_helpers)]` on by default
78 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
79 = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
81 error: aborting due to 5 previous errors; 1 warning emitted
83 For more information about this error, try `rustc --explain E0659`.