2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): label without `#[primary_span]` field
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:51:1
2022-04-26 05:59:45 -05:00
|
2024-01-29 06:18:30 -06:00
LL | #[label(no_crate_example)]
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:58:1
2022-04-26 05:59:45 -05:00
|
LL | #[label]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[foo]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:67:1
2022-04-26 05:59:45 -05:00
|
LL | #[foo]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[label = ...]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:77:1
2022-04-26 05:59:45 -05:00
|
LL | #[label = "..."]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): only `no_span` is a valid nested attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:86: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:86:1
2022-04-26 22:06:13 -05:00
|
2022-09-12 13:44:28 -05:00
LL | #[label(bug = "...")]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): only `no_span` is a valid nested attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:106: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:106:1
2022-06-23 10:12:52 -05:00
|
2022-09-12 13:44:28 -05:00
LL | #[label(slug = 4)]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): only `no_span` is a valid nested attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:116: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:116:1
2022-04-26 05:59:45 -05:00
|
2022-09-12 13:44:28 -05:00
LL | #[label(slug("..."))]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:136:1
2022-04-26 05:59:45 -05:00
|
LL | #[label()]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): only `no_span` is a valid nested attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:145: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-12-24 17:34:31 -06:00
error: derive(Diagnostic): only `no_span` is a valid nested attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:154: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): unsupported type attribute for subdiagnostic enum
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:163:1
2022-04-26 05:59:45 -05:00
|
LL | #[foo]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[bar]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:177:5
2022-04-26 05:59:45 -05:00
|
LL | #[bar]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[bar = ...]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:189:5
2022-04-26 05:59:45 -05:00
|
LL | #[bar = "..."]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[bar = ...]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:201:5
2022-04-26 05:59:45 -05:00
|
LL | #[bar = 4]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[bar(...)]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:213:5
2022-04-26 05:59:45 -05:00
|
LL | #[bar("...")]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): only `no_span` is a valid nested attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:225: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:225:5
2022-04-26 05:59:45 -05:00
|
LL | #[label(code = "...")]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): the `#[primary_span]` attribute can only be applied to fields of type `Span` or `MultiSpan`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:254:5
2022-04-26 05:59:45 -05:00
|
LL | #[primary_span]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): label without `#[primary_span]` field
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:251:1
2022-04-26 05:59:45 -05:00
|
2024-01-29 06:18:30 -06:00
LL | #[label(no_crate_example)]
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[applicability]` is only valid on suggestions
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:264:5
2022-04-26 05:59:45 -05:00
|
LL | #[applicability]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[bar]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:274:5
2022-04-26 05:59:45 -05:00
|
LL | #[bar]
2024-01-29 06:18:30 -06:00
| ^
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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[bar = ...]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:285:5
2022-04-26 05:59:45 -05:00
|
LL | #[bar = "..."]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[bar(...)]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:296:5
2022-04-26 05:59:45 -05:00
|
LL | #[bar("...")]
2024-01-29 06:18:30 -06:00
| ^
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-12-24 17:34:31 -06:00
error: derive(Diagnostic): a diagnostic slug must be the first argument to the attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:328: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): attribute specified multiple times
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:341:5
2022-04-26 05:59:45 -05:00
|
LL | #[primary_span]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
|
note: previously specified here
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:338:5
2022-04-26 05:59:45 -05:00
|
LL | #[primary_span]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): subdiagnostic kind not specified
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:347: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
| ^^
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): attribute specified multiple times
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:384: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-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:384: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): attribute specified multiple times
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:402:5
2022-04-26 05:59:45 -05:00
|
LL | #[applicability]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
|
note: previously specified here
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:399:5
2022-04-26 05:59:45 -05:00
|
LL | #[applicability]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): the `#[applicability]` attribute can only be applied to fields of type `Applicability`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:412:5
2022-04-26 05:59:45 -05:00
|
LL | #[applicability]
2024-01-29 06:18:30 -06:00
| ^
2022-04-26 05:59:45 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): suggestion without `code = "..."`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:425:1
2022-09-01 12:42:49 -05:00
|
2022-10-13 04:13:02 -05:00
LL | #[suggestion(no_crate_example)]
2024-01-29 06:18:30 -06:00
| ^
2022-09-01 12:42:49 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): invalid applicability
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:435: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): suggestion without `#[primary_span]` field
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:453:1
2022-08-23 00:54:06 -05:00
|
2024-01-29 06:18:30 -06:00
LL | #[suggestion(no_crate_example, code = "...")]
| ^
2022-08-23 00:54:06 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): unsupported type attribute for subdiagnostic enum
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:467:1
2022-09-01 12:42:49 -05:00
|
LL | #[label]
2024-01-29 06:18:30 -06:00
| ^
2022-09-01 12:42:49 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `var` doesn't refer to a field on this type
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:487: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `var` doesn't refer to a field on this type
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:506: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[suggestion_part]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:529:5
2022-09-01 12:42:49 -05:00
|
LL | #[suggestion_part]
2024-01-29 06:18:30 -06:00
| ^
2022-09-01 12:42:49 -05:00
|
= help: `#[suggestion_part(...)]` is only valid in multipart suggestions, use `#[primary_span]` instead
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[suggestion_part(...)]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:532:5
2022-09-01 12:42:49 -05:00
|
LL | #[suggestion_part(code = "...")]
2024-01-29 06:18:30 -06:00
| ^
2022-09-01 12:42:49 -05:00
|
= help: `#[suggestion_part(...)]` is only valid in multipart suggestions
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): suggestion without `#[primary_span]` field
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:526:1
2022-08-23 00:54:06 -05:00
|
2024-01-29 06:18:30 -06:00
LL | #[suggestion(no_crate_example, code = "...")]
| ^
2022-08-23 00:54:06 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): invalid nested attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:541: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): multipart suggestion without any `#[suggestion_part(...)]` fields
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:541:1
2022-08-23 00:54:06 -05:00
|
2024-01-29 06:18:30 -06:00
LL | #[multipart_suggestion(no_crate_example, code = "...", applicability = "machine-applicable")]
| ^
2022-08-23 00:54:06 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[suggestion_part(...)]` attribute without `code = "..."`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:551:5
2022-08-23 00:54:06 -05:00
|
2022-09-01 12:42:49 -05:00
LL | #[suggestion_part]
2024-01-29 06:18:30 -06:00
| ^
2022-09-01 12:42:49 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[suggestion_part(...)]` attribute without `code = "..."`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:559:5
2022-09-01 12:42:49 -05:00
|
LL | #[suggestion_part()]
2024-01-29 06:18:30 -06:00
| ^
2022-09-01 12:42:49 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[primary_span]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:568:5
2022-09-01 12:42:49 -05:00
|
LL | #[primary_span]
2024-01-29 06:18:30 -06:00
| ^
2022-09-01 12:42:49 -05:00
|
= help: multipart suggestions use one or more `#[suggestion_part]`s rather than one `#[primary_span]`
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): multipart suggestion without any `#[suggestion_part(...)]` fields
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:565:1
2022-09-01 12:42:49 -05:00
|
2024-01-29 06:18:30 -06:00
LL | #[multipart_suggestion(no_crate_example)]
| ^
2022-08-23 00:54:06 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[suggestion_part(...)]` attribute without `code = "..."`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:576:5
2022-08-23 00:54:06 -05:00
|
2022-09-01 12:42:49 -05:00
LL | #[suggestion_part]
2024-01-29 06:18:30 -06:00
| ^
2022-08-23 00:54:06 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[suggestion_part(...)]` attribute without `code = "..."`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:579:5
2023-07-25 07:56:34 -05:00
|
LL | #[suggestion_part()]
2024-01-29 06:18:30 -06:00
| ^
2023-07-25 07:56:34 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `code` is the only valid nested attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:582: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:587:5
2022-09-01 12:42:49 -05:00
|
LL | #[suggestion_part(code = "...")]
2024-01-29 06:18:30 -06:00
| ^
2022-09-01 12:42:49 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:590:5
2022-09-01 12:42:49 -05:00
|
LL | #[suggestion_part()]
2024-01-29 06:18:30 -06:00
| ^
2022-09-01 12:42:49 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): attribute specified multiple times
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:598: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-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:598: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[applicability]` has no effect if all `#[suggestion]`/`#[multipart_suggestion]` attributes have a static `applicability = "..."`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:627:5
2022-09-01 12:42:49 -05:00
|
LL | #[applicability]
2024-01-29 06:18:30 -06:00
| ^
2022-08-23 00:54:06 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): expected exactly one string literal for `code = ...`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:675:34
2022-10-17 12:41:49 -05:00
|
LL | #[suggestion_part(code("foo"))]
2023-04-03 09:36:50 -05:00
| ^
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): expected exactly one string literal for `code = ...`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:686:41
2023-04-03 09:36:50 -05:00
|
LL | #[suggestion_part(code("foo", "bar"))]
| ^
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): expected exactly one string literal for `code = ...`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:697:30
2022-10-17 12:41:49 -05:00
|
LL | #[suggestion_part(code(3))]
2023-04-03 09:36:50 -05:00
| ^
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): expected exactly one string literal for `code = ...`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:708: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): attribute specified multiple times
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:763: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")]
2024-01-29 06:18:30 -06:00
| ^
2022-10-20 13:28:24 -05:00
|
note: previously specified here
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:763: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")]
2024-01-29 06:18:30 -06:00
| ^
2022-10-20 13:28:24 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[suggestion_hidden(...)]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:772:1
2022-10-20 13:28:24 -05:00
|
2022-10-13 04:13:02 -05:00
LL | #[suggestion_hidden(no_crate_example, code = "")]
2024-01-29 06:18:30 -06:00
| ^
2022-10-20 13:28:24 -05:00
|
2022-10-22 10:21:11 -05:00
= help: Use `#[suggestion(..., style = "hidden")]` instead
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[suggestion_hidden(...)]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:780: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")]
2024-01-29 06:18:30 -06:00
| ^
2022-10-22 10:21:11 -05:00
|
= help: Use `#[suggestion(..., style = "hidden")]` instead
2022-10-20 13:28:24 -05:00
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): invalid suggestion style
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:788: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-12-24 17:34:31 -06:00
error: derive(Diagnostic): expected `= "xxx"`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:796: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-12-24 17:34:31 -06:00
error: derive(Diagnostic): a diagnostic slug must be the first argument to the attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:804: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
| ^
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): expected `= "xxx"`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:812: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
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): `#[primary_span]` is not a valid attribute
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:825:5
2022-10-16 09:15:39 -05:00
|
LL | #[primary_span]
2024-01-29 06:18:30 -06:00
| ^
2022-10-16 09:15:39 -05:00
|
= note: there must be exactly one primary span
= help: to create a suggestion with multiple spans, use `#[multipart_suggestion]` instead
2023-12-24 17:34:31 -06:00
error: derive(Diagnostic): suggestion without `#[primary_span]` field
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:822:1
2022-10-16 09:15:39 -05:00
|
2024-01-29 06:18:30 -06:00
LL | #[suggestion(no_crate_example, code = "")]
| ^
2022-10-16 09:15:39 -05:00
2024-07-23 14:43:46 -05:00
error[E0433]: failed to resolve: you might be missing crate `core`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:96:9
2023-07-25 07:56:34 -05:00
|
LL | #[label("...")]
2024-07-23 14:43:46 -05:00
| ^^^^^ you might be missing crate `core`
2023-07-25 07:56:34 -05:00
2024-07-23 14:43:46 -05:00
error[E0433]: failed to resolve: you might be missing crate `core`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:312:1
2023-07-25 07:56:34 -05:00
|
LL | union AC {
2024-07-23 14:43:46 -05:00
| ^^^^^ you might be missing crate `core`
2023-07-25 07:56:34 -05:00
2024-07-23 14:43:46 -05:00
error[E0433]: failed to resolve: you might be missing crate `core`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:582:27
2023-07-25 07:56:34 -05:00
|
LL | #[suggestion_part(foo = "bar")]
2024-07-23 14:43:46 -05:00
| ^ you might be missing crate `core`
2023-07-25 07:56:34 -05:00
2024-07-23 14:43:46 -05:00
error[E0433]: failed to resolve: you might be missing crate `core`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:675:28
2023-07-25 07:56:34 -05:00
|
LL | #[suggestion_part(code("foo"))]
2024-07-23 14:43:46 -05:00
| ^^^^^ you might be missing crate `core`
2023-07-25 07:56:34 -05:00
2024-07-23 14:43:46 -05:00
error[E0433]: failed to resolve: you might be missing crate `core`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:686:28
2023-07-25 07:56:34 -05:00
|
LL | #[suggestion_part(code("foo", "bar"))]
2024-07-23 14:43:46 -05:00
| ^^^^^ you might be missing crate `core`
2023-07-25 07:56:34 -05:00
2024-07-23 14:43:46 -05:00
error[E0433]: failed to resolve: you might be missing crate `core`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:697:28
2023-07-25 07:56:34 -05:00
|
LL | #[suggestion_part(code(3))]
2024-07-23 14:43:46 -05:00
| ^ you might be missing crate `core`
2023-07-25 07:56:34 -05:00
2024-07-23 14:43:46 -05:00
error[E0433]: failed to resolve: you might be missing crate `core`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:720:30
2023-07-25 07:56:34 -05:00
|
LL | #[suggestion_part(code = 3)]
2024-07-23 14:43:46 -05:00
| ^ you might be missing crate `core`
2023-07-25 07:56:34 -05:00
2024-07-23 14:43:46 -05:00
error[E0433]: failed to resolve: you might be missing crate `core`
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:812:48
2023-07-25 07:56:34 -05:00
|
LL | #[suggestion(no_crate_example, code = "", style("foo"))]
2024-07-23 14:43:46 -05:00
| ^ you might be missing crate `core`
2023-07-25 07:56:34 -05:00
2022-04-26 05:59:45 -05:00
error: cannot find attribute `foo` in this scope
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:67:3
2022-04-26 05:59:45 -05:00
|
LL | #[foo]
| ^^^
error: cannot find attribute `foo` in this scope
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:163:3
2022-04-26 05:59:45 -05:00
|
LL | #[foo]
| ^^^
error: cannot find attribute `bar` in this scope
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:177:7
2022-04-26 05:59:45 -05:00
|
LL | #[bar]
| ^^^
error: cannot find attribute `bar` in this scope
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:189:7
2022-04-26 05:59:45 -05:00
|
LL | #[bar = "..."]
| ^^^
error: cannot find attribute `bar` in this scope
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:201:7
2022-04-26 05:59:45 -05:00
|
LL | #[bar = 4]
| ^^^
error: cannot find attribute `bar` in this scope
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:213:7
2022-04-26 05:59:45 -05:00
|
LL | #[bar("...")]
| ^^^
error: cannot find attribute `bar` in this scope
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:274:7
2022-04-26 05:59:45 -05:00
|
LL | #[bar]
| ^^^
error: cannot find attribute `bar` in this scope
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:285:7
2022-04-26 05:59:45 -05:00
|
LL | #[bar = "..."]
| ^^^
error: cannot find attribute `bar` in this scope
2023-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:296: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-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:126: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-11-21 16:53:07 -06:00
--> $DIR/subdiagnostic-derive.rs:714: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`.