File tree Expand file tree Collapse file tree 3 files changed +36
-33
lines changed Expand file tree Collapse file tree 3 files changed +36
-33
lines changed Original file line number Diff line number Diff line change @@ -182,12 +182,6 @@ error: malformed `debugger_visualizer` attribute input
182
182
LL | #[debugger_visualizer]
183
183
| ^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[debugger_visualizer(natvis_file = "...", gdb_script_file = "...")]`
184
184
185
- error: malformed `automatically_derived` attribute input
186
- --> $DIR/malformed-attrs.rs:191:1
187
- |
188
- LL | #[automatically_derived = 18]
189
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[automatically_derived]`
190
-
191
185
error: malformed `thread_local` attribute input
192
186
--> $DIR/malformed-attrs.rs:203:1
193
187
|
@@ -546,6 +540,15 @@ LL | #[unsafe(ffi_const = 1)]
546
540
| | didn't expect any arguments here
547
541
| help: must be of the form: `#[ffi_const]`
548
542
543
+ error[E0565]: malformed `automatically_derived` attribute input
544
+ --> $DIR/malformed-attrs.rs:191:1
545
+ |
546
+ LL | #[automatically_derived = 18]
547
+ | ^^^^^^^^^^^^^^^^^^^^^^^^----^
548
+ | | |
549
+ | | didn't expect any arguments here
550
+ | help: must be of the form: `#[automatically_derived]`
551
+
549
552
error[E0565]: malformed `non_exhaustive` attribute input
550
553
--> $DIR/malformed-attrs.rs:197:1
551
554
|
Original file line number Diff line number Diff line change @@ -121,21 +121,6 @@ LL - #![rustc_main]
121
121
LL + #[rustc_main]
122
122
|
123
123
124
- error: `automatically_derived` attribute cannot be used at crate level
125
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:23:1
126
- |
127
- LL | #![automatically_derived]
128
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
129
- ...
130
- LL | mod inline {
131
- | ------ the inner attribute doesn't annotate this module
132
- |
133
- help: perhaps you meant to use an outer attribute
134
- |
135
- LL - #![automatically_derived]
136
- LL + #[automatically_derived]
137
- |
138
-
139
124
error: `repr` attribute cannot be used at crate level
140
125
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:19:1
141
126
|
@@ -166,6 +151,21 @@ LL - #![path = "3800"]
166
151
LL + #[path = "3800"]
167
152
|
168
153
154
+ error: `automatically_derived` attribute cannot be used at crate level
155
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:23:1
156
+ |
157
+ LL | #![automatically_derived]
158
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
159
+ ...
160
+ LL | mod inline {
161
+ | ------ the inner attribute doesn't annotate this module
162
+ |
163
+ help: perhaps you meant to use an outer attribute
164
+ |
165
+ LL - #![automatically_derived]
166
+ LL + #[automatically_derived]
167
+ |
168
+
169
169
error[E0518]: attribute should be applied to function or closure
170
170
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:42:17
171
171
|
Original file line number Diff line number Diff line change @@ -40,18 +40,6 @@ LL | #[should_panic]
40
40
| ^^^^^^^^^^^^^^^
41
41
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
42
42
43
- error: unused attribute
44
- --> $DIR/unused-attr-duplicate.rs:70:1
45
- |
46
- LL | #[automatically_derived]
47
- | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
48
- |
49
- note: attribute also specified here
50
- --> $DIR/unused-attr-duplicate.rs:69:1
51
- |
52
- LL | #[automatically_derived]
53
- | ^^^^^^^^^^^^^^^^^^^^^^^^
54
-
55
43
error: unused attribute
56
44
--> $DIR/unused-attr-duplicate.rs:14:1
57
45
|
@@ -190,6 +178,18 @@ note: attribute also specified here
190
178
LL | #[non_exhaustive]
191
179
| ^^^^^^^^^^^^^^^^^
192
180
181
+ error: unused attribute
182
+ --> $DIR/unused-attr-duplicate.rs:70:1
183
+ |
184
+ LL | #[automatically_derived]
185
+ | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
186
+ |
187
+ note: attribute also specified here
188
+ --> $DIR/unused-attr-duplicate.rs:69:1
189
+ |
190
+ LL | #[automatically_derived]
191
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
192
+
193
193
error: unused attribute
194
194
--> $DIR/unused-attr-duplicate.rs:74:1
195
195
|
You can’t perform that action at this time.
0 commit comments