internal: don't panic in debug_pat

This commit is contained in:
David Barsky 2024-01-30 18:07:29 -05:00
parent 17d2e8d910
commit 251b14f2c5

View file

@ -460,7 +460,8 @@ impl<'p> TypeCx for MatchCheckCtx<'p> {
_f: &mut fmt::Formatter<'_>, _f: &mut fmt::Formatter<'_>,
_pat: &rustc_pattern_analysis::pat::DeconstructedPat<'_, Self>, _pat: &rustc_pattern_analysis::pat::DeconstructedPat<'_, Self>,
) -> fmt::Result { ) -> fmt::Result {
unimplemented!() // FIXME: implement this, as using `unimplemented!()` causes panics in `tracing`.
Ok(())
} }
fn bug(&self, fmt: fmt::Arguments<'_>) -> ! { fn bug(&self, fmt: fmt::Arguments<'_>) -> ! {