Skip to content

Commit 251b14f

Browse files
committed
internal: don't panic in debug_pat
1 parent 17d2e8d commit 251b14f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/hir-ty/src/diagnostics/match_check/pat_analysis.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,8 @@ impl<'p> TypeCx for MatchCheckCtx<'p> {
460460
_f: &mut fmt::Formatter<'_>,
461461
_pat: &rustc_pattern_analysis::pat::DeconstructedPat<'_, Self>,
462462
) -> fmt::Result {
463-
unimplemented!()
463+
// FIXME: implement this, as using `unimplemented!()` causes panics in `tracing`.
464+
Ok(())
464465
}
465466

466467
fn bug(&self, fmt: fmt::Arguments<'_>) -> ! {

0 commit comments

Comments
 (0)