Add ErrorGuaranteed to HIR ExprKind::Err
This commit is contained in:
parent
a772a6fc2a
commit
c0e58c3420
14 changed files with 50 additions and 33 deletions
|
@ -758,7 +758,7 @@ impl<'tcx> Cx<'tcx> {
|
|||
hir::ExprKind::Tup(ref fields) => ExprKind::Tuple { fields: self.mirror_exprs(fields) },
|
||||
|
||||
hir::ExprKind::Yield(ref v, _) => ExprKind::Yield { value: self.mirror_expr(v) },
|
||||
hir::ExprKind::Err => unreachable!(),
|
||||
hir::ExprKind::Err(_) => unreachable!(),
|
||||
};
|
||||
|
||||
Expr { temp_lifetime, ty: expr_ty, span: expr.span, kind }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue