]> git.proxmox.com Git - rustc.git/blame - src/test/ui/proc-macro/derive-helper-shadowing.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / proc-macro / derive-helper-shadowing.stderr
CommitLineData
60c5eb7d 1error: cannot use a derive helper attribute through an import
6a06907d 2 --> $DIR/derive-helper-shadowing.rs:42:15
60c5eb7d
XL
3 |
4LL | #[renamed]
5 | ^^^^^^^
6 |
7note: the derive helper attribute imported here
6a06907d 8 --> $DIR/derive-helper-shadowing.rs:41:17
60c5eb7d
XL
9 |
10LL | use empty_helper as renamed;
11 | ^^^^^^^^^^^^^^^^^^^^^^^
12
13error: cannot find attribute `empty_helper` in this scope
6a06907d 14 --> $DIR/derive-helper-shadowing.rs:38:22
60c5eb7d
XL
15 |
16LL | #[derive(GenHelperUse)]
17 | ^^^^^^^^^^^^
74b04a01
XL
18 |
19 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
60c5eb7d
XL
20
21error: cannot find attribute `empty_helper` in this scope
22 --> $DIR/derive-helper-shadowing.rs:14:11
23 |
24LL | #[empty_helper]
25 | ^^^^^^^^^^^^
26...
27LL | gen_helper_use!();
28 | ------------------ in this macro invocation
74b04a01
XL
29 |
30 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
60c5eb7d
XL
31
32error[E0659]: `empty_helper` is ambiguous (name vs any other name during import resolution)
6a06907d 33 --> $DIR/derive-helper-shadowing.rs:26:13
60c5eb7d
XL
34 |
35LL | use empty_helper;
36 | ^^^^^^^^^^^^ ambiguous name
37 |
38note: `empty_helper` could refer to the derive helper attribute defined here
6a06907d 39 --> $DIR/derive-helper-shadowing.rs:22:10
60c5eb7d
XL
40 |
41LL | #[derive(Empty)]
42 | ^^^^^
43note: `empty_helper` could also refer to the attribute macro imported here
44 --> $DIR/derive-helper-shadowing.rs:10:5
45 |
46LL | use test_macros::empty_attr as empty_helper;
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
49
dc9dc135 50error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name)
60c5eb7d 51 --> $DIR/derive-helper-shadowing.rs:19:3
b7449926 52 |
dc9dc135
XL
53LL | #[empty_helper]
54 | ^^^^^^^^^^^^ ambiguous name
b7449926 55 |
dc9dc135 56note: `empty_helper` could refer to the derive helper attribute defined here
6a06907d 57 --> $DIR/derive-helper-shadowing.rs:22:10
b7449926 58 |
dc9dc135
XL
59LL | #[derive(Empty)]
60 | ^^^^^
61note: `empty_helper` could also refer to the attribute macro imported here
60c5eb7d 62 --> $DIR/derive-helper-shadowing.rs:10:5
4462d4a0 63 |
dc9dc135
XL
64LL | use test_macros::empty_attr as empty_helper;
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
b7449926 67
6a06907d
XL
68warning: derive helper attribute is used before it is introduced
69 --> $DIR/derive-helper-shadowing.rs:19:3
70 |
71LL | #[empty_helper]
72 | ^^^^^^^^^^^^
73...
74LL | #[derive(Empty)]
75 | ----- the attribute is introduced here
76 |
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>
80
81error: aborting due to 5 previous errors; 1 warning emitted
b7449926 82
416331ca 83For more information about this error, try `rustc --explain E0659`.