]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/derive-helper-shadowing.stderr
Rollup merge of #106591 - Ezrashaw:attempted-integer-identifer, r=Estebank
[rust.git] / tests / ui / proc-macro / derive-helper-shadowing.stderr
1 error: cannot use a derive helper attribute through an import
2   --> $DIR/derive-helper-shadowing.rs:42:15
3    |
4 LL |             #[renamed]
5    |               ^^^^^^^
6    |
7 note: the derive helper attribute imported here
8   --> $DIR/derive-helper-shadowing.rs:41:17
9    |
10 LL |             use empty_helper as renamed;
11    |                 ^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: cannot find attribute `empty_helper` in this scope
14   --> $DIR/derive-helper-shadowing.rs:38:22
15    |
16 LL |             #[derive(GenHelperUse)]
17    |                      ^^^^^^^^^^^^
18    |
19    = note: consider importing this attribute macro:
20            empty_helper
21    = note: this error originates in the derive macro `GenHelperUse` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23 error: cannot find attribute `empty_helper` in this scope
24   --> $DIR/derive-helper-shadowing.rs:14:11
25    |
26 LL |         #[empty_helper]
27    |           ^^^^^^^^^^^^
28 ...
29 LL |             gen_helper_use!();
30    |             ----------------- in this macro invocation
31    |
32    = note: consider importing this attribute macro:
33            crate::empty_helper
34    = note: this error originates in the macro `gen_helper_use` (in Nightly builds, run with -Z macro-backtrace for more info)
35
36 error[E0659]: `empty_helper` is ambiguous
37   --> $DIR/derive-helper-shadowing.rs:26:13
38    |
39 LL |         use empty_helper;
40    |             ^^^^^^^^^^^^ ambiguous name
41    |
42    = note: ambiguous because of multiple potential import sources
43 note: `empty_helper` could refer to the derive helper attribute defined here
44   --> $DIR/derive-helper-shadowing.rs:22:10
45    |
46 LL | #[derive(Empty)]
47    |          ^^^^^
48 note: `empty_helper` could also refer to the attribute macro imported here
49   --> $DIR/derive-helper-shadowing.rs:10:5
50    |
51 LL | use test_macros::empty_attr as empty_helper;
52    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53    = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
54
55 error[E0659]: `empty_helper` is ambiguous
56   --> $DIR/derive-helper-shadowing.rs:19:3
57    |
58 LL | #[empty_helper]
59    |   ^^^^^^^^^^^^ ambiguous name
60    |
61    = note: ambiguous because of a name conflict with a derive helper attribute
62 note: `empty_helper` could refer to the derive helper attribute defined here
63   --> $DIR/derive-helper-shadowing.rs:22:10
64    |
65 LL | #[derive(Empty)]
66    |          ^^^^^
67 note: `empty_helper` could also refer to the attribute macro imported here
68   --> $DIR/derive-helper-shadowing.rs:10:5
69    |
70 LL | use test_macros::empty_attr as empty_helper;
71    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72    = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
73
74 warning: derive helper attribute is used before it is introduced
75   --> $DIR/derive-helper-shadowing.rs:19:3
76    |
77 LL | #[empty_helper]
78    |   ^^^^^^^^^^^^
79 ...
80 LL | #[derive(Empty)]
81    |          ----- the attribute is introduced here
82    |
83    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
84    = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
85    = note: `#[warn(legacy_derive_helpers)]` on by default
86
87 error: aborting due to 5 previous errors; 1 warning emitted
88
89 For more information about this error, try `rustc --explain E0659`.