review comment: Remove AST AnonTy
This commit is contained in:
parent
12d18e4031
commit
020cca8d36
8 changed files with 4 additions and 14 deletions
|
@ -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) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue