rust/tests
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
..
assembly Auto merge of #104693 - jhorstmann:use-high-bit-of-mask-for-select, r=workingjubilee 2025-01-26 22:45:21 +00:00
auxiliary tests/assembly/asm: Remove uses of rustc_attrs and lang_items features by using minicore 2024-12-18 02:59:07 +09:00
codegen Auto merge of #134290 - tgross35:windows-i128-callconv, r=bjorn3,wesleywiser 2025-01-28 06:11:13 +00:00
codegen-units Remove -Zinline-in-all-cgus and clean up CGU partitioning tests 2025-01-27 23:48:47 -05:00
coverage coverage: Completely overhaul counter assignment, using node-flow graphs 2025-01-16 22:07:18 +11:00
coverage-run-rustdoc coverage: Restrict empty-span expansion to only cover { and } 2024-11-08 20:43:08 +11:00
crashes Rollup merge of #136072 - cyrgani:old-crash-tests, r=WaffleLapkin 2025-01-27 04:34:52 +01:00
debuginfo Revert "Remove the Arc rt::init allocation for thread info" 2025-01-14 13:37:25 +01:00
incremental add test for issue 135514 2025-01-15 08:26:23 +00:00
mir-opt Represent the raw pointer for a array length check as a new kind of fake borrow 2025-01-28 00:00:33 +00:00
pretty Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
run-make Auto merge of #133929 - saethlin:remove-inline-in-all-cgus, r=nnethercote 2025-01-28 09:43:03 +00:00
rustdoc Add TooGeneric variant to LayoutError and emit Unknown one 2025-01-27 00:37:34 +01:00
rustdoc-gui Add GUI regression test for indent of trait items on mobile 2025-01-24 15:36:52 +01:00
rustdoc-js Rollup merge of #134277 - notriddle:notriddle/inline-into, r=GuillaumeGomez 2024-12-16 20:00:20 +01:00
rustdoc-js-std Treat other items as functions for the purpose of type-based search 2025-01-16 11:52:00 -06:00
rustdoc-json rustdoc-json: Rename Path::name to path, and give it path (again). 2025-01-22 19:29:48 +00:00
rustdoc-ui Auto merge of #133154 - estebank:issue-133137, r=wesleywiser 2025-01-25 11:41:21 +00:00
ui Rollup merge of #135748 - compiler-errors:len-2, r=RalfJung,oli-obk 2025-01-28 14:23:22 +01:00
ui-fulldeps Remove RunCompiler 2025-01-23 09:38:58 +00:00
COMPILER_TESTS.md