about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-12-14 22:43:39 +0000
committerbors <bors@rust-lang.org>2024-12-14 22:43:39 +0000
commitb57d93d8b9525fa261404b4cd9c0670eeb1264b8 (patch)
tree345f1a2df55dac901b681e1ae49e3d11f685e5f8 /compiler/rustc_trait_selection
parent0aeaa5eb22180fdf12a8489e63c4daa18da6f236 (diff)
parentd2a98f76389ccfa8fe0bacd5ac2058204d087504 (diff)
downloadrust-b57d93d8b9525fa261404b4cd9c0670eeb1264b8.tar.gz
rust-b57d93d8b9525fa261404b4cd9c0670eeb1264b8.zip
Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=davidtwco,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
Diffstat (limited to 'compiler/rustc_trait_selection')
0 files changed, 0 insertions, 0 deletions