]> git.proxmox.com Git - rustc.git/blob - src/test/ui/proc-macro/proc-macro-attributes.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / proc-macro / proc-macro-attributes.stderr
1 error: cannot find attribute `C` in this scope
2 --> $DIR/proc-macro-attributes.rs:9:3
3 |
4 LL | #[C]
5 | ^ help: a derive helper attribute with a similar name exists: `B`
6
7 error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
8 --> $DIR/proc-macro-attributes.rs:6:3
9 |
10 LL | #[B]
11 | ^ ambiguous name
12 |
13 note: `B` could refer to the derive helper attribute defined here
14 --> $DIR/proc-macro-attributes.rs:19:10
15 |
16 LL | #[derive(B)]
17 | ^
18 note: `B` could also refer to the derive macro imported here
19 --> $DIR/proc-macro-attributes.rs:3:1
20 |
21 LL | #[macro_use]
22 | ^^^^^^^^^^^^
23
24 error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
25 --> $DIR/proc-macro-attributes.rs:10:3
26 |
27 LL | #[B(D)]
28 | ^ ambiguous name
29 |
30 note: `B` could refer to the derive helper attribute defined here
31 --> $DIR/proc-macro-attributes.rs:19:10
32 |
33 LL | #[derive(B)]
34 | ^
35 note: `B` could also refer to the derive macro imported here
36 --> $DIR/proc-macro-attributes.rs:3:1
37 |
38 LL | #[macro_use]
39 | ^^^^^^^^^^^^
40
41 error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
42 --> $DIR/proc-macro-attributes.rs:13:3
43 |
44 LL | #[B(E = "foo")]
45 | ^ ambiguous name
46 |
47 note: `B` could refer to the derive helper attribute defined here
48 --> $DIR/proc-macro-attributes.rs:19:10
49 |
50 LL | #[derive(B)]
51 | ^
52 note: `B` could also refer to the derive macro imported here
53 --> $DIR/proc-macro-attributes.rs:3:1
54 |
55 LL | #[macro_use]
56 | ^^^^^^^^^^^^
57
58 error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
59 --> $DIR/proc-macro-attributes.rs:16:3
60 |
61 LL | #[B(arbitrary tokens)]
62 | ^ ambiguous name
63 |
64 note: `B` could refer to the derive helper attribute defined here
65 --> $DIR/proc-macro-attributes.rs:19:10
66 |
67 LL | #[derive(B)]
68 | ^
69 note: `B` could also refer to the derive macro imported here
70 --> $DIR/proc-macro-attributes.rs:3:1
71 |
72 LL | #[macro_use]
73 | ^^^^^^^^^^^^
74
75 warning: derive helper attribute is used before it is introduced
76 --> $DIR/proc-macro-attributes.rs:6:3
77 |
78 LL | #[B]
79 | ^
80 ...
81 LL | #[derive(B)]
82 | - the attribute is introduced here
83 |
84 = note: `#[warn(legacy_derive_helpers)]` on by default
85 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
86 = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
87
88 warning: derive helper attribute is used before it is introduced
89 --> $DIR/proc-macro-attributes.rs:10:3
90 |
91 LL | #[B(D)]
92 | ^
93 ...
94 LL | #[derive(B)]
95 | - the attribute is introduced here
96 |
97 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
98 = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
99
100 warning: derive helper attribute is used before it is introduced
101 --> $DIR/proc-macro-attributes.rs:13:3
102 |
103 LL | #[B(E = "foo")]
104 | ^
105 ...
106 LL | #[derive(B)]
107 | - the attribute is introduced here
108 |
109 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
110 = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
111
112 warning: derive helper attribute is used before it is introduced
113 --> $DIR/proc-macro-attributes.rs:16:3
114 |
115 LL | #[B(arbitrary tokens)]
116 | ^
117 ...
118 LL | #[derive(B)]
119 | - the attribute is introduced here
120 |
121 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
122 = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
123
124 error: aborting due to 5 previous errors; 4 warnings emitted
125
126 For more information about this error, try `rustc --explain E0659`.