review comment: Remove AST AnonTy

This commit is contained in:
Esteban Küber 2023-01-23 14:29:53 +00:00
parent 2791cc37e6
commit 4e3ed18e1d

View File

@ -839,9 +839,7 @@ impl Rewrite for ast::Ty {
})
}
ast::TyKind::CVarArgs => Some("...".to_owned()),
ast::TyKind::AnonEnum(_) | ast::TyKind::Err => {
Some(context.snippet(self.span).to_owned())
}
ast::TyKind::Err => Some(context.snippet(self.span).to_owned()),
ast::TyKind::Typeof(ref anon_const) => rewrite_call(
context,
"typeof",