2022-04-26 05:59:45 -05:00
|
|
|
error: label without `#[primary_span]` field
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:47:1
|
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | / #[label(parse_add_paren)]
|
2022-04-26 05:59:45 -05:00
|
|
|
LL | |
|
|
|
|
LL | | struct C {
|
|
|
|
LL | | var: String,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2022-09-12 13:44:28 -05:00
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
2022-04-26 05:59:45 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:54:1
|
|
|
|
|
|
|
|
|
LL | #[label]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[foo]` is not a valid attribute
|
2022-04-26 05:59:45 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:63:1
|
|
|
|
|
|
|
|
|
LL | #[foo]
|
|
|
|
| ^^^^^^
|
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[label = ...]` is not a valid attribute
|
2022-04-26 05:59:45 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:73:1
|
|
|
|
|
|
|
|
|
LL | #[label = "..."]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[label(bug = ...)]` is not a valid attribute
|
2022-04-26 05:59:45 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:82:9
|
|
|
|
|
|
|
|
|
LL | #[label(bug = "...")]
|
|
|
|
| ^^^^^^^^^^^
|
2022-09-12 13:44:28 -05:00
|
|
|
|
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:82:1
|
2022-04-26 22:06:13 -05:00
|
|
|
|
|
2022-09-12 13:44:28 -05:00
|
|
|
LL | #[label(bug = "...")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[label("...")]` is not a valid attribute
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:92:9
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[label("...")]
|
2022-04-26 22:06:13 -05:00
|
|
|
| ^^^^^
|
2022-09-12 13:44:28 -05:00
|
|
|
|
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:92:1
|
2022-06-23 10:12:52 -05:00
|
|
|
|
|
2022-09-12 13:44:28 -05:00
|
|
|
LL | #[label("...")]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[label(slug = ...)]` is not a valid attribute
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:102:9
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[label(slug = 4)]
|
|
|
|
| ^^^^^^^^
|
2022-09-12 13:44:28 -05:00
|
|
|
|
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:102:1
|
2022-06-23 10:12:52 -05:00
|
|
|
|
|
2022-09-12 13:44:28 -05:00
|
|
|
LL | #[label(slug = 4)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[label(slug(...))]` is not a valid attribute
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:112:9
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[label(slug("..."))]
|
|
|
|
| ^^^^^^^^^^^
|
2022-09-12 13:44:28 -05:00
|
|
|
|
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:112:1
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-09-12 13:44:28 -05:00
|
|
|
LL | #[label(slug("..."))]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
2022-06-23 10:12:52 -05:00
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:132:1
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[label()]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2022-09-12 13:44:28 -05:00
|
|
|
error: `#[label(code = ...)]` is not a valid attribute
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:141:26
|
2022-06-23 10:12:52 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[label(parse_add_paren, code = "...")]
|
|
|
|
| ^^^^^^^^^^^^
|
2022-06-23 10:12:52 -05:00
|
|
|
|
2022-09-12 13:44:28 -05:00
|
|
|
error: `#[label(applicability = ...)]` is not a valid attribute
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:150:26
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[label(parse_add_paren, applicability = "machine-applicable")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
error: unsupported type attribute for subdiagnostic enum
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:159:1
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[foo]
|
|
|
|
| ^^^^^^
|
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[bar]` is not a valid attribute
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:173:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar]
|
|
|
|
| ^^^^^^
|
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[bar = ...]` is not a valid attribute
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:185:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar = "..."]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[bar = ...]` is not a valid attribute
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:197:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar = 4]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
error: `#[bar(...)]` is not a valid attribute
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:209:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar("...")]
|
2022-09-01 12:42:49 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
2022-09-12 13:44:28 -05:00
|
|
|
error: `#[label(code = ...)]` is not a valid attribute
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:221:13
|
|
|
|
|
|
|
|
|
LL | #[label(code = "...")]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2022-06-23 10:12:52 -05:00
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:221:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[label(code = "...")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-07-11 11:15:31 -05:00
|
|
|
error: the `#[primary_span]` attribute can only be applied to fields of type `Span` or `MultiSpan`
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:250:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[primary_span]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: label without `#[primary_span]` field
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:247:1
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | / #[label(parse_add_paren)]
|
2022-04-26 05:59:45 -05:00
|
|
|
LL | |
|
2022-06-23 10:12:52 -05:00
|
|
|
LL | | struct W {
|
2022-04-26 05:59:45 -05:00
|
|
|
LL | | #[primary_span]
|
|
|
|
LL | |
|
|
|
|
LL | | span: String,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error: `#[applicability]` is only valid on suggestions
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:260:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[applicability]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[bar]` is not a valid attribute
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:270:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar]
|
|
|
|
| ^^^^^^
|
2022-04-26 22:06:13 -05:00
|
|
|
|
|
|
|
|
= help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
|
2022-04-26 05:59:45 -05:00
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[bar = ...]` is not a valid attribute
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:281:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar = "..."]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[bar(...)]` is not a valid attribute
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:292:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar("...")]
|
|
|
|
| ^^^^^^^^^^^^^
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
= help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
error: unexpected unsupported untagged union
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:308:1
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-06-23 10:12:52 -05:00
|
|
|
LL | / union AC {
|
2022-04-26 05:59:45 -05:00
|
|
|
LL | |
|
|
|
|
LL | | span: u32,
|
2022-10-20 14:09:54 -05:00
|
|
|
LL | | b: u64,
|
2022-04-26 05:59:45 -05:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
error: `#[label(parse_add_paren)]` is not a valid attribute
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:323:26
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[label(parse_add_paren, parse_add_paren)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-06-23 10:12:52 -05:00
|
|
|
= help: a diagnostic slug must be the first argument to the attribute
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
error: specified multiple times
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:336:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[primary_span]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:333:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[primary_span]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: subdiagnostic kind not specified
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:342:8
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-06-23 10:12:52 -05:00
|
|
|
LL | struct AG {
|
2022-04-26 05:59:45 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: specified multiple times
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:379:45
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren, code = "...", code = "...")]
|
|
|
|
| ^^^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
note: previously specified here
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:379:31
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren, code = "...", code = "...")]
|
|
|
|
| ^^^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
error: specified multiple times
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:397:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[applicability]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:394:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[applicability]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[applicability]` attribute can only be applied to fields of type `Applicability`
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:407:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[applicability]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
error: suggestion without `code = "..."`
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:420:1
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
error: invalid applicability
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:430:45
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren, code = "...", applicability = "foo")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
error: suggestion without `#[primary_span]` field
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:448:1
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | / #[suggestion(parse_add_paren, code = "...")]
|
2022-08-22 22:19:38 -05:00
|
|
|
LL | |
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | | struct AR {
|
|
|
|
LL | | var: String,
|
2022-08-22 22:19:38 -05:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
2022-08-23 00:54:06 -05:00
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
error: unsupported type attribute for subdiagnostic enum
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:462:1
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[label]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: `var` doesn't refer to a field on this type
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:482:38
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren, code = "{var}", applicability = "machine-applicable")]
|
|
|
|
| ^^^^^^^
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
error: `var` doesn't refer to a field on this type
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:501:42
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren, code = "{var}", applicability = "machine-applicable")]
|
|
|
|
| ^^^^^^^
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
error: `#[suggestion_part]` is not a valid attribute
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:524:5
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: `#[suggestion_part(...)]` is only valid in multipart suggestions, use `#[primary_span]` instead
|
|
|
|
|
|
|
|
error: `#[suggestion_part(...)]` is not a valid attribute
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:527:5
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code = "...")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: `#[suggestion_part(...)]` is only valid in multipart suggestions
|
|
|
|
|
|
|
|
error: suggestion without `#[primary_span]` field
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:521:1
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | / #[suggestion(parse_add_paren, code = "...")]
|
2022-08-23 00:54:06 -05:00
|
|
|
LL | |
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | | struct BA {
|
|
|
|
LL | | #[suggestion_part]
|
2022-08-23 00:54:06 -05:00
|
|
|
... |
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | | var: String,
|
2022-08-23 00:54:06 -05:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2022-09-12 13:44:28 -05:00
|
|
|
error: `#[multipart_suggestion(code = ...)]` is not a valid attribute
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:536:41
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[multipart_suggestion(parse_add_paren, code = "...", applicability = "machine-applicable")]
|
|
|
|
| ^^^^^^^^^^^^
|
2022-09-12 13:44:28 -05:00
|
|
|
|
|
2022-10-20 13:28:24 -05:00
|
|
|
= help: only `style` and `applicability` are valid nested attributes
|
2022-08-23 00:54:06 -05:00
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
error: multipart suggestion without any `#[suggestion_part(...)]` fields
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:536:1
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | / #[multipart_suggestion(parse_add_paren, code = "...", applicability = "machine-applicable")]
|
2022-08-23 00:54:06 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | | struct BBa {
|
2022-08-23 00:54:06 -05:00
|
|
|
LL | | var: String,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
error: `#[suggestion_part(...)]` attribute without `code = "..."`
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:546:5
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | #[suggestion_part]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `#[suggestion_part(...)]` attribute without `code = "..."`
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:554:5
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part()]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `#[primary_span]` is not a valid attribute
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:563:5
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[primary_span]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: multipart suggestions use one or more `#[suggestion_part]`s rather than one `#[primary_span]`
|
|
|
|
|
|
|
|
error: multipart suggestion without any `#[suggestion_part(...)]` fields
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:560:1
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | / #[multipart_suggestion(parse_add_paren)]
|
2022-08-23 00:54:06 -05:00
|
|
|
LL | |
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | | struct BC {
|
|
|
|
LL | | #[primary_span]
|
2022-08-23 00:54:06 -05:00
|
|
|
LL | |
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | | span: Span,
|
2022-08-23 00:54:06 -05:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
error: `#[suggestion_part(...)]` attribute without `code = "..."`
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:571:5
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | #[suggestion_part]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2022-08-23 00:54:06 -05:00
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
error: `#[suggestion_part(...)]` attribute without `code = "..."`
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:574:5
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | #[suggestion_part()]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2022-08-23 00:54:06 -05:00
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
error: `#[suggestion_part(foo = ...)]` is not a valid attribute
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:577:23
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | #[suggestion_part(foo = "bar")]
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: `code` is the only valid nested attribute
|
|
|
|
|
|
|
|
error: the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:580:5
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code = "...")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:583:5
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part()]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: specified multiple times
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:591:37
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code = "...", code = ",,,")]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:591:23
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code = "...", code = ",,,")]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2022-09-12 13:44:28 -05:00
|
|
|
error: `#[applicability]` has no effect if all `#[suggestion]`/`#[multipart_suggestion]` attributes have a static `applicability = "..."`
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:620:5
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[applicability]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-08-23 00:54:06 -05:00
|
|
|
|
2022-10-17 12:41:49 -05:00
|
|
|
error: expected exactly one string literal for `code = ...`
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:668:23
|
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code("foo"))]
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: expected exactly one string literal for `code = ...`
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:677:23
|
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code("foo", "bar"))]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: expected exactly one string literal for `code = ...`
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:686:23
|
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code(3))]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: expected exactly one string literal for `code = ...`
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:695:23
|
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code())]
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: `code = "..."`/`code(...)` must contain only string literals
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:704:23
|
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code = 3)]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2022-10-20 13:28:24 -05:00
|
|
|
error: specified multiple times
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:746:60
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren, code = "", style = "hidden", style = "normal")]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
|
|
|
note: previously specified here
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:746:42
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren, code = "", style = "hidden", style = "normal")]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-20 13:28:24 -05:00
|
|
|
|
2022-10-22 10:21:11 -05:00
|
|
|
error: `#[suggestion_hidden(...)]` is not a valid attribute
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:755:1
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion_hidden(parse_add_paren, code = "")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-10-22 10:21:11 -05:00
|
|
|
= help: Use `#[suggestion(..., style = "hidden")]` instead
|
|
|
|
|
|
|
|
error: `#[suggestion_hidden(...)]` is not a valid attribute
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:763:1
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion_hidden(parse_add_paren, code = "", style = "normal")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-10-22 10:21:11 -05:00
|
|
|
|
|
|
|
|
= help: Use `#[suggestion(..., style = "hidden")]` instead
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
|
|
error: invalid suggestion style
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:771:50
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren, code = "", style = "foo")]
|
|
|
|
| ^^^^^
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-10-20 14:17:14 -05:00
|
|
|
= help: valid styles are `normal`, `short`, `hidden`, `verbose` and `tool-only`
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
|
|
error: `#[suggestion(style = ...)]` is not a valid attribute
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:779:42
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren, code = "", style = 42)]
|
|
|
|
| ^^^^^^^^^^
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
|
|
error: `#[suggestion(style)]` is not a valid attribute
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:787:42
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren, code = "", style)]
|
|
|
|
| ^^^^^
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
|
|
|
= help: a diagnostic slug must be the first argument to the attribute
|
|
|
|
|
|
|
|
error: `#[suggestion(style(...))]` is not a valid attribute
|
2022-11-07 17:42:00 -06:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:795:42
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-11-07 17:42:00 -06:00
|
|
|
LL | #[suggestion(parse_add_paren, code = "", style("foo"))]
|
|
|
|
| ^^^^^^^^^^^^
|
2022-10-20 13:28:24 -05:00
|
|
|
|
2022-10-16 09:15:39 -05:00
|
|
|
error: `#[primary_span]` is not a valid attribute
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:806:5
|
|
|
|
|
|
|
|
|
LL | #[primary_span]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: there must be exactly one primary span
|
|
|
|
= help: to create a suggestion with multiple spans, use `#[multipart_suggestion]` instead
|
|
|
|
|
|
|
|
error: suggestion without `#[primary_span]` field
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:803:1
|
|
|
|
|
|
|
|
|
LL | / #[suggestion(parse_add_paren, code = "")]
|
|
|
|
LL | |
|
|
|
|
LL | | struct PrimarySpanOnVec {
|
|
|
|
LL | | #[primary_span]
|
|
|
|
... |
|
|
|
|
LL | | sub: Vec<Span>,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2022-04-26 05:59:45 -05:00
|
|
|
error: cannot find attribute `foo` in this scope
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:63:3
|
|
|
|
|
|
|
|
|
LL | #[foo]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `foo` in this scope
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:159:3
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[foo]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:173:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:185:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar = "..."]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:197:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar = 4]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:209:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar("...")]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:270:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:281:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar = "..."]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2022-10-14 05:09:52 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:292:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar("...")]
|
|
|
|
| ^^^
|
|
|
|
|
2022-06-23 10:12:52 -05:00
|
|
|
error[E0425]: cannot find value `slug` in module `rustc_errors::fluent`
|
2022-09-12 13:44:28 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:122:9
|
2022-06-23 10:12:52 -05:00
|
|
|
|
|
|
|
|
LL | #[label(slug)]
|
|
|
|
| ^^^^ not found in `rustc_errors::fluent`
|
|
|
|
|
2022-10-16 09:15:39 -05:00
|
|
|
error: aborting due to 81 previous errors
|
2022-04-26 05:59:45 -05:00
|
|
|
|
2022-06-23 10:12:52 -05:00
|
|
|
For more information about this error, try `rustc --explain E0425`.
|