Do not ICE on invalid type node

This commit is contained in:
LeSeulArtichaut 2020-02-29 14:19:48 +01:00
parent eaa02f599f
commit c8401a5046

View File

@ -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(