Skip to content

Commit

Permalink
Do not ICE on invalid type node
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSeulArtichaut committed Feb 29, 2020
1 parent eaa02f5 commit c8401a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_typeck/check/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c8401a5

Please sign in to comment.