1
Fork 0

Add ErrorGuaranteed to HIR TyKind::Err

This commit is contained in:
Michael Goulet 2023-02-22 21:19:42 +00:00
parent dcca6a375b
commit a772a6fc2a
9 changed files with 51 additions and 45 deletions

View file

@ -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);