rust/compiler/rustc_const_eval/src/check_consts
bors b57d93d8b9 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
2024-12-14 22:43:39 +00:00
..
check.rs Bounds-check with PtrMetadata instead of Len in MIR 2024-12-03 11:05:45 -08:00
mod.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
ops.rs Mention type parameter in more cases and don't suggest ~const bound already there 2024-12-07 21:37:13 +00:00
post_drop_elaboration.rs Deduplicate checking drop terminator 2024-11-22 16:54:41 +00:00
qualifs.rs remove is_trivially_const_drop 2024-11-23 08:41:06 +01:00
resolver.rs Rename some Analysis and ResultsVisitor methods. 2024-12-10 12:07:13 +11:00