diff options
| author | Ralf Jung <post@ralfj.de> | 2024-05-03 15:49:10 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-05-03 15:56:59 +0200 |
| commit | cbd682beeb0a7b54f4cc9e5dee3be3e6d728b9c4 (patch) | |
| tree | 3d88ab38d03a563037602c23f92f541bd9f8d378 /compiler/rustc_mir_build/src/errors.rs | |
| parent | 179a6a08b127c7670ec648c245d8c31c6ac2419c (diff) | |
| download | rust-cbd682beeb0a7b54f4cc9e5dee3be3e6d728b9c4.tar.gz rust-cbd682beeb0a7b54f4cc9e5dee3be3e6d728b9c4.zip | |
turn pointer_structural_match into a hard error
Diffstat (limited to 'compiler/rustc_mir_build/src/errors.rs')
| -rw-r--r-- | compiler/rustc_mir_build/src/errors.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/rustc_mir_build/src/errors.rs b/compiler/rustc_mir_build/src/errors.rs index 1d52c2723aa..51dd774b638 100644 --- a/compiler/rustc_mir_build/src/errors.rs +++ b/compiler/rustc_mir_build/src/errors.rs @@ -788,9 +788,12 @@ pub struct NaNPattern { pub span: Span, } -#[derive(LintDiagnostic)] +#[derive(Diagnostic)] #[diag(mir_build_pointer_pattern)] -pub struct PointerPattern; +pub struct PointerPattern { + #[primary_span] + pub span: Span, +} #[derive(Diagnostic)] #[diag(mir_build_non_empty_never_pattern)] |
