diff options
| author | Preston From <prestonfrom@gmail.com> | 2022-07-29 22:52:46 -0600 |
|---|---|---|
| committer | Preston From <prestonfrom@gmail.com> | 2022-08-02 00:20:44 -0600 |
| commit | d0ea440dfe8659debd01246b5f2b8448abfb1e8b (patch) | |
| tree | eca2ca58896675fb4c513fe85a1f1167b6252d1d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 9d5cd21a5d4d5325b1f1c9903d000d19e3703e2a (diff) | |
| download | rust-d0ea440dfe8659debd01246b5f2b8448abfb1e8b.tar.gz rust-d0ea440dfe8659debd01246b5f2b8448abfb1e8b.zip | |
Improve position named arguments lint underline and formatting names
For named arguments used as implicit position arguments, underline both
the opening curly brace and either:
* if there is formatting, the next character (which will either be the
closing curl brace or the `:` denoting the start of formatting args)
* if there is no formatting, the entire arg span (important if there is
whitespace like `{ }`)
This should make it more obvious where the named argument should be.
Additionally, in the lint message, emit the formatting argument names
without a dollar sign to avoid potentially confusion.
Fixes #99907
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
