mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
internal: don't panic in debug_pat
This commit is contained in:
parent
17d2e8d910
commit
251b14f2c5
1 changed files with 2 additions and 1 deletions
|
@ -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<'_>) -> ! {
|
||||||
|
|
Loading…
Reference in a new issue