mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
11c4beac1e
Fix ICEs due to incomplete typechecking on struct literals with syntax errors. Fixes rust-lang/rust#153388. Followup to rust-lang/rust#153227. Today I have learned that when we don’t emit a diagnostic *specifically from typeck*, we need to call `self.infcx.set_tainted_by_errors()` to signal that the type checking is incomplete despite the lack of error. r? fmease