diff --git a/src/types.rs b/src/types.rs index 7f220a456a8..10a87f6e698 100644 --- a/src/types.rs +++ b/src/types.rs @@ -867,6 +867,11 @@ fn rewrite(&self, context: &RewriteContext<'_>, shape: Shape) -> Option self.span, shape, ), + ast::TyKind::Pat(ref ty, ref pat) => { + let ty = ty.rewrite(context, shape)?; + let pat = pat.rewrite(context, shape)?; + Some(format!("{ty} is {pat}")) + } } } }