rust/src/test/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

672 lines
21 KiB
Plaintext
Raw Normal View History

error: unsupported type attribute for diagnostic derive enum
--> $DIR/diagnostic-derive.rs:39:1
|
2022-10-22 04:08:09 -05:00
LL | #[diag(compiletest_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:42:5
|
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)]`
error: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:44:5
|
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)]`
error: `#[diag = ...]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:50:1
|
LL | #[diag = "E0123"]
| ^^^^^^^^^^^^^^^^^
error: `#[nonsense(...)]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:55:1
|
2022-10-22 04:08:09 -05:00
LL | #[nonsense(compiletest_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:55:1
|
2022-10-22 04:08:09 -05:00
LL | / #[nonsense(compiletest_example, code = "E0123")]
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)]`
error: `#[diag("...")]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:62:8
|
LL | #[diag("E0123")]
| ^^^^^^^
|
2022-09-14 10:19:40 -05:00
= help: a diagnostic slug is required as the first argument
error: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:62:1
|
LL | / #[diag("E0123")]
LL | |
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)]`
error: `#[diag(nonsense(...))]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:73:8
|
LL | #[diag(nonsense("foo"), code = "E0123", slug = "foo")]
| ^^^^^^^^^^^^^^^
|
2022-09-14 10:19:40 -05:00
= help: a diagnostic slug is required as the first argument
error: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:73:1
|
LL | / #[diag(nonsense("foo"), code = "E0123", slug = "foo")]
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)]`
error: `#[diag(nonsense = ...)]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:79:8
|
LL | #[diag(nonsense = "...", code = "E0123", slug = "foo")]
| ^^^^^^^^^^^^^^^^
|
2022-09-14 10:19:40 -05:00
= help: only `code` is a valid nested attributes following the slug
error: `#[diag(slug = ...)]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:79:42
2022-09-14 10:19:40 -05:00
|
LL | #[diag(nonsense = "...", code = "E0123", slug = "foo")]
| ^^^^^^^^^^^^
|
= help: only `code` is a valid nested attributes following the slug
error: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:79:1
|
LL | / #[diag(nonsense = "...", code = "E0123", slug = "foo")]
LL | |
LL | |
2022-09-14 10:19:40 -05:00
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)]`
error: `#[diag(nonsense = ...)]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:86:8
|
LL | #[diag(nonsense = 4, code = "E0123", slug = "foo")]
| ^^^^^^^^^^^^
2022-09-14 10:19:40 -05:00
error: `#[diag(slug = ...)]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:86:38
|
2022-09-14 10:19:40 -05:00
LL | #[diag(nonsense = 4, code = "E0123", slug = "foo")]
| ^^^^^^^^^^^^
|
= help: only `code` is a valid nested attributes following the slug
error: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:86:1
|
LL | / #[diag(nonsense = 4, code = "E0123", slug = "foo")]
LL | |
LL | |
2022-09-14 10:19:40 -05:00
LL | |
LL | | struct InvalidNestedStructAttr3 {}
| |__________________________________^
|
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)]`
error: `#[diag(slug = ...)]` is not a valid attribute
2022-10-22 04:08:09 -05:00
--> $DIR/diagnostic-derive.rs:93:45
|
2022-10-22 04:08:09 -05:00
LL | #[diag(compiletest_example, code = "E0123", slug = "foo")]
| ^^^^^^^^^^^^
|
= help: only `code` is a valid nested attributes following the slug
error: `#[suggestion = ...]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:100:5
|
LL | #[suggestion = "bar"]
| ^^^^^^^^^^^^^^^^^^^^^
error: specified multiple times
--> $DIR/diagnostic-derive.rs:107:8
|
2022-10-22 04:08:09 -05:00
LL | #[diag(compiletest_example, code = "E0456")]
| ^^^^^^^^^^^^^^^^^^^
|
note: previously specified here
--> $DIR/diagnostic-derive.rs:106:8
|
2022-10-22 04:08:09 -05:00
LL | #[diag(compiletest_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^
error: specified multiple times
2022-10-22 04:08:09 -05:00
--> $DIR/diagnostic-derive.rs:107:36
|
2022-10-22 04:08:09 -05:00
LL | #[diag(compiletest_example, code = "E0456")]
| ^^^^^^^
|
note: previously specified here
2022-10-22 04:08:09 -05:00
--> $DIR/diagnostic-derive.rs:106:36
|
2022-10-22 04:08:09 -05:00
LL | #[diag(compiletest_example, code = "E0123")]
| ^^^^^^^
error: specified multiple times
2022-10-22 04:08:09 -05:00
--> $DIR/diagnostic-derive.rs:113:52
|
2022-10-22 04:08:09 -05:00
LL | #[diag(compiletest_example, code = "E0456", code = "E0457")]
| ^^^^^^^
|
note: previously specified here
2022-10-22 04:08:09 -05:00
--> $DIR/diagnostic-derive.rs:113:36
|
2022-10-22 04:08:09 -05:00
LL | #[diag(compiletest_example, code = "E0456", code = "E0457")]
| ^^^^^^^
2022-10-22 04:08:09 -05:00
error: `#[diag(compiletest_example)]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:118:29
|
2022-10-22 04:08:09 -05:00
LL | #[diag(compiletest_example, compiletest_example, code = "E0456")]
| ^^^^^^^^^^^^^^^^^^^
2022-09-14 10:19:40 -05:00
|
= help: diagnostic slug must be the first argument
error: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:123:1
|
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)]`
error: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:126:1
|
LL | / #[diag(code = "E0456")]
LL | |
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)]`
error: the `#[primary_span]` attribute can only be applied to fields of type `Span` or `MultiSpan`
--> $DIR/diagnostic-derive.rs:137:5
|
LL | #[primary_span]
| ^^^^^^^^^^^^^^^
error: `#[nonsense]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:145:5
|
LL | #[nonsense]
| ^^^^^^^^^^^
error: the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
--> $DIR/diagnostic-derive.rs:162:5
|
2022-10-22 04:08:09 -05:00
LL | #[label(label)]
| ^^^^^^^^^^^^^^^
error: `name` doesn't refer to a field on this type
2022-10-22 04:08:09 -05:00
--> $DIR/diagnostic-derive.rs:170:37
|
2022-10-22 04:08:09 -05:00
LL | #[suggestion(suggestion, code = "{name}")]
| ^^^^^^^^
error: invalid format string: expected `'}'` but string was terminated
2022-08-26 11:52:08 -05:00
--> $DIR/diagnostic-derive.rs:175:10
|
LL | #[derive(Diagnostic)]
2022-08-26 11:52:08 -05:00
| ^^^^^^^^^^ expected `'}'` in format string
|
= note: if you intended to print `{`, you can escape it using `{{`
= note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid format string: unmatched `}` found
2022-08-26 11:52:08 -05:00
--> $DIR/diagnostic-derive.rs:185:10
|
LL | #[derive(Diagnostic)]
2022-08-26 11:52:08 -05:00
| ^^^^^^^^^^ unmatched `}` in format string
|
= note: if you intended to print `}`, you can escape it using `}}`
= note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
error: the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
--> $DIR/diagnostic-derive.rs:205:5
|
2022-10-22 04:08:09 -05:00
LL | #[label(label)]
| ^^^^^^^^^^^^^^^
2022-09-14 10:19:40 -05:00
error: suggestion without `code = "..."`
--> $DIR/diagnostic-derive.rs:223:5
2022-09-14 10:19:40 -05:00
|
2022-10-22 04:08:09 -05:00
LL | #[suggestion(suggestion)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2022-09-14 10:19:40 -05:00
error: `#[suggestion(nonsense = ...)]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:231:18
|
LL | #[suggestion(nonsense = "bar")]
| ^^^^^^^^^^^^^^^^
|
= help: only `style`, `code` and `applicability` are valid nested attributes
2022-09-14 10:19:40 -05:00
error: suggestion without `code = "..."`
--> $DIR/diagnostic-derive.rs:231:5
2022-09-14 10:19:40 -05:00
|
LL | #[suggestion(nonsense = "bar")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: `#[suggestion(msg = ...)]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:240:18
|
LL | #[suggestion(msg = "bar")]
| ^^^^^^^^^^^
|
= help: only `style`, `code` and `applicability` are valid nested attributes
2022-09-14 10:19:40 -05:00
error: suggestion without `code = "..."`
--> $DIR/diagnostic-derive.rs:240:5
2022-09-14 10:19:40 -05:00
|
LL | #[suggestion(msg = "bar")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: wrong field type for suggestion
--> $DIR/diagnostic-derive.rs:263:5
|
2022-10-22 04:08:09 -05:00
LL | / #[suggestion(suggestion, code = "This is suggested code")]
LL | |
LL | | suggestion: Applicability,
| |_____________________________^
|
= help: `#[suggestion(...)]` should be applied to fields of type `Span` or `(Span, Applicability)`
error: specified multiple times
--> $DIR/diagnostic-derive.rs:279:24
|
LL | suggestion: (Span, Span, Applicability),
| ^^^^
|
note: previously specified here
--> $DIR/diagnostic-derive.rs:279:18
|
LL | suggestion: (Span, Span, Applicability),
| ^^^^
error: specified multiple times
--> $DIR/diagnostic-derive.rs:287:33
|
LL | suggestion: (Applicability, Applicability, Span),
| ^^^^^^^^^^^^^
|
note: previously specified here
--> $DIR/diagnostic-derive.rs:287:18
|
LL | suggestion: (Applicability, Applicability, Span),
| ^^^^^^^^^^^^^
error: `#[label = ...]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:294:5
|
LL | #[label = "bar"]
| ^^^^^^^^^^^^^^^^
error: specified multiple times
2022-10-22 04:08:09 -05:00
--> $DIR/diagnostic-derive.rs:445:44
|
2022-10-22 04:08:09 -05:00
LL | #[suggestion(suggestion, code = "...", applicability = "maybe-incorrect")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: previously specified here
--> $DIR/diagnostic-derive.rs:447:24
|
LL | suggestion: (Span, Applicability),
| ^^^^^^^^^^^^^
error: invalid applicability
2022-10-22 04:08:09 -05:00
--> $DIR/diagnostic-derive.rs:453:44
|
2022-10-22 04:08:09 -05:00
LL | #[suggestion(suggestion, code = "...", applicability = "batman")]
| ^^^^^^^^^^^^^^^^^^^^^^^^
2022-09-14 10:19:40 -05:00
error: `#[label(foo)]` is not a valid attribute
2022-10-22 04:08:09 -05:00
--> $DIR/diagnostic-derive.rs:516:20
|
2022-10-22 04:08:09 -05:00
LL | #[label(label, foo)]
| ^^^
2022-09-14 10:19:40 -05:00
|
= help: a diagnostic slug must be the first argument to the attribute
2022-09-14 10:19:40 -05:00
error: `#[label(foo = ...)]` is not a valid attribute
2022-10-22 04:08:09 -05:00
--> $DIR/diagnostic-derive.rs:524:20
|
2022-10-22 04:08:09 -05:00
LL | #[label(label, foo = "...")]
| ^^^^^^^^^^^
2022-09-14 10:19:40 -05:00
error: `#[label(foo(...))]` is not a valid attribute
2022-10-22 04:08:09 -05:00
--> $DIR/diagnostic-derive.rs:532:20
|
2022-10-22 04:08:09 -05:00
LL | #[label(label, foo("..."))]
| ^^^^^^^^^^
error: `#[primary_span]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:544:5
|
LL | #[primary_span]
| ^^^^^^^^^^^^^^^
|
= help: the `primary_span` field attribute is not valid for lint diagnostics
error: `#[error(...)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:564:1
|
2022-10-22 04:08:09 -05:00
LL | #[error(compiletest_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:564:1
|
2022-10-22 04:08:09 -05:00
LL | / #[error(compiletest_example, code = "E0123")]
LL | |
LL | |
LL | |
LL | | struct ErrorAttribute {}
| |________________________^
|
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)]`
error: `#[warn_(...)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:571:1
|
2022-10-22 04:08:09 -05:00
LL | #[warn_(compiletest_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:571:1
|
2022-10-22 04:08:09 -05:00
LL | / #[warn_(compiletest_example, code = "E0123")]
LL | |
LL | |
LL | |
LL | | struct WarnAttribute {}
| |_______________________^
|
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)]`
error: `#[lint(...)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:578:1
|
2022-10-22 04:08:09 -05:00
LL | #[lint(compiletest_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:578:1
|
2022-10-22 04:08:09 -05:00
LL | / #[lint(compiletest_example, code = "E0123")]
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)]`
error: `#[lint(...)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:585:1
|
2022-10-22 04:08:09 -05:00
LL | #[lint(compiletest_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: `#[lint(...)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:585:1
|
2022-10-22 04:08:09 -05:00
LL | #[lint(compiletest_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:585:1
|
2022-10-22 04:08:09 -05:00
LL | / #[lint(compiletest_example, code = "E0123")]
LL | |
LL | |
LL | |
LL | |
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)]`
error: specified multiple times
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:595:44
|
2022-10-22 04:08:09 -05:00
LL | #[suggestion(suggestion, code = "...", code = ",,,")]
| ^^^^^^^^^^^^
|
note: previously specified here
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:595:30
|
2022-10-22 04:08:09 -05:00
LL | #[suggestion(suggestion, code = "...", code = ",,,")]
| ^^^^^^^^^^^^
error: wrong types for suggestion
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:604:24
|
LL | suggestion: (Span, usize),
| ^^^^^
|
= help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
error: wrong types for suggestion
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:612:17
|
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 = "..."`
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:619:5
2022-09-14 10:19:40 -05:00
|
2022-10-22 04:08:09 -05:00
LL | #[suggestion(suggestion)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2022-09-14 10:19:40 -05:00
error: `#[multipart_suggestion(...)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:626:1
2022-09-14 10:19:40 -05:00
|
2022-10-22 04:08:09 -05:00
LL | #[multipart_suggestion(suggestion)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2022-09-14 10:19:40 -05:00
|
= help: consider creating a `Subdiagnostic` instead
error: `#[multipart_suggestion(...)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:629:1
2022-09-14 10:19:40 -05:00
|
LL | #[multipart_suggestion()]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider creating a `Subdiagnostic` instead
error: `#[multipart_suggestion(...)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:633:5
2022-09-14 10:19:40 -05:00
|
2022-10-22 04:08:09 -05:00
LL | #[multipart_suggestion(suggestion)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2022-09-14 10:19:40 -05:00
|
= help: consider creating a `Subdiagnostic` instead
error: `#[suggestion(...)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:641:1
2022-09-14 10:19:40 -05:00
|
2022-10-22 04:08:09 -05:00
LL | #[suggestion(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
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:650:1
2022-09-14 10:19:40 -05:00
|
LL | #[label]
| ^^^^^^^^
|
= help: `#[label]` and `#[suggestion]` can only be applied to fields
error: `#[subdiagnostic(bad)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:684:21
|
LL | #[subdiagnostic(bad)]
| ^^^
|
= help: `eager` is the only supported nested attribute for `subdiagnostic`
error: `#[subdiagnostic = ...]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:692:5
|
LL | #[subdiagnostic = "bad"]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `eager` is the only supported nested attribute for `subdiagnostic`
error: `#[subdiagnostic(...)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:700:5
|
LL | #[subdiagnostic(bad, bad)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `eager` is the only supported nested attribute for `subdiagnostic`
error: `#[subdiagnostic("...")]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:708:21
|
LL | #[subdiagnostic("bad")]
| ^^^^^
|
= help: `eager` is the only supported nested attribute for `subdiagnostic`
error: `#[subdiagnostic(...)]` is not a valid attribute
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:716:5
|
LL | #[subdiagnostic(eager)]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: eager subdiagnostics are not supported on lints
error: expected at least one string literal for `code(...)`
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:774:18
|
LL | #[suggestion(code())]
| ^^^^^^
error: `code(...)` must contain only string literals
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:782:23
|
LL | #[suggestion(code(foo))]
| ^^^
error: `code = "..."`/`code(...)` must contain only string literals
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:790:18
|
LL | #[suggestion(code = 3)]
| ^^^^^^^^
error: cannot find attribute `nonsense` in this scope
--> $DIR/diagnostic-derive.rs:55:3
|
2022-10-22 04:08:09 -05:00
LL | #[nonsense(compiletest_example, code = "E0123")]
| ^^^^^^^^
error: cannot find attribute `nonsense` in this scope
--> $DIR/diagnostic-derive.rs:145:7
|
LL | #[nonsense]
| ^^^^^^^^
error: cannot find attribute `error` in this scope
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:564:3
|
2022-10-22 04:08:09 -05:00
LL | #[error(compiletest_example, code = "E0123")]
| ^^^^^
error: cannot find attribute `warn_` in this scope
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:571:3
|
2022-10-22 04:08:09 -05:00
LL | #[warn_(compiletest_example, code = "E0123")]
| ^^^^^ help: a built-in attribute with a similar name exists: `warn`
error: cannot find attribute `lint` in this scope
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:578:3
|
2022-10-22 04:08:09 -05:00
LL | #[lint(compiletest_example, code = "E0123")]
| ^^^^ help: a built-in attribute with a similar name exists: `link`
error: cannot find attribute `lint` in this scope
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:585:3
|
2022-10-22 04:08:09 -05:00
LL | #[lint(compiletest_example, code = "E0123")]
| ^^^^ 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
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:626:3
2022-09-14 10:19:40 -05:00
|
2022-10-22 04:08:09 -05:00
LL | #[multipart_suggestion(suggestion)]
2022-09-14 10:19:40 -05:00
| ^^^^^^^^^^^^^^^^^^^^
error: cannot find attribute `multipart_suggestion` in this scope
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:629:3
2022-09-14 10:19:40 -05:00
|
LL | #[multipart_suggestion()]
| ^^^^^^^^^^^^^^^^^^^^
error: cannot find attribute `multipart_suggestion` in this scope
2022-10-20 14:09:54 -05:00
--> $DIR/diagnostic-derive.rs:633:7
2022-09-14 10:19:40 -05:00
|
2022-10-22 04:08:09 -05:00
LL | #[multipart_suggestion(suggestion)]
2022-09-14 10:19:40 -05:00
| ^^^^^^^^^^^^^^^^^^^^
error[E0425]: cannot find value `nonsense` in module `rustc_errors::fluent`
--> $DIR/diagnostic-derive.rs:68:8
|
LL | #[diag(nonsense, code = "E0123")]
| ^^^^^^^^ not found in `rustc_errors::fluent`
error[E0277]: the trait bound `Hello: IntoDiagnosticArg` is not satisfied
--> $DIR/diagnostic-derive.rs:338:10
|
LL | #[derive(Diagnostic)]
| ^^^^^^^^^^ the trait `IntoDiagnosticArg` is not implemented for `Hello`
|
= help: normalized in stderr
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
|
LL | arg: impl IntoDiagnosticArg,
| ^^^^^^^^^^^^^^^^^ required by this bound in `DiagnosticBuilder::<'a, G>::set_arg`
= note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 83 previous errors
Some errors have detailed explanations: E0277, E0425.
For more information about an error, try `rustc --explain E0277`.