Skip to content

Commit c8401a5

Browse files
Do not ICE on invalid type node
1 parent eaa02f5 commit c8401a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_typeck/check/expr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
13121312
ty_span: Span,
13131313
) {
13141314
if variant.recovered {
1315+
self.set_tainted_by_errors();
13151316
return;
13161317
}
13171318
let mut err = self.type_error_struct_with_diag(

0 commit comments

Comments
 (0)