review comment: Remove AST AnonTy

This commit is contained in:
Esteban Küber 2023-01-23 14:29:53 +00:00
parent 12d18e4031
commit 020cca8d36
8 changed files with 4 additions and 14 deletions

View file

@ -390,7 +390,7 @@ impl<'a> Parser<'a> {
.join("\n"),
));
err.emit();
return Ok(self.mk_ty(lo.to(self.prev_token.span), TyKind::AnonEnum(types)));
return Ok(self.mk_ty(lo.to(self.prev_token.span), TyKind::Err));
}
if allow_qpath_recovery { self.maybe_recover_from_bad_qpath(ty) } else { Ok(ty) }
}