diff options
| author | Tshepang Mbambo <hopsi@tuta.io> | 2025-06-19 22:14:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-19 22:14:30 +0200 |
| commit | 6ad42bf4e7ab81ec3d66a5e47dfe01dc51603c0b (patch) | |
| tree | 59d2cbb81c6cf1bb95feb51963d037fd67fc51bf /compiler/rustc_parse/src/errors.rs | |
| parent | f25cfe83f2a13d96731861caae7236372f6445d5 (diff) | |
| parent | d854d563445082268ca8e7dd76b6ccde0342c2b3 (diff) | |
| download | rust-6ad42bf4e7ab81ec3d66a5e47dfe01dc51603c0b.tar.gz rust-6ad42bf4e7ab81ec3d66a5e47dfe01dc51603c0b.zip | |
Merge pull request #2477 from rust-lang/rustc-pull
Rustc pull update
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 2dba568a258..0f0c5434800 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -2938,22 +2938,22 @@ pub(crate) struct DynAfterMut { #[derive(Diagnostic)] #[diag(parse_fn_pointer_cannot_be_const)] +#[note] pub(crate) struct FnPointerCannotBeConst { #[primary_span] - pub span: Span, #[label] - pub qualifier: Span, + pub span: Span, #[suggestion(code = "", applicability = "maybe-incorrect", style = "verbose")] pub suggestion: Span, } #[derive(Diagnostic)] #[diag(parse_fn_pointer_cannot_be_async)] +#[note] pub(crate) struct FnPointerCannotBeAsync { #[primary_span] - pub span: Span, #[label] - pub qualifier: Span, + pub span: Span, #[suggestion(code = "", applicability = "maybe-incorrect", style = "verbose")] pub suggestion: Span, } |
