mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Do not ICE on invalid type node
This commit is contained in:
parent
eaa02f599f
commit
c8401a5046
@ -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…
Reference in New Issue
Block a user