diff options
| author | bors <bors@rust-lang.org> | 2024-02-28 20:39:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-28 20:39:38 +0000 |
| commit | c475e2303b551d726307c646181e0677af1e0069 (patch) | |
| tree | 1adcfeb24550451e018fe8928319a9fa68d53314 /compiler/rustc_pattern_analysis/src | |
| parent | bf9c7a64ad222b85397573668b39e6d1ab9f4a72 (diff) | |
| parent | 8f3b007abca70140d354f19ece5745d1a2c5f2b2 (diff) | |
| download | rust-c475e2303b551d726307c646181e0677af1e0069.tar.gz rust-c475e2303b551d726307c646181e0677af1e0069.zip | |
Auto merge of #121489 - nnethercote:diag-renaming, r=davidtwco
Diagnostic renaming Renaming various diagnostic types from `Diagnostic*` to `Diag*`. Part of https://github.com/rust-lang/compiler-team/issues/722. There are more to do but this is enough for one PR. r? `@davidtwco`
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_pattern_analysis/src/errors.rs b/compiler/rustc_pattern_analysis/src/errors.rs index 27619b74a66..2d592b35159 100644 --- a/compiler/rustc_pattern_analysis/src/errors.rs +++ b/compiler/rustc_pattern_analysis/src/errors.rs @@ -1,4 +1,4 @@ -use rustc_errors::{AddToDiagnostic, DiagnosticBuilder, EmissionGuarantee, SubdiagnosticMessageOp}; +use rustc_errors::{AddToDiagnostic, Diag, EmissionGuarantee, SubdiagnosticMessageOp}; use rustc_macros::{LintDiagnostic, Subdiagnostic}; use rustc_middle::thir::Pat; use rustc_middle::ty::Ty; @@ -64,7 +64,7 @@ pub struct Overlap<'tcx> { impl<'tcx> AddToDiagnostic for Overlap<'tcx> { fn add_to_diagnostic_with<G: EmissionGuarantee, F: SubdiagnosticMessageOp<G>>( self, - diag: &mut DiagnosticBuilder<'_, G>, + diag: &mut Diag<'_, G>, _: F, ) { let Overlap { span, range } = self; |
