Matthias Krüger
21ddd7ab89
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``
2025-01-28 14:23:22 +01:00
..
2024-12-18 13:38:53 +11:00
2025-01-26 14:08:42 +11:00
2024-11-18 10:38:56 +01:00
2025-01-28 00:00:33 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-18 21:25:47 +00:00
2025-01-18 21:25:47 +00:00
2024-11-18 10:38:56 +01:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2024-11-18 10:38:56 +01:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-11 11:34:01 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-27 01:23:34 +00:00
2024-11-03 13:38:47 -08:00
2025-01-27 01:23:34 +00:00
2025-01-28 00:00:33 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-27 23:42:47 +00:00
2025-01-23 17:40:41 +00:00
2025-01-18 22:09:34 +00:00
2025-01-28 00:00:33 +00:00
2025-01-23 17:40:41 +00:00
2025-01-10 07:08:28 +01:00
2025-01-11 11:34:01 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-11 11:34:01 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-27 23:42:47 +00:00