Improve the WitnessPat: Debug
impl
This commit is contained in:
parent
3dfd0fd858
commit
e4487ad391
4 changed files with 89 additions and 76 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue