Do not ICE on invalid type node
This commit is contained in:
parent
eaa02f599f
commit
c8401a5046
1 changed files with 1 additions and 0 deletions
|
|
@ -1312,6 +1312,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
ty_span: Span,
|
||||
) {
|
||||
if variant.recovered {
|
||||
self.set_tainted_by_errors();
|
||||
return;
|
||||
}
|
||||
let mut err = self.type_error_struct_with_diag(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue