Add pattern types to ast

This commit is contained in:
Oli Scherer 2023-01-30 09:50:16 +00:00
parent 31a4eae7ea
commit 7af33b3076

View File

@ -867,6 +867,11 @@ fn rewrite(&self, context: &RewriteContext<'_>, shape: Shape) -> Option<String>
self.span, self.span,
shape, 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}"))
}
} }
} }
} }