2022-04-26 05:59:45 -05:00
|
|
|
error: label without `#[primary_span]` field
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:52:1
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[label(no_crate_example)]
|
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
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:59:1
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[label]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[foo]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:68:1
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[foo]
|
|
|
|
| ^^^^^^
|
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[label = ...]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:78:1
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[label = "..."]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-05-17 05:30:14 -05:00
|
|
|
error: only `no_span` is a valid nested attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:87:9
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[label(bug = "...")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^
|
2022-09-12 13:44:28 -05:00
|
|
|
|
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:87: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
|
|
|
|
2023-05-17 05:30:14 -05:00
|
|
|
error: only `no_span` is a valid nested attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:107:9
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[label(slug = 4)]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^
|
2022-09-12 13:44:28 -05:00
|
|
|
|
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:107: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
|
|
|
|
2023-05-17 05:30:14 -05:00
|
|
|
error: only `no_span` is a valid nested attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:117:9
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[label(slug("..."))]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^
|
2022-09-12 13:44:28 -05:00
|
|
|
|
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:117: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
|
|
|
|
2023-07-25 07:56:34 -05:00
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:137:1
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[label()]
|
2023-07-25 07:56:34 -05:00
|
|
|
| ^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
2023-05-17 05:30:14 -05:00
|
|
|
error: only `no_span` is a valid nested attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:146:27
|
2022-06-23 10:12:52 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[label(no_crate_example, code = "...")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^
|
2022-06-23 10:12:52 -05:00
|
|
|
|
2023-05-17 05:30:14 -05:00
|
|
|
error: only `no_span` is a valid nested attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:155:27
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[label(no_crate_example, applicability = "machine-applicable")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
error: unsupported type attribute for subdiagnostic enum
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:164: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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:178: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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:190: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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:202: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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:214: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
|
|
|
|
2023-05-17 05:30:14 -05:00
|
|
|
error: only `no_span` is a valid nested attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:226:13
|
2022-09-12 13:44:28 -05:00
|
|
|
|
|
|
|
|
LL | #[label(code = "...")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^
|
2022-09-12 13:44:28 -05:00
|
|
|
|
2022-06-23 10:12:52 -05:00
|
|
|
error: diagnostic slug must be first argument of a `#[label(...)]` attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:226: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`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:255:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[primary_span]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: label without `#[primary_span]` field
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:252:1
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[label(no_crate_example)]
|
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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:265: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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:275: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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:286: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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:297: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
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: a diagnostic slug must be the first argument to the attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:329:44
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[label(no_crate_example, no_crate::example)]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
error: specified multiple times
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:342:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[primary_span]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:339:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[primary_span]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: subdiagnostic kind not specified
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:348: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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:385:46
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_example, code = "...", code = "...")]
|
2023-04-03 10:11:30 -05:00
|
|
|
| ^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:385:32
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_example, code = "...", code = "...")]
|
2023-04-03 10:11:30 -05:00
|
|
|
| ^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
error: specified multiple times
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:403:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[applicability]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:400:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[applicability]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[applicability]` attribute can only be applied to fields of type `Applicability`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:413:5
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[applicability]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
error: suggestion without `code = "..."`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:426:1
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_example)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
error: invalid applicability
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:436:62
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_example, code = "...", applicability = "foo")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^
|
2022-04-26 05:59:45 -05:00
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
error: suggestion without `#[primary_span]` field
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:454:1
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[suggestion(no_crate_example, 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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:468:1
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[label]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: `var` doesn't refer to a field on this type
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:488:39
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_example, code = "{var}", applicability = "machine-applicable")]
|
|
|
|
| ^^^^^^^
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
error: `var` doesn't refer to a field on this type
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:507:43
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_example, code = "{var}", applicability = "machine-applicable")]
|
|
|
|
| ^^^^^^^
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
error: `#[suggestion_part]` is not a valid attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:530: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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:533: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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:527:1
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[suggestion(no_crate_example, 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 | | }
|
|
|
|
| |_^
|
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: invalid nested attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:542:42
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[multipart_suggestion(no_crate_example, code = "...", applicability = "machine-applicable")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^
|
2022-09-12 13:44:28 -05:00
|
|
|
|
|
2023-05-17 05:30:14 -05:00
|
|
|
= help: only `no_span`, `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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:542:1
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[multipart_suggestion(no_crate_example, 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 = "..."`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:552:5
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | #[suggestion_part]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-07-25 07:56:34 -05:00
|
|
|
error: `#[suggestion_part(...)]` attribute without `code = "..."`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:560:5
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part()]
|
2023-07-25 07:56:34 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
error: `#[primary_span]` is not a valid attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:569: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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:566:1
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[multipart_suggestion(no_crate_example)]
|
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 = "..."`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:577: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
|
|
|
|
2023-07-25 07:56:34 -05:00
|
|
|
error: `#[suggestion_part(...)]` attribute without `code = "..."`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:580:5
|
2023-07-25 07:56:34 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part()]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: `code` is the only valid nested attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:583:23
|
2022-08-23 00:54:06 -05:00
|
|
|
|
|
2022-09-01 12:42:49 -05:00
|
|
|
LL | #[suggestion_part(foo = "bar")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
error: the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:588: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`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:591:5
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part()]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: specified multiple times
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:599:37
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code = "...", code = ",,,")]
|
2023-04-03 10:11:30 -05:00
|
|
|
| ^^^^
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:599:23
|
2022-09-01 12:42:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code = "...", code = ",,,")]
|
2023-04-03 10:11:30 -05:00
|
|
|
| ^^^^
|
2022-09-01 12:42:49 -05:00
|
|
|
|
2022-09-12 13:44:28 -05:00
|
|
|
error: `#[applicability]` has no effect if all `#[suggestion]`/`#[multipart_suggestion]` attributes have a static `applicability = "..."`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:628: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 = ...`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:676:34
|
2022-10-17 12:41:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code("foo"))]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
|
|
|
|
2022-10-17 12:41:49 -05:00
|
|
|
error: expected exactly one string literal for `code = ...`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:687:41
|
2023-04-03 09:36:50 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code("foo", "bar"))]
|
|
|
|
| ^
|
|
|
|
|
2022-10-17 12:41:49 -05:00
|
|
|
error: expected exactly one string literal for `code = ...`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:698:30
|
2022-10-17 12:41:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code(3))]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
|
|
|
|
2022-10-17 12:41:49 -05:00
|
|
|
error: expected exactly one string literal for `code = ...`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:709:29
|
2022-10-17 12:41:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code())]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
2022-10-17 12:41:49 -05:00
|
|
|
|
2022-10-20 13:28:24 -05:00
|
|
|
error: specified multiple times
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:764:1
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_example, code = "", style = "hidden", style = "normal")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:764:1
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_example, code = "", style = "hidden", style = "normal")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-10-20 13:28:24 -05:00
|
|
|
|
2022-10-22 10:21:11 -05:00
|
|
|
error: `#[suggestion_hidden(...)]` is not a valid attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:773:1
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion_hidden(no_crate_example, 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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:781:1
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion_hidden(no_crate_example, 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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:789:51
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_example, 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
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: expected `= "xxx"`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:797:49
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_example, code = "", style = 42)]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
2022-10-20 13:28:24 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: a diagnostic slug must be the first argument to the attribute
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:805:48
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_example, code = "", style)]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: expected `= "xxx"`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:813:48
|
2022-10-20 13:28:24 -05:00
|
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
LL | #[suggestion(no_crate_example, 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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:826:5
|
2022-10-16 09:15:39 -05:00
|
|
|
|
|
|
|
|
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
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:823:1
|
2022-10-16 09:15:39 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[suggestion(no_crate_example, code = "")]
|
2022-10-16 09:15:39 -05:00
|
|
|
LL | |
|
|
|
|
LL | | struct PrimarySpanOnVec {
|
|
|
|
LL | | #[primary_span]
|
|
|
|
... |
|
|
|
|
LL | | sub: Vec<Span>,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2023-07-25 07:56:34 -05:00
|
|
|
error[E0433]: failed to resolve: maybe a missing crate `core`?
|
|
|
|
--> $DIR/subdiagnostic-derive.rs:97:9
|
|
|
|
|
|
|
|
|
LL | #[label("...")]
|
|
|
|
| ^^^^^ maybe a missing crate `core`?
|
|
|
|
|
|
|
|
error[E0433]: failed to resolve: maybe a missing crate `core`?
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:313:1
|
2023-07-25 07:56:34 -05:00
|
|
|
|
|
|
|
|
LL | union AC {
|
|
|
|
| ^^^^^ maybe a missing crate `core`?
|
|
|
|
|
|
|
|
error[E0433]: failed to resolve: maybe a missing crate `core`?
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:583:27
|
2023-07-25 07:56:34 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(foo = "bar")]
|
|
|
|
| ^ maybe a missing crate `core`?
|
|
|
|
|
|
|
|
error[E0433]: failed to resolve: maybe a missing crate `core`?
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:676:28
|
2023-07-25 07:56:34 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code("foo"))]
|
|
|
|
| ^^^^^ maybe a missing crate `core`?
|
|
|
|
|
|
|
|
error[E0433]: failed to resolve: maybe a missing crate `core`?
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:687:28
|
2023-07-25 07:56:34 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code("foo", "bar"))]
|
|
|
|
| ^^^^^ maybe a missing crate `core`?
|
|
|
|
|
|
|
|
error[E0433]: failed to resolve: maybe a missing crate `core`?
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:698:28
|
2023-07-25 07:56:34 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code(3))]
|
|
|
|
| ^ maybe a missing crate `core`?
|
|
|
|
|
|
|
|
error[E0433]: failed to resolve: maybe a missing crate `core`?
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:721:30
|
2023-07-25 07:56:34 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion_part(code = 3)]
|
|
|
|
| ^ maybe a missing crate `core`?
|
|
|
|
|
|
|
|
error[E0433]: failed to resolve: maybe a missing crate `core`?
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:813:48
|
2023-07-25 07:56:34 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion(no_crate_example, code = "", style("foo"))]
|
|
|
|
| ^ maybe a missing crate `core`?
|
|
|
|
|
2022-04-26 05:59:45 -05:00
|
|
|
error: cannot find attribute `foo` in this scope
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:68:3
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[foo]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `foo` in this scope
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:164:3
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[foo]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:178:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:190:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar = "..."]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:202:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar = 4]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:214:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar("...")]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:275:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:286:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar = "..."]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `bar` in this scope
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:297:7
|
2022-04-26 05:59:45 -05:00
|
|
|
|
|
|
|
|
LL | #[bar("...")]
|
|
|
|
| ^^^
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
error[E0425]: cannot find value `slug` in module `crate::fluent_generated`
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:127:9
|
2022-06-23 10:12:52 -05:00
|
|
|
|
|
|
|
|
LL | #[label(slug)]
|
2022-10-13 04:13:02 -05:00
|
|
|
| ^^^^ not found in `crate::fluent_generated`
|
2022-06-23 10:12:52 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error[E0425]: cannot find value `__code_29` in this scope
|
2023-07-26 03:42:40 -05:00
|
|
|
--> $DIR/subdiagnostic-derive.rs:715:10
|
2023-04-03 09:36:50 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(Subdiagnostic)]
|
|
|
|
| ^^^^^^^^^^^^^ not found in this scope
|
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: aborting due to 86 previous errors
|
2022-04-26 05:59:45 -05:00
|
|
|
|
2023-07-25 07:56:34 -05:00
|
|
|
Some errors have detailed explanations: E0425, E0433.
|
|
|
|
For more information about an error, try `rustc --explain E0425`.
|