rust/src/tools
bors ea6ab1bd84 Auto merge of #99660 - PrestonFrom:issue_99265, r=compiler-errors
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-29 04:23:08 +00:00
..
build-manifest Let rust-analyzer ship on stable, non-preview 2022-06-28 12:28:01 -07:00
bump-stage0 Upgrade indexmap and thorin-dwp to use hashbrown 0.12 2022-07-17 07:05:58 -07:00
cargo@85b500ccad Update cargo 2022-07-26 12:48:39 -07:00
cargotest cargotest: do not run quickcheck tests in xsv 2022-07-22 11:51:44 -04:00
clippy Auto merge of #99660 - PrestonFrom:issue_99265, r=compiler-errors 2022-07-29 04:23:08 +00:00
compiletest Use line numbers relative to function in mir opt tests 2022-07-28 11:59:54 +02:00
error_index_generator Allow unused rules in some places in the compiler, library and tools 2022-05-05 19:13:00 +02:00
expand-yaml-anchors Migrate to 2021 2021-09-20 22:21:42 -04:00
html-checker Support early stopping too old pre-installed tidy command for macOS in the HTML checker 2021-11-07 10:25:04 +09:00
jsondocck jsondocck: Better error for invalid @count number 2022-03-15 18:34:16 +00:00
linkchecker Fix some broken link fragments. 2022-07-25 09:16:28 -07:00
lint-docs Minor tweaks to rustc book summary formatting. 2022-05-19 19:08:53 -07:00
lld-wrapper Simplify implementation of -Z gcc-ld 2022-05-25 23:55:22 +03:00
miri@b938529fb8 update Miri 2022-07-25 11:23:59 -04:00
remote-test-client Migrate to 2021 2021-09-20 22:21:42 -04:00
remote-test-server Migrate to 2021 2021-09-20 22:21:42 -04:00
rls@fcf1f94c9a Update RLS 2022-07-14 17:23:46 +02:00
rust-analyzer Merge commit 'e36a20c24f' into ra-sync-and-pms-component 2022-07-26 11:53:50 +02:00
rust-demangler mangling_v0: Update tests for the rust-demangler tool 2022-01-08 11:39:34 +08:00
rust-installer@300b5ec61e Update submodule rust-installer 2022-07-09 09:49:05 -07:00
rustbook Update mdbook 2022-07-22 11:59:20 -07:00
rustc-workspace-hack add regex to rustc-workspace-hack 2022-07-08 00:23:44 -04:00
rustdoc Migrate to 2021 2021-09-20 22:21:42 -04:00
rustdoc-gui Update help message for rustdoc-gui runner 2022-06-07 11:49:22 +02:00
rustdoc-js rustdoc: make search.js a module 2022-05-17 09:26:18 -07:00
rustdoc-themes Migrate to 2021 2021-09-20 22:21:42 -04:00
rustfmt Add rustfmt test for formatting for<> before closures 2022-07-12 21:00:13 +04:00
tidy Update list of allowed dependencies 2022-07-25 17:08:20 +02:00
tier-check Migrate to 2021 2021-09-20 22:21:42 -04:00
unicode-table-generator Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
unstable-book-gen Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
x Clarify how src/tools/x searches for python 2022-03-29 13:50:17 -05:00
cherry-pick.sh
publish_toolstate.py Remove eddyb from miri failure pings 2022-06-27 16:08:19 +02:00