Skip to content

Commit

Permalink
Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=dav…
Browse files Browse the repository at this point in the history
…idtwco,RalfJung

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
  • Loading branch information
bors committed Dec 14, 2024
2 parents ecf35e0 + bedc7d7 commit db94f76
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit db94f76

Please sign in to comment.