about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-02 23:07:45 +0200
committerGitHub <noreply@github.com>2022-08-02 23:07:45 +0200
commit82feb4996cb9195b0979ab6ab1dac379ade7f500 (patch)
treed19ae51411569a4c33809e82922be24dc1e15cc6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent63cd10154dac82503c446baf8eb1b2abd3dac3ff (diff)
parent298acef30730ee676fdbc9e731370cd7ccedd431 (diff)
downloadrust-82feb4996cb9195b0979ab6ab1dac379ade7f500.tar.gz
rust-82feb4996cb9195b0979ab6ab1dac379ade7f500.zip
Rollup merge of #99958 - PrestonFrom:issue_99907, r=compiler-errors
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