rust/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr

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

658 lines
20 KiB
Plaintext
Raw Normal View History

error: unsupported type attribute for diagnostic derive enum
--> $DIR/diagnostic-derive.rs:41:1
|
LL | #[diag(no_crate_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:44: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:46: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)]`
2023-04-03 09:36:50 -05:00
error: expected parentheses: #[diag(...)]
--> $DIR/diagnostic-derive.rs:52:8
|
LL | #[diag = "E0123"]
2023-04-03 09:36:50 -05:00
| ^
error: `#[nonsense(...)]` is not a valid attribute
--> $DIR/diagnostic-derive.rs:57:1
|
LL | #[nonsense(no_crate_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:57:1
|
LL | / #[nonsense(no_crate_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: diagnostic slug not specified
--> $DIR/diagnostic-derive.rs:64:1
|
LL | / #[diag("E0123")]
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)]`
2023-04-03 09:36:50 -05:00
error: diagnostic slug must be the first argument
--> $DIR/diagnostic-derive.rs:74:16
|
LL | #[diag(nonsense("foo"), code = "E0123", slug = "foo")]
2023-04-03 09:36:50 -05:00
| ^
error: diagnostic slug not specified
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:74: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)]`
2023-04-03 09:36:50 -05:00
error: unknown argument
--> $DIR/diagnostic-derive.rs:80: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
error: diagnostic slug not specified
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:80:1
|
LL | / #[diag(nonsense = "...", code = "E0123", slug = "foo")]
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)]`
2023-04-03 09:36:50 -05:00
error: unknown argument
--> $DIR/diagnostic-derive.rs:86:8
|
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
error: diagnostic slug not specified
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:86:1
|
LL | / #[diag(nonsense = 4, code = "E0123", slug = "foo")]
LL | |
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)]`
2023-04-03 09:36:50 -05:00
error: unknown argument
--> $DIR/diagnostic-derive.rs:92:42
|
LL | #[diag(no_crate_example, code = "E0123", slug = "foo")]
2023-04-03 09:36:50 -05:00
| ^^^^
|
2023-04-03 09:36:50 -05:00
= note: only the `code` parameter is valid after the slug
error: `#[suggestion = ...]` is not a valid attribute
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:99:5
|
LL | #[suggestion = "bar"]
| ^^^^^^^^^^^^^^^^^^^^^
error: specified multiple times
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:106:8
|
LL | #[diag(no_crate_example, code = "E0456")]
| ^^^^^^^^^^^^^^^^
|
note: previously specified here
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:105:8
|
LL | #[diag(no_crate_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^
error: specified multiple times
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:106:26
|
LL | #[diag(no_crate_example, code = "E0456")]
2023-04-03 09:36:50 -05:00
| ^^^^
|
note: previously specified here
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:105:26
|
LL | #[diag(no_crate_example, code = "E0123")]
2023-04-03 09:36:50 -05:00
| ^^^^
error: specified multiple times
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:112:42
|
LL | #[diag(no_crate_example, code = "E0456", code = "E0457")]
2023-04-03 09:36:50 -05:00
| ^^^^
|
note: previously specified here
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:112:26
|
LL | #[diag(no_crate_example, code = "E0456", code = "E0457")]
2023-04-03 09:36:50 -05:00
| ^^^^
2023-04-03 09:36:50 -05:00
error: diagnostic slug must be the first argument
--> $DIR/diagnostic-derive.rs:117:43
|
LL | #[diag(no_crate_example, no_crate::example, code = "E0456")]
2023-04-03 09:36:50 -05:00
| ^
error: diagnostic slug not specified
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:122: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
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:125: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`
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:136:5
|
LL | #[primary_span]
| ^^^^^^^^^^^^^^^
error: `#[nonsense]` is not a valid attribute
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:144:5
|
LL | #[nonsense]
| ^^^^^^^^^^^
error: the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:161:5
|
LL | #[label(no_crate_label)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: `name` doesn't refer to a field on this type
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:169:46
|
LL | #[suggestion(no_crate_suggestion, code = "{name}")]
| ^^^^^^^^
error: invalid format string: expected `'}'` but string was terminated
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:174: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
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:184: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`
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:204:5
|
LL | #[label(no_crate_label)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
2022-09-14 10:19:40 -05:00
error: suggestion without `code = "..."`
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:223:5
2022-09-14 10:19:40 -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
--> $DIR/diagnostic-derive.rs:231:18
|
LL | #[suggestion(nonsense = "bar")]
2023-04-03 09:36:50 -05:00
| ^^^^^^^^
|
= help: only `style`, `code` and `applicability` are valid nested attributes
2022-09-14 10:19:40 -05:00
error: suggestion without `code = "..."`
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:231:5
2022-09-14 10:19:40 -05:00
|
LL | #[suggestion(nonsense = "bar")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-04-03 09:36:50 -05:00
error: invalid nested attribute
--> $DIR/diagnostic-derive.rs:240:18
|
LL | #[suggestion(msg = "bar")]
2023-04-03 09:36:50 -05:00
| ^^^
|
= help: only `style`, `code` and `applicability` are valid nested attributes
2022-09-14 10:19:40 -05:00
error: suggestion without `code = "..."`
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:240:5
2022-09-14 10:19:40 -05:00
|
LL | #[suggestion(msg = "bar")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: wrong field type for suggestion
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:263:5
|
LL | / #[suggestion(no_crate_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
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:279:24
|
LL | suggestion: (Span, Span, Applicability),
| ^^^^
|
note: previously specified here
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:279:18
|
LL | suggestion: (Span, Span, Applicability),
| ^^^^
error: specified multiple times
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:287:33
|
LL | suggestion: (Applicability, Applicability, Span),
| ^^^^^^^^^^^^^
|
note: previously specified here
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:287:18
|
LL | suggestion: (Applicability, Applicability, Span),
| ^^^^^^^^^^^^^
error: `#[label = ...]` is not a valid attribute
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:294:5
|
LL | #[label = "bar"]
| ^^^^^^^^^^^^^^^^
error: specified multiple times
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:445:5
|
LL | #[suggestion(no_crate_suggestion, code = "...", applicability = "maybe-incorrect")]
2023-04-03 09:36:50 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: previously specified here
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:447:24
|
LL | suggestion: (Span, Applicability),
| ^^^^^^^^^^^^^
error: invalid applicability
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:453:69
|
LL | #[suggestion(no_crate_suggestion, code = "...", applicability = "batman")]
2023-04-03 09:36:50 -05:00
| ^^^^^^^^
error: the `#[help(...)]` attribute can only be applied to fields of type `Span`, `bool` or `()`
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:520:5
|
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
--> $DIR/diagnostic-derive.rs:529:32
|
LL | #[label(no_crate_label, foo)]
2023-04-03 09:36:50 -05:00
| ^
2023-04-03 09:36:50 -05:00
error: invalid nested attribute
--> $DIR/diagnostic-derive.rs:537:29
|
LL | #[label(no_crate_label, foo = "...")]
2023-04-03 09:36:50 -05:00
| ^^^
2023-04-03 09:36:50 -05:00
error: invalid nested attribute
--> $DIR/diagnostic-derive.rs:545:29
|
LL | #[label(no_crate_label, foo("..."))]
2023-04-03 09:36:50 -05:00
| ^^^
error: `#[primary_span]` is not a valid attribute
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:557:5
|
LL | #[primary_span]
| ^^^^^^^^^^^^^^^
|
= help: the `primary_span` field attribute is not valid for lint diagnostics
error: `#[error(...)]` is not a valid attribute
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:577:1
|
LL | #[error(no_crate_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:577:1
|
LL | / #[error(no_crate_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
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:584:1
|
LL | #[warn_(no_crate_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:584:1
|
LL | / #[warn_(no_crate_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
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:591:1
|
LL | #[lint(no_crate_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:591:1
|
LL | / #[lint(no_crate_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
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:598:1
|
LL | #[lint(no_crate_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: `#[lint(...)]` is not a valid attribute
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:598:1
|
LL | #[lint(no_crate_example, code = "E0123")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: diagnostic slug not specified
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:598:1
|
LL | / #[lint(no_crate_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
2023-04-03 10:11:30 -05:00
--> $DIR/diagnostic-derive.rs:608:53
|
LL | #[suggestion(no_crate_suggestion, code = "...", code = ",,,")]
2023-04-03 10:11:30 -05:00
| ^^^^
|
note: previously specified here
2023-04-03 10:11:30 -05:00
--> $DIR/diagnostic-derive.rs:608:39
|
LL | #[suggestion(no_crate_suggestion, code = "...", code = ",,,")]
2023-04-03 10:11:30 -05:00
| ^^^^
error: wrong types for suggestion
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:617: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
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:625: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 = "..."`
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:632:5
2022-09-14 10:19:40 -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-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:639:1
2022-09-14 10:19:40 -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-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:646:5
2022-09-14 10:19:40 -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
--> $DIR/diagnostic-derive.rs:642:24
|
LL | #[multipart_suggestion()]
| ^
2022-09-14 10:19:40 -05:00
error: `#[suggestion(...)]` is not a valid attribute
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:654:1
2022-09-14 10:19:40 -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-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:663: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`
--> $DIR/diagnostic-derive.rs:697:7
|
LL | #[subdiagnostic(bad)]
2023-04-03 09:36:50 -05:00
| ^^^^^^^^^^^^^^^^^^
error: `#[subdiagnostic = ...]` is not a valid attribute
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:705:5
|
LL | #[subdiagnostic = "bad"]
| ^^^^^^^^^^^^^^^^^^^^^^^^
2023-04-03 09:36:50 -05:00
error: `eager` is the only supported nested attribute for `subdiagnostic`
--> $DIR/diagnostic-derive.rs:713:7
|
LL | #[subdiagnostic(bad, bad)]
2023-04-03 09:36:50 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^
2023-04-03 09:36:50 -05:00
error: `eager` is the only supported nested attribute for `subdiagnostic`
--> $DIR/diagnostic-derive.rs:721:7
|
LL | #[subdiagnostic("bad")]
2023-04-03 09:36:50 -05:00
| ^^^^^^^^^^^^^^^^^^^^
error: `#[subdiagnostic(...)]` is not a valid attribute
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:729:5
|
LL | #[subdiagnostic(eager)]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2023-01-08 17:00:41 -06:00
= help: eager subdiagnostics are not supported on lints
error: expected at least one string literal for `code(...)`
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:787:23
|
LL | #[suggestion(code())]
2023-04-03 09:36:50 -05:00
| ^
error: `code(...)` must contain only string literals
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:795:23
|
LL | #[suggestion(code(foo))]
| ^^^
2023-04-03 09:36:50 -05:00
error: unexpected token
--> $DIR/diagnostic-derive.rs:795:23
|
LL | #[suggestion(code(foo))]
| ^^^
error: expected string literal
--> $DIR/diagnostic-derive.rs:804:25
|
LL | #[suggestion(code = 3)]
2023-04-03 09:36:50 -05:00
| ^
error: `#[suggestion(...)]` is not a valid attribute
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:819:5
|
LL | #[suggestion(no_crate_suggestion, code = "")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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(...)]`
error: cannot find attribute `nonsense` in this scope
--> $DIR/diagnostic-derive.rs:57:3
|
LL | #[nonsense(no_crate_example, code = "E0123")]
| ^^^^^^^^
error: cannot find attribute `nonsense` in this scope
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:144:7
|
LL | #[nonsense]
| ^^^^^^^^
error: cannot find attribute `error` in this scope
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:577:3
|
LL | #[error(no_crate_example, code = "E0123")]
| ^^^^^
error: cannot find attribute `warn_` in this scope
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:584:3
|
LL | #[warn_(no_crate_example, code = "E0123")]
| ^^^^^ help: a built-in attribute with a similar name exists: `warn`
error: cannot find attribute `lint` in this scope
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:591:3
|
LL | #[lint(no_crate_example, code = "E0123")]
| ^^^^ help: a built-in attribute with a similar name exists: `link`
error: cannot find attribute `lint` in this scope
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:598:3
|
LL | #[lint(no_crate_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
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:639:3
2022-09-14 10:19:40 -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-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:642:3
2022-09-14 10:19:40 -05:00
|
LL | #[multipart_suggestion()]
| ^^^^^^^^^^^^^^^^^^^^
error: cannot find attribute `multipart_suggestion` in this scope
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:646:7
2022-09-14 10:19:40 -05:00
|
LL | #[multipart_suggestion(no_crate_suggestion)]
2022-09-14 10:19:40 -05:00
| ^^^^^^^^^^^^^^^^^^^^
error[E0425]: cannot find value `nonsense` in module `crate::fluent_generated`
2023-04-03 09:36:50 -05:00
--> $DIR/diagnostic-derive.rs:69:8
|
LL | #[diag(nonsense, code = "E0123")]
| ^^^^^^^^ not found in `crate::fluent_generated`
2023-04-03 09:36:50 -05:00
error[E0425]: cannot find value `__code_34` in this scope
--> $DIR/diagnostic-derive.rs:801:10
|
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)
error[E0277]: the trait bound `Hello: IntoDiagnosticArg` is not satisfied
2023-04-03 09:36:50 -05:00
--> $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
2022-12-12 11:32:20 -06:00
= note: this error originates in the derive macro `Diagnostic` which comes from the expansion of the macro `forward` (in Nightly builds, run with -Z macro-backtrace for more info)
2023-04-03 09:36:50 -05:00
error: aborting due to 84 previous errors
Some errors have detailed explanations: E0277, E0425.
For more information about an error, try `rustc --explain E0277`.