rust/src/test
Preston From 3330c7d1c3 Generate correct suggestion with named arguments used positionally
Address issue #99265 by checking each positionally used argument
to see if the argument is named and adding a lint to use the name
instead. This way, when named arguments are used positionally in a
different order than their argument order, the suggested lint is
correct.

For example:
```
println!("{b} {}", a=1, b=2);
```
This will now generate the suggestion:
```
println!("{b} {a}", a=1, b=2);
```

Additionally, this check now also correctly replaces or inserts
only where the positional argument is (or would be if implicit).
Also, width and precision are replaced with their argument names
when they exists.

Since the issues were so closely related, this fix for issue #99265
also fixes issue #99266.

Fixes #99265
Fixes #99266
2022-07-25 00:00:27 -06:00
..
assembly adapt assembly/static-relocation-model test for LLVM change 2022-07-20 12:56:42 +00:00
auxiliary
codegen Auto merge of #97581 - AngelicosPhosphoros:improve_calloc_check_in_vec_macro_for_tuples, r=Mark-Simulacrum 2022-07-25 00:20:43 +00:00
codegen-units Fix/bless tests broken by DSE 2022-05-24 22:50:21 -04:00
debuginfo Use revision support to remove near identical debuginfo test. 2022-07-20 00:23:38 -07:00
incremental Rollup merge of #98901 - davidtwco:split-dwarf-incr-workproduct, r=michaelwoerister 2022-07-07 18:06:52 +05:30
mir-opt ignore wasm=32 & bless 2022-07-12 16:02:17 +03:00
pretty Add pp-exact test involving where T: 2022-06-16 17:03:47 -07:00
run-make Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
run-make-fulldeps Rollup merge of #98868 - tmiasko:unreachable-coverage, r=wesleywiser 2022-07-22 11:53:40 +05:30
run-pass-valgrind Change enum->int casts to not go through MIR casts. 2022-06-30 07:47:07 +00:00
rustdoc Rollup merge of #99393 - Logarithmus:feature/99255-omit-const-generic-suffixes, r=petrochenkov 2022-07-22 11:53:40 +05:30
rustdoc-gui Rollup merge of #99489 - GuillaumeGomez:gui-fixes, r=notriddle 2022-07-20 18:58:19 +02:00
rustdoc-js rustdoc: also index raw pointers 2022-05-31 11:21:55 -07:00
rustdoc-js-std Rollup merge of #96887 - notriddle:notriddle/as-raw-fd, r=jsha 2022-05-11 13:16:31 +09:00
rustdoc-json Add tests for JSON non-inlining 2022-07-16 13:39:38 +02:00
rustdoc-ui Auto merge of #98162 - nextsilicon:support_lto_embed_bitcode, r=davidtwco 2022-07-21 10:13:59 +00:00
ui Generate correct suggestion with named arguments used positionally 2022-07-25 00:00:27 -06:00
ui-fulldeps Rollup merge of #99298 - ChrisDenton:ignore-plugins-stage1, r=Mark-Simulacrum 2022-07-23 23:34:28 +02:00
COMPILER_TESTS.md