Add ErrorGuaranteed to HIR TyKind::Err
This commit is contained in:
parent
dcca6a375b
commit
a772a6fc2a
9 changed files with 51 additions and 45 deletions
|
@ -3113,7 +3113,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
|||
// handled specially and will not descend into this routine.
|
||||
self.ty_infer(None, ast_ty.span)
|
||||
}
|
||||
hir::TyKind::Err => tcx.ty_error_misc(),
|
||||
hir::TyKind::Err(guar) => tcx.ty_error(*guar),
|
||||
};
|
||||
|
||||
self.record_ty(ast_ty.hir_id, result_ty, ast_ty.span);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue