diff options
| author | Laurențiu Nicola <lnicola@users.noreply.github.com> | 2025-02-24 08:45:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-24 08:45:06 +0000 |
| commit | 6d9b9c1363e00e02ee72a08ba4ab3dd9d28ad1a1 (patch) | |
| tree | be062bef485315bf71029db86a4e67a57e7be633 /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 286595e21ef26c7d243b7715033f2d0b72882a83 (diff) | |
| parent | a2bd5a5ed388c71b253c1ad5cdd35c570ea0418e (diff) | |
| download | rust-6d9b9c1363e00e02ee72a08ba4ab3dd9d28ad1a1.tar.gz rust-6d9b9c1363e00e02ee72a08ba4ab3dd9d28ad1a1.zip | |
Merge pull request #19212 from lnicola/sync-from-rust
minor: sync from downstream
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs index 14ea10461cb..1a0b0edb257 100644 --- a/compiler/rustc_hir_analysis/src/errors.rs +++ b/compiler/rustc_hir_analysis/src/errors.rs @@ -1417,6 +1417,15 @@ pub(crate) struct CrossCrateTraitsDefined { pub traits: String, } +#[derive(Diagnostic)] +#[diag(hir_analysis_no_variant_named, code = E0599)] +pub struct NoVariantNamed<'tcx> { + #[primary_span] + pub span: Span, + pub ident: Ident, + pub ty: Ty<'tcx>, +} + // FIXME(fmease): Deduplicate: #[derive(Diagnostic)] |
