diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-04-23 17:25:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-23 17:25:17 +0200 |
| commit | 6e423e1651e807ee3a07aa2f188fefadcb464071 (patch) | |
| tree | a47844ca41645b465d8bad4f5efc6c237be1d411 /compiler/rustc_pattern_analysis/src/errors.rs | |
| parent | e15d6f9d8580b5f54376c2c48bd5ecf8ba0b5ce7 (diff) | |
| parent | 6974e9cf7012b0f3e2a58a8accde23007274f9a9 (diff) | |
| download | rust-6e423e1651e807ee3a07aa2f188fefadcb464071.tar.gz rust-6e423e1651e807ee3a07aa2f188fefadcb464071.zip | |
Rollup merge of #124218 - Xiretza:subsubdiagnostics, r=davidtwco
Allow nesting subdiagnostics in #[derive(Subdiagnostic)]
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
| -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; |
