Improve the WitnessPat: Debug impl

This commit is contained in:
Nadrieril 2024-03-05 00:16:11 +01:00
parent 3dfd0fd858
commit e4487ad391
4 changed files with 89 additions and 76 deletions

View file

@ -120,7 +120,8 @@ pub trait PatCx: Sized + fmt::Debug {
/// `DeconstructedPat`. Only invoqued when `pat.ctor()` is `Struct | Variant(_) | UnionField`.
fn write_variant_name(
f: &mut fmt::Formatter<'_>,
pat: &crate::pat::DeconstructedPat<Self>,
ctor: &crate::constructor::Constructor<Self>,
ty: &Self::Ty,
) -> fmt::Result;
/// Raise a bug.