@@ -249,36 +249,13 @@ LL | #[applicability]
249249 | ^^^^^^^^^^^^^^^^
250250
251251error: the `#[applicability]` attribute can only be applied to fields of type `Applicability`
252- --> $DIR/subdiagnostic-derive.rs:408 :5
252+ --> $DIR/subdiagnostic-derive.rs:407 :5
253253 |
254254LL | #[applicability]
255255 | ^^^^^^^^^^^^^^^^
256256
257- error: suggestion without `applicability`
258- --> $DIR/subdiagnostic-derive.rs:403:1
259- |
260- LL | / #[suggestion(parser::add_paren, code = "...")]
261- LL | |
262- LL | | struct AL {
263- LL | | #[primary_span]
264- ... |
265- LL | | applicability: Span,
266- LL | | }
267- | |_^
268-
269- error: suggestion without `applicability`
270- --> $DIR/subdiagnostic-derive.rs:414:1
271- |
272- LL | / #[suggestion(parser::add_paren, code = "...")]
273- LL | |
274- LL | | struct AM {
275- LL | | #[primary_span]
276- LL | | span: Span,
277- LL | | }
278- | |_^
279-
280257error: suggestion without `code = "..."`
281- --> $DIR/subdiagnostic-derive.rs:422 :1
258+ --> $DIR/subdiagnostic-derive.rs:420 :1
282259 |
283260LL | / #[suggestion(parser::add_paren)]
284261LL | |
@@ -290,47 +267,35 @@ LL | | }
290267 | |_^
291268
292269error: invalid applicability
293- --> $DIR/subdiagnostic-derive.rs:432 :46
270+ --> $DIR/subdiagnostic-derive.rs:430 :46
294271 |
295272LL | #[suggestion(parser::add_paren, code ="...", applicability = "foo")]
296273 | ^^^^^^^^^^^^^^^^^^^^^
297274
298- error: suggestion without `applicability`
299- --> $DIR/subdiagnostic-derive.rs:450:1
300- |
301- LL | / #[suggestion(parser::add_paren, code = "...")]
302- LL | |
303- LL | |
304- LL | | struct AR {
305- LL | | var: String,
306- LL | | }
307- | |_^
308-
309275error: suggestion without `#[primary_span]` field
310- --> $DIR/subdiagnostic-derive.rs:450 :1
276+ --> $DIR/subdiagnostic-derive.rs:448 :1
311277 |
312278LL | / #[suggestion(parser::add_paren, code = "...")]
313279LL | |
314- LL | |
315280LL | | struct AR {
316281LL | | var: String,
317282LL | | }
318283 | |_^
319284
320285error: unsupported type attribute for subdiagnostic enum
321- --> $DIR/subdiagnostic-derive.rs:465 :1
286+ --> $DIR/subdiagnostic-derive.rs:462 :1
322287 |
323288LL | #[label]
324289 | ^^^^^^^^
325290
326291error: `var` doesn't refer to a field on this type
327- --> $DIR/subdiagnostic-derive.rs:485 :39
292+ --> $DIR/subdiagnostic-derive.rs:482 :39
328293 |
329294LL | #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
330295 | ^^^^^^^
331296
332297error: `var` doesn't refer to a field on this type
333- --> $DIR/subdiagnostic-derive.rs:504 :43
298+ --> $DIR/subdiagnostic-derive.rs:501 :43
334299 |
335300LL | #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
336301 | ^^^^^^^
@@ -395,6 +360,6 @@ error[E0425]: cannot find value `slug` in module `rustc_errors::fluent`
395360LL | #[label(slug)]
396361 | ^^^^ not found in `rustc_errors::fluent`
397362
398- error: aborting due to 52 previous errors
363+ error: aborting due to 49 previous errors
399364
400365For more information about this error, try `rustc --explain E0425`.
0 commit comments