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
182182LL | #[debugger_visualizer]
183183 | ^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[debugger_visualizer(natvis_file = "...", gdb_script_file = "...")]`
184184
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-
191185error: malformed `thread_local` attribute input
192186 --> $DIR/malformed-attrs.rs:203:1
193187 |
@@ -546,6 +540,15 @@ LL | #[unsafe(ffi_const = 1)]
546540 | | didn't expect any arguments here
547541 | help: must be of the form: `#[ffi_const]`
548542
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+
549552error[E0565]: malformed `non_exhaustive` attribute input
550553 --> $DIR/malformed-attrs.rs:197:1
551554 |
Original file line number Diff line number Diff line change @@ -121,21 +121,6 @@ LL - #![rustc_main]
121121LL + #[rustc_main]
122122 |
123123
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-
139124error: `repr` attribute cannot be used at crate level
140125 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:19:1
141126 |
@@ -166,6 +151,21 @@ LL - #![path = "3800"]
166151LL + #[path = "3800"]
167152 |
168153
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+
169169error[E0518]: attribute should be applied to function or closure
170170 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:42:17
171171 |
Original file line number Diff line number Diff line change @@ -40,18 +40,6 @@ LL | #[should_panic]
4040 | ^^^^^^^^^^^^^^^
4141 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
4242
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-
5543error: unused attribute
5644 --> $DIR/unused-attr-duplicate.rs:14:1
5745 |
@@ -190,6 +178,18 @@ note: attribute also specified here
190178LL | #[non_exhaustive]
191179 | ^^^^^^^^^^^^^^^^^
192180
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+
193193error: unused attribute
194194 --> $DIR/unused-attr-duplicate.rs:74:1
195195 |
You can’t perform that action at this time.
0 commit comments