Skip to content

Commit b5c0620

Browse files
authored
Rollup merge of #149800 - Delta17920:fix-ice-149746, r=lcnr
Fix ICE in normalization during closure capture analysis (#149746) This fixes an internal compiler error that occurred when normalizing associated types during closure capture analysis. The Fix: Modified rustc_middle/src/ty/normalize_erasing_regions.rs to gracefully handle projection normalization failures instead of panicking when analyzing closure captures. Regression Test: Added tests/ui/associated-types/normalization-ice-issue-149746.rs, a reproduction case involving complex associated type projections (<() as Owner>::Ty<T>) that previously crashed the compiler. Verified it now emits a standard type error (E0277). Fixes rust-lang/rust#149746
2 parents 78bcc34 + 22e65f6 commit b5c0620

0 file changed

File tree

    0 commit comments

    Comments
     (0)