mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 15:50:05 +03:00
b57d93d8b9
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
For more information about how rustc works, see the rustc dev guide.