Skip to content

Commit 03192dc

Browse files
LeSeulArtichautMark-Simulacrum
authored andcommitted
Do not ICE on invalid type node
1 parent 49f39ca commit 03192dc

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
@@ -1311,6 +1311,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
13111311
ty_span: Span,
13121312
) {
13131313
if variant.recovered {
1314+
self.set_tainted_by_errors();
13141315
return;
13151316
}
13161317
let mut err = self.type_error_struct_with_diag(

0 commit comments

Comments
 (0)