rust/src/test
Björn Steinbrink 0473a4f1d8 Avoid unnecessary copies of arguments that are simple bindings
Initially MIR differentiated between arguments and locals, which
introduced a need to add extra copies assigning the argument to a
local, even for simple bindings. This differentiation no longer exists,
but we're still creating those copies, bloating the MIR and LLVM IR we
emit.

Additionally, the current approach means that we create debug info for
both the incoming argument (marking it as an argument), and then
immediately shadow it a local that goes by the same name. This can be
confusing when using e.g. "info args" in gdb, or when e.g. a debugger
with a GUI displays the function arguments separately from the local
variables, especially when the binding is mutable, because the argument
doesn't change, while the local variable does.
2017-10-26 12:54:34 +02:00
..
codegen Avoid unnecessary copies of arguments that are simple bindings 2017-10-26 12:54:34 +02:00
codegen-units rustc: Handle #[inline(always)] at -O0 2017-10-11 17:12:29 -07:00
compile-fail Reword to avoid using either re-assignment or reassignment in errors 2017-10-25 11:29:52 -04:00
compile-fail-fulldeps change #![feature(const_fn)] to specific gates 2017-09-16 15:53:02 +00:00
debuginfo Implement display_hint in gdb pretty printers 2017-10-06 13:05:53 -06:00
incremental update inherent_impls tests 2017-10-23 16:18:00 -04:00
mir-opt Avoid unnecessary copies of arguments that are simple bindings 2017-10-26 12:54:34 +02:00
parse-fail crate shorthand visibility modifier 2017-10-22 23:58:13 -07:00
pretty Fix tests 2017-10-08 23:52:15 +09:00
run-fail Migrate to eprint/eprintln macros where appropriate. 2017-09-28 11:38:35 -04:00
run-fail-fulldeps Implement a file-path remapping feature in support of debuginfo and reproducible builds. 2017-04-26 15:44:02 +02:00
run-make Auto merge of #45202 - alexcrichton:fix-inline-always, r=michaelwoerister 2017-10-16 16:02:43 +00:00
run-pass Auto merge of #45464 - sinkuu:ice_44851, r=jseyfried 2017-10-26 04:32:16 +00:00
run-pass-fulldeps Auto merge of #45020 - MaloJaffre:needs-test, r=alexcrichton 2017-10-08 14:44:12 +00:00
run-pass-valgrind Add a run-pass-valgrind test for vecdeque issue 2017-09-24 10:56:08 -07:00
rustdoc modify tests to use new flag 2017-10-17 15:38:52 -04:00
ui Auto merge of #44636 - GuillaumeGomez:little-error-msg, r=michaelwoerister 2017-10-25 18:19:42 +00:00
ui-fulldeps Point at signature on unused lint 2017-09-25 13:25:54 -07:00
COMPILER_TESTS.md Merge ui/README.md into COMPILER_TESTS.md and describe how custom UI normalization works. 2017-07-11 16:57:53 +08:00