mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 15:51:50 +00:00
Bounds-check with PtrMetadata instead of Len in MIR Rather than emitting `Len(*_n)` in array index bounds checks, emit `PtrMetadata(copy _n)` instead -- with some asterisks for arrays and `&mut` that need it to be done slightly differently. We're getting pretty close to removing `Len` entirely, actually. I think just one more PR after this (for slice drop shims). r? mir
The goal of this directory is to track the quality of MIR that is given to codegen in a standard -O condiguration.
As such, feel free to --bless whatever changes you get here, so long as doing so doesn't add substantially more MIR.