2022-09-23 06:49:02 -05:00
|
|
|
error: unsupported type attribute for diagnostic derive enum
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:44:1
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[diag(no_crate_example, code = "E0123")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-09-23 06:49:02 -05:00
|
|
|
|
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:47:5
|
2022-09-23 06:49:02 -05:00
|
|
|
|
|
|
|
|
LL | Foo,
|
|
|
|
| ^^^
|
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2022-09-23 06:49:02 -05:00
|
|
|
|
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:49:5
|
2022-09-23 06:49:02 -05:00
|
|
|
|
|
|
|
|
LL | Bar,
|
|
|
|
| ^^^
|
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: expected parentheses: #[diag(...)]
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:55:8
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | #[diag = "E0123"]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
2022-03-31 02:35:17 -05:00
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[nonsense(...)]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:60:1
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[nonsense(no_crate_example, code = "E0123")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-03-31 02:35:17 -05:00
|
|
|
|
2022-08-19 08:02:10 -05:00
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:60:1
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[nonsense(no_crate_example, code = "E0123")]
|
2022-03-31 02:35:17 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | struct InvalidStructAttr {}
|
|
|
|
| |___________________________^
|
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2022-03-31 02:35:17 -05:00
|
|
|
|
2022-06-23 08:51:44 -05:00
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:67:1
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | / #[diag("E0123")]
|
2022-03-31 02:35:17 -05:00
|
|
|
LL | |
|
|
|
|
LL | | struct InvalidLitNestedAttr {}
|
|
|
|
| |______________________________^
|
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2022-03-31 02:35:17 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: diagnostic slug must be the first argument
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:77:16
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | #[diag(nonsense("foo"), code = "E0123", slug = "foo")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
2022-06-23 08:51:44 -05:00
|
|
|
|
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:77:1
|
2022-06-23 08:51:44 -05:00
|
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | / #[diag(nonsense("foo"), code = "E0123", slug = "foo")]
|
2022-06-23 08:51:44 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | struct InvalidNestedStructAttr1 {}
|
|
|
|
| |__________________________________^
|
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2022-03-31 02:35:17 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: unknown argument
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:83:8
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
|
|
|
LL | #[diag(nonsense = "...", code = "E0123", slug = "foo")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^^^^
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
= note: only the `code` parameter is valid after the slug
|
2022-06-23 08:51:44 -05:00
|
|
|
|
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:83:1
|
2022-06-23 08:51:44 -05:00
|
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | / #[diag(nonsense = "...", code = "E0123", slug = "foo")]
|
2022-06-23 08:51:44 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | struct InvalidNestedStructAttr2 {}
|
|
|
|
| |__________________________________^
|
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2022-03-31 02:35:17 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: unknown argument
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:89:8
|
2022-06-23 08:51:44 -05:00
|
|
|
|
|
2022-09-14 10:19:40 -05:00
|
|
|
LL | #[diag(nonsense = 4, code = "E0123", slug = "foo")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^^^^
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
= note: only the `code` parameter is valid after the slug
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2022-06-23 08:51:44 -05:00
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:89:1
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | / #[diag(nonsense = 4, code = "E0123", slug = "foo")]
|
2022-06-23 08:51:44 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | struct InvalidNestedStructAttr3 {}
|
|
|
|
| |__________________________________^
|
2022-04-26 22:06:13 -05:00
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: unknown argument
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:95:42
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[diag(no_crate_example, code = "E0123", slug = "foo")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
= note: only the `code` parameter is valid after the slug
|
2022-06-23 08:51:44 -05:00
|
|
|
|
|
|
|
error: `#[suggestion = ...]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:102:5
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-06-23 08:51:44 -05:00
|
|
|
LL | #[suggestion = "bar"]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2022-04-26 22:28:21 -05:00
|
|
|
error: specified multiple times
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:109:8
|
2022-04-26 22:28:21 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[diag(no_crate_example, code = "E0456")]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-04-26 22:28:21 -05:00
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:108:8
|
2022-04-26 22:28:21 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[diag(no_crate_example, code = "E0123")]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-04-26 22:28:21 -05:00
|
|
|
|
|
|
|
error: specified multiple times
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:109:26
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[diag(no_crate_example, code = "E0456")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:108:26
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[diag(no_crate_example, code = "E0123")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^
|
2022-03-31 02:35:17 -05:00
|
|
|
|
2022-04-26 22:28:21 -05:00
|
|
|
error: specified multiple times
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:115:42
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[diag(no_crate_example, code = "E0456", code = "E0457")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:115:26
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[diag(no_crate_example, code = "E0456", code = "E0457")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^
|
2022-06-23 08:51:44 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: diagnostic slug must be the first argument
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:120:43
|
2022-06-23 08:51:44 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[diag(no_crate_example, no_crate::example, code = "E0456")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
2022-03-31 02:35:17 -05:00
|
|
|
|
2022-08-19 08:02:10 -05:00
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:125:1
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
|
|
|
LL | struct KindNotProvided {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2022-03-31 02:35:17 -05:00
|
|
|
|
2022-06-23 08:51:44 -05:00
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:128:1
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | / #[diag(code = "E0456")]
|
2022-06-23 08:51:44 -05:00
|
|
|
LL | |
|
2022-03-31 02:35:17 -05:00
|
|
|
LL | | struct SlugNotProvided {}
|
|
|
|
| |_________________________^
|
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2020-08-27 05:00:21 -05:00
|
|
|
|
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-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:139:5
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-03-31 02:50:45 -05:00
|
|
|
LL | #[primary_span]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2022-03-31 02:35:17 -05:00
|
|
|
|
2022-04-26 22:06:13 -05:00
|
|
|
error: `#[nonsense]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:147:5
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-03-31 02:35:17 -05:00
|
|
|
LL | #[nonsense]
|
|
|
|
| ^^^^^^^^^^^
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2022-07-11 11:15:31 -05:00
|
|
|
error: the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:164:5
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[label(no_crate_label)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
|
|
error: `name` doesn't refer to a field on this type
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:172:46
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_suggestion, code = "{name}")]
|
|
|
|
| ^^^^^^^^
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
|
|
error: invalid format string: expected `'}'` but string was terminated
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:177:10
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-09-18 10:46:56 -05:00
|
|
|
LL | #[derive(Diagnostic)]
|
2022-08-26 11:52:08 -05:00
|
|
|
| ^^^^^^^^^^ expected `'}'` in format string
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
2022-09-18 10:46:56 -05:00
|
|
|
= note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
|
|
error: invalid format string: unmatched `}` found
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:187:10
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-09-18 10:46:56 -05:00
|
|
|
LL | #[derive(Diagnostic)]
|
2022-08-26 11:52:08 -05:00
|
|
|
| ^^^^^^^^^^ unmatched `}` in format string
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
|
|
|
= note: if you intended to print `}`, you can escape it using `}}`
|
2022-09-18 10:46:56 -05:00
|
|
|
= note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2022-07-11 11:15:31 -05:00
|
|
|
error: the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:207:5
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[label(no_crate_label)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2022-09-14 10:19:40 -05:00
|
|
|
error: suggestion without `code = "..."`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:226:5
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_suggestion)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-09-14 10:19:40 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: invalid nested attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:234:18
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-03-31 07:10:13 -05:00
|
|
|
LL | #[suggestion(nonsense = "bar")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^^^^
|
2022-04-26 22:06:13 -05:00
|
|
|
|
|
2023-05-17 05:30:14 -05:00
|
|
|
= help: only `no_span`, `style`, `code` and `applicability` are valid nested attributes
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
|
|
error: suggestion without `code = "..."`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:234:5
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion(nonsense = "bar")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: invalid nested attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:243:18
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-03-31 07:10:13 -05:00
|
|
|
LL | #[suggestion(msg = "bar")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^
|
2022-04-26 22:06:13 -05:00
|
|
|
|
|
2023-05-17 05:30:14 -05:00
|
|
|
= help: only `no_span`, `style`, `code` and `applicability` are valid nested attributes
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
|
|
error: suggestion without `code = "..."`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:243:5
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion(msg = "bar")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
|
|
error: wrong field type for suggestion
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:266:5
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[suggestion(no_crate_suggestion, code = "This is suggested code")]
|
2020-11-18 04:18:40 -06:00
|
|
|
LL | |
|
|
|
|
LL | | suggestion: Applicability,
|
|
|
|
| |_____________________________^
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-03-30 04:04:03 -05:00
|
|
|
= help: `#[suggestion(...)]` should be applied to fields of type `Span` or `(Span, Applicability)`
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2022-09-10 07:43:07 -05:00
|
|
|
error: specified multiple times
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:282:24
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-09-10 07:43:07 -05:00
|
|
|
LL | suggestion: (Span, Span, Applicability),
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:282:18
|
2022-09-10 07:43:07 -05:00
|
|
|
|
|
|
|
|
LL | suggestion: (Span, Span, Applicability),
|
|
|
|
| ^^^^
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2022-09-10 07:43:07 -05:00
|
|
|
error: specified multiple times
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:290:33
|
2020-08-27 05:00:21 -05:00
|
|
|
|
|
2022-09-10 07:43:07 -05:00
|
|
|
LL | suggestion: (Applicability, Applicability, Span),
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:290:18
|
2022-09-10 07:43:07 -05:00
|
|
|
|
|
|
|
|
LL | suggestion: (Applicability, Applicability, Span),
|
|
|
|
| ^^^^^^^^^^^^^
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2022-06-23 08:51:44 -05:00
|
|
|
error: `#[label = ...]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:297:5
|
2022-04-26 22:06:13 -05:00
|
|
|
|
|
2022-06-23 08:51:44 -05:00
|
|
|
LL | #[label = "bar"]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2022-09-10 07:48:01 -05:00
|
|
|
error: specified multiple times
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:448:5
|
2022-04-26 23:43:36 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_suggestion, code = "...", applicability = "maybe-incorrect")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-09-10 07:48:01 -05:00
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:450:24
|
2022-09-10 07:48:01 -05:00
|
|
|
|
|
|
|
|
LL | suggestion: (Span, Applicability),
|
|
|
|
| ^^^^^^^^^^^^^
|
2022-04-26 23:43:36 -05:00
|
|
|
|
|
|
|
error: invalid applicability
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:456:69
|
2022-06-23 08:51:44 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_suggestion, code = "...", applicability = "batman")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^^^^
|
2022-06-23 08:51:44 -05:00
|
|
|
|
2023-04-08 14:37:41 -05:00
|
|
|
error: the `#[help(...)]` attribute can only be applied to fields of type `Span`, `MultiSpan`, `bool` or `()`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:523:5
|
2023-02-27 06:54:11 -06:00
|
|
|
|
|
|
|
|
LL | #[help(no_crate_help)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: a diagnostic slug must be the first argument to the attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:532:32
|
2022-06-23 08:51:44 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[label(no_crate_label, foo)]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
2022-06-23 08:51:44 -05:00
|
|
|
|
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/diagnostic-derive.rs:540:29
|
2022-06-23 08:51:44 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[label(no_crate_label, foo = "...")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^
|
2022-06-23 08:51:44 -05:00
|
|
|
|
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/diagnostic-derive.rs:548:29
|
2022-04-26 23:43:36 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[label(no_crate_label, foo("..."))]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^
|
2022-04-26 23:43:36 -05:00
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
error: `#[primary_span]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:560:5
|
2022-06-30 02:57:45 -05:00
|
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | #[primary_span]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2022-06-30 02:57:45 -05:00
|
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
= help: the `primary_span` field attribute is not valid for lint diagnostics
|
2022-06-30 02:57:45 -05:00
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
error: `#[error(...)]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:580:1
|
2022-06-30 02:57:45 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[error(no_crate_example, code = "E0123")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-06-30 02:57:45 -05:00
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:580:1
|
2022-08-19 08:04:34 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[error(no_crate_example, code = "E0123")]
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | struct ErrorAttribute {}
|
|
|
|
| |________________________^
|
2022-08-19 08:04:34 -05:00
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2022-08-19 08:40:48 -05:00
|
|
|
|
2022-08-24 10:57:10 -05:00
|
|
|
error: `#[warn_(...)]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:587:1
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[warn_(no_crate_example, code = "E0123")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:587:1
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[warn_(no_crate_example, code = "E0123")]
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | |
|
2022-08-24 10:57:10 -05:00
|
|
|
LL | | struct WarnAttribute {}
|
|
|
|
| |_______________________^
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
|
|
error: `#[lint(...)]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:594:1
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[lint(no_crate_example, code = "E0123")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:594:1
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[lint(no_crate_example, code = "E0123")]
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | struct LintAttributeOnSessionDiag {}
|
|
|
|
| |____________________________________^
|
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
|
|
error: `#[lint(...)]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:601:1
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[lint(no_crate_example, code = "E0123")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-08-19 08:40:48 -05:00
|
|
|
|
2022-09-22 09:25:05 -05:00
|
|
|
error: `#[lint(...)]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:601:1
|
2022-09-22 09:25:05 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[lint(no_crate_example, code = "E0123")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-09-22 09:25:05 -05:00
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
error: diagnostic slug not specified
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:601:1
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | / #[lint(no_crate_example, code = "E0123")]
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | |
|
2022-09-22 09:25:05 -05:00
|
|
|
LL | |
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | | struct LintAttributeOnLintDiag {}
|
|
|
|
| |_________________________________^
|
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
= help: specify the slug as the first argument to the attribute, such as `#[diag(compiletest_example)]`
|
2022-08-19 08:04:34 -05:00
|
|
|
|
2022-09-10 07:28:12 -05:00
|
|
|
error: specified multiple times
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:611:53
|
2022-09-10 07:28:12 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_suggestion, code = "...", code = ",,,")]
|
2023-04-03 10:11:30 -05:00
|
|
|
| ^^^^
|
2022-09-10 07:28:12 -05:00
|
|
|
|
|
|
|
|
note: previously specified here
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:611:39
|
2022-09-10 07:28:12 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_suggestion, code = "...", code = ",,,")]
|
2023-04-03 10:11:30 -05:00
|
|
|
| ^^^^
|
2022-09-10 07:28:12 -05:00
|
|
|
|
2022-09-10 07:43:07 -05:00
|
|
|
error: wrong types for suggestion
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:620:24
|
2022-09-10 07:43:07 -05:00
|
|
|
|
|
|
|
|
LL | suggestion: (Span, usize),
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
|
|
|
|
|
|
|
|
error: wrong types for suggestion
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:628:17
|
2022-09-10 07:43:07 -05:00
|
|
|
|
|
|
|
|
LL | suggestion: (Span,),
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
|
|
|
|
|
2022-09-14 10:19:40 -05:00
|
|
|
error: suggestion without `code = "..."`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:635:5
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_suggestion)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
|
|
error: `#[multipart_suggestion(...)]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:642:1
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[multipart_suggestion(no_crate_suggestion)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
|
|
|
= help: consider creating a `Subdiagnostic` instead
|
|
|
|
|
|
|
|
error: `#[multipart_suggestion(...)]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:649:5
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[multipart_suggestion(no_crate_suggestion)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
|
|
|
= help: consider creating a `Subdiagnostic` instead
|
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: unexpected end of input, unexpected token in nested attribute, expected ident
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:645:24
|
2023-04-03 09:36:50 -05:00
|
|
|
|
|
|
|
|
LL | #[multipart_suggestion()]
|
|
|
|
| ^
|
|
|
|
|
2022-09-14 10:19:40 -05:00
|
|
|
error: `#[suggestion(...)]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:657:1
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_suggestion, code = "...")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
|
|
|
= help: `#[label]` and `#[suggestion]` can only be applied to fields
|
|
|
|
|
|
|
|
error: `#[label]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:666:1
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
|
|
|
LL | #[label]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: `#[label]` and `#[suggestion]` can only be applied to fields
|
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: `eager` is the only supported nested attribute for `subdiagnostic`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:700:7
|
2022-10-03 08:24:17 -05:00
|
|
|
|
|
|
|
|
LL | #[subdiagnostic(bad)]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2022-10-03 08:24:17 -05:00
|
|
|
|
|
|
|
error: `#[subdiagnostic = ...]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:708:5
|
2022-10-03 08:24:17 -05:00
|
|
|
|
|
|
|
|
LL | #[subdiagnostic = "bad"]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: `eager` is the only supported nested attribute for `subdiagnostic`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:716:7
|
2022-10-03 08:24:17 -05:00
|
|
|
|
|
|
|
|
LL | #[subdiagnostic(bad, bad)]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2022-10-03 08:24:17 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: `eager` is the only supported nested attribute for `subdiagnostic`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:724:7
|
2022-10-03 08:24:17 -05:00
|
|
|
|
|
|
|
|
LL | #[subdiagnostic("bad")]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2022-10-03 08:24:17 -05:00
|
|
|
|
|
|
|
error: `#[subdiagnostic(...)]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:732:5
|
2022-10-03 08:24:17 -05:00
|
|
|
|
|
|
|
|
LL | #[subdiagnostic(eager)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-01-08 17:00:41 -06:00
|
|
|
= help: eager subdiagnostics are not supported on lints
|
2022-10-03 08:24:17 -05:00
|
|
|
|
2022-10-17 12:41:49 -05:00
|
|
|
error: expected at least one string literal for `code(...)`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:790:23
|
2022-10-17 12:41:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion(code())]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
2022-10-17 12:41:49 -05:00
|
|
|
|
|
|
|
error: `code(...)` must contain only string literals
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:798:23
|
2022-10-17 12:41:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion(code(foo))]
|
|
|
|
| ^^^
|
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: unexpected token
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:798:23
|
2023-04-03 09:36:50 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion(code(foo))]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: expected string literal
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:807:25
|
2022-10-17 12:41:49 -05:00
|
|
|
|
|
|
|
|
LL | #[suggestion(code = 3)]
|
2023-04-03 09:36:50 -05:00
|
|
|
| ^
|
2022-10-17 12:41:49 -05:00
|
|
|
|
2022-10-16 09:15:39 -05:00
|
|
|
error: `#[suggestion(...)]` is not a valid attribute
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:822:5
|
2022-10-16 09:15:39 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[suggestion(no_crate_suggestion, code = "")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-10-16 09:15:39 -05:00
|
|
|
|
|
|
|
|
= note: `#[suggestion(...)]` applied to `Vec` field is ambiguous
|
|
|
|
= help: to show a suggestion consisting of multiple parts, use a `Subdiagnostic` annotated with `#[multipart_suggestion(...)]`
|
|
|
|
= help: to show a variable set of suggestions, use a `Vec` of `Subdiagnostic`s annotated with `#[suggestion(...)]`
|
|
|
|
|
2022-03-31 02:35:17 -05:00
|
|
|
error: cannot find attribute `nonsense` in this scope
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:60:3
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[nonsense(no_crate_example, code = "E0123")]
|
2022-03-31 02:35:17 -05:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `nonsense` in this scope
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:147:7
|
2022-03-31 02:35:17 -05:00
|
|
|
|
|
|
|
|
LL | #[nonsense]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
error: cannot find attribute `error` in this scope
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:580:3
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[error(no_crate_example, code = "E0123")]
|
2022-08-19 08:40:48 -05:00
|
|
|
| ^^^^^
|
|
|
|
|
2022-08-24 10:57:10 -05:00
|
|
|
error: cannot find attribute `warn_` in this scope
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:587:3
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[warn_(no_crate_example, code = "E0123")]
|
2022-08-24 10:57:10 -05:00
|
|
|
| ^^^^^ help: a built-in attribute with a similar name exists: `warn`
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
|
|
error: cannot find attribute `lint` in this scope
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:594:3
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[lint(no_crate_example, code = "E0123")]
|
2022-08-19 08:40:48 -05:00
|
|
|
| ^^^^ help: a built-in attribute with a similar name exists: `link`
|
|
|
|
|
|
|
|
error: cannot find attribute `lint` in this scope
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:601:3
|
2022-08-19 08:40:48 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[lint(no_crate_example, code = "E0123")]
|
2022-08-19 08:40:48 -05:00
|
|
|
| ^^^^ help: a built-in attribute with a similar name exists: `link`
|
|
|
|
|
2022-09-14 10:19:40 -05:00
|
|
|
error: cannot find attribute `multipart_suggestion` in this scope
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:642:3
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[multipart_suggestion(no_crate_suggestion)]
|
2022-09-14 10:19:40 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `multipart_suggestion` in this scope
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:645:3
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
|
|
|
LL | #[multipart_suggestion()]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `multipart_suggestion` in this scope
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:649:7
|
2022-09-14 10:19:40 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | #[multipart_suggestion(no_crate_suggestion)]
|
2022-09-14 10:19:40 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
error[E0425]: cannot find value `nonsense` in module `crate::fluent_generated`
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:72:8
|
2022-06-23 08:51:44 -05:00
|
|
|
|
|
2022-08-19 08:40:48 -05:00
|
|
|
LL | #[diag(nonsense, code = "E0123")]
|
2022-10-13 04:13:02 -05:00
|
|
|
| ^^^^^^^^ not found in `crate::fluent_generated`
|
2022-06-23 08:51:44 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error[E0425]: cannot find value `__code_34` in this scope
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:804:10
|
2023-04-03 09:36:50 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(Diagnostic)]
|
|
|
|
| ^^^^^^^^^^ not found in this scope
|
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2022-05-07 01:26:03 -05:00
|
|
|
error[E0277]: the trait bound `Hello: IntoDiagnosticArg` is not satisfied
|
2023-05-03 18:53:44 -05:00
|
|
|
--> $DIR/diagnostic-derive.rs:346:12
|
2022-03-31 03:02:31 -05:00
|
|
|
|
|
2022-09-18 10:46:56 -05:00
|
|
|
LL | #[derive(Diagnostic)]
|
2023-05-03 18:53:44 -05:00
|
|
|
| ---------- required by a bound introduced by this call
|
|
|
|
...
|
|
|
|
LL | other: Hello,
|
|
|
|
| ^^^^^ the trait `IntoDiagnosticArg` is not implemented for `Hello`
|
2022-05-07 01:26:03 -05:00
|
|
|
|
|
2022-06-29 03:21:44 -05:00
|
|
|
= help: normalized in stderr
|
2022-05-07 01:26:03 -05:00
|
|
|
note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg`
|
2022-08-31 09:46:51 -05:00
|
|
|
--> $COMPILER_DIR/rustc_errors/src/diagnostic_builder.rs:LL:CC
|
2023-05-03 18:53:44 -05:00
|
|
|
= note: this error originates in the macro `forward` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-03-31 03:02:31 -05:00
|
|
|
|
2023-04-03 09:36:50 -05:00
|
|
|
error: aborting due to 84 previous errors
|
2020-08-27 05:00:21 -05:00
|
|
|
|
2022-06-23 08:51:44 -05:00
|
|
|
Some errors have detailed explanations: E0277, E0425.
|
|
|
|
For more information about an error, try `rustc --explain E0277`.
|