rust/compiler
Preston From d0ea440dfe 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
2022-08-02 00:20:44 -06:00
..
2022-07-29 15:52:15 +10:00
2022-07-29 18:26:10 -04:00
2022-08-01 08:53:04 +10:00
2022-08-01 21:39:26 +02:00
2022-08-01 08:53:04 +10:00
2022-08-01 21:39:26 +02:00
2022-07-28 23:14:04 +02:00