rust/tests
bors d8fc819247 Auto merge of #109466 - davidlattimore:inline-arg-via-var-debug-info, r=wesleywiser
Preserve argument indexes when inlining MIR

We store argument indexes on VarDebugInfo. Unlike the previous method of relying on the variable index to know whether a variable is an argument, this survives MIR inlining.

We also no longer check if var.source_info.scope is the outermost scope. When a function gets inlined, the arguments to the inner function will no longer be in the outermost scope. What we care about though is whether they were in the outermost scope prior to inlining, which we know by whether we assigned an argument index.

Fixes #83217

I considered using `Option<NonZeroU16>` instead of `Option<u16>` to store the index. I didn't because `TypeFoldable` isn't implemented for `NonZeroU16` and because it looks like due to padding, it currently wouldn't make any difference. But I indexed from 1 anyway because (a) it'll make it easier if later it becomes worthwhile to use a `NonZeroU16` and because the arguments were previously indexed from 1, so it made for a smaller change.

This is my first PR on rust-lang/rust, so apologies if I've gotten anything not quite right.
2023-04-13 01:51:27 +00:00
..
assembly Fix an assembly test with a hard-coded hash 2023-04-05 15:59:29 +00:00
auxiliary
codegen Auto merge of #109466 - davidlattimore:inline-arg-via-var-debug-info, r=wesleywiser 2023-04-13 01:51:27 +00:00
codegen-units
debuginfo Fix function order in an msvc debuginfo test 2023-04-05 15:59:29 +00:00
incremental
mir-opt Add Offset binary op to custom mir 2023-04-11 16:23:35 +02:00
pretty
run-make Replace rustdoc-ui/{c,z}-help tests with a run-make test 2023-04-12 05:34:21 -05:00
run-make-fulldeps
run-pass-valgrind
rustdoc Split out a separate feature gate for impl trait in associated types 2023-04-12 16:17:31 +00:00
rustdoc-gui Auto merge of #110252 - matthiaskrgr:rollup-ovaixra, r=matthiaskrgr 2023-04-12 22:19:29 +00:00
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui Rollup merge of #109810 - jyn514:rustdoc-opt-tests, r=TaKO8Ki 2023-04-12 22:04:32 +02:00
ui Auto merge of #109466 - davidlattimore:inline-arg-via-var-debug-info, r=wesleywiser 2023-04-13 01:51:27 +00:00
ui-fulldeps Migrate most of rustc_builtin_macros to diagnostic impls 2023-04-10 21:16:53 +01:00
COMPILER_TESTS.md