diff options
| author | Xiretza <xiretza@xiretza.xyz> | 2024-04-18 19:18:35 +0000 |
|---|---|---|
| committer | Xiretza <xiretza@xiretza.xyz> | 2024-04-21 07:45:03 +0000 |
| commit | 5646b65cf58123679fdf4ef489f690d1b21e1436 (patch) | |
| tree | e28ccda3f8d6b4c16e17650251afecc98c292d7e /compiler/rustc_pattern_analysis | |
| parent | 13eb8c736ce58a794434ee316cb86f1091f66c7e (diff) | |
| download | rust-5646b65cf58123679fdf4ef489f690d1b21e1436.tar.gz rust-5646b65cf58123679fdf4ef489f690d1b21e1436.zip | |
Pass translation closure to add_to_diag_with() as reference
Diffstat (limited to 'compiler/rustc_pattern_analysis')
| -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 75b7b7c8f67..27f227e6d9c 100644 --- a/compiler/rustc_pattern_analysis/src/errors.rs +++ b/compiler/rustc_pattern_analysis/src/errors.rs @@ -65,7 +65,7 @@ impl<'tcx> Subdiagnostic for Overlap<'tcx> { fn add_to_diag_with<G: EmissionGuarantee, F: SubdiagMessageOp<G>>( self, diag: &mut Diag<'_, G>, - _: F, + _: &F, ) { let Overlap { span, range } = self; @@ -113,7 +113,7 @@ impl<'tcx> Subdiagnostic for GappedRange<'tcx> { fn add_to_diag_with<G: EmissionGuarantee, F: SubdiagMessageOp<G>>( self, diag: &mut Diag<'_, G>, - _: F, + _: &F, ) { let GappedRange { span, gap, first_range } = self; |
