Unnamed repository; edit this file 'description' to name the repository.
Rollup merge of #153495 - TaKO8Ki:fix-153236-offset-of-recovery, r=petrochenkov
Fix ICE in `offset_of!` error recovery Fixes rust-lang/rust#153236. `offset_of!` was changed in rust-lang/rust#148151 to lower through THIR as a sum of calls to the `offset_of` intrinsic. In the error-recovery case, when no valid field indices are recorded, that lowering synthesized `0` as a `u32` even though the overall `offset_of!` expression has type `usize`. On 64-bit targets, const-eval then tried to write a 4-byte immediate into an 8-byte destination, which caused the ICE.
Jonathan Brouwer 7 weeks ago
parent 582e906 · parent 43cb0b3 · commit bc18456
0 files changed, 0 insertions, 0 deletions