diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-28 14:23:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-28 14:23:22 +0100 |
| commit | 21ddd7ab89355b93c6555f5500059ae76b858321 (patch) | |
| tree | ae411a609ca16c580f3f74d113b1e7e44bff2cdc /compiler/rustc_codegen_llvm/src | |
| parent | e3420f44642ff8e6c94036c703224a7e4e641542 (diff) | |
| parent | eeecb56b7301c1bf1cf221c65e857b756b9ab42b (diff) | |
| download | rust-21ddd7ab89355b93c6555f5500059ae76b858321.tar.gz rust-21ddd7ab89355b93c6555f5500059ae76b858321.zip | |
Rollup merge of #135748 - compiler-errors:len-2, r=RalfJung,oli-obk
Lower index bounds checking to `PtrMetadata`, this time with the right fake borrow semantics 😸 Change `Rvalue::RawRef` to take a `RawRefKind` instead of just a `Mutability`. Then introduce `RawRefKind::FakeForPtrMetadata` and use that for lowering index bounds checking to a `PtrMetadata`. This new `RawRefKind::FakeForPtrMetadata` acts like a shallow fake borrow in borrowck, which mimics the semantics of the old `Rvalue::Len` operation we're replacing. We can then use this `RawRefKind` instead of using a span desugaring hack in CTFE. cc ``@scottmcm`` ``@RalfJung``
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
