Unnamed repository; edit this file 'description' to name the repository.
internal: don't panic in `debug_pat`
David Barsky 2024-02-01
parent 17d2e8d · commit 251b14f
-rw-r--r--crates/hir-ty/src/diagnostics/match_check/pat_analysis.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir-ty/src/diagnostics/match_check/pat_analysis.rs b/crates/hir-ty/src/diagnostics/match_check/pat_analysis.rs
index e2d8c97cd9..0b595042cd 100644
--- a/crates/hir-ty/src/diagnostics/match_check/pat_analysis.rs
+++ b/crates/hir-ty/src/diagnostics/match_check/pat_analysis.rs
@@ -460,7 +460,8 @@ impl<'p> TypeCx for MatchCheckCtx<'p> {
_f: &mut fmt::Formatter<'_>,
_pat: &rustc_pattern_analysis::pat::DeconstructedPat<'_, Self>,
) -> fmt::Result {
- unimplemented!()
+ // FIXME: implement this, as using `unimplemented!()` causes panics in `tracing`.
+ Ok(())
}
fn bug(&self, fmt: fmt::Arguments<'_>) -> ! {