rust/compiler/rustc_lint/src
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
..
nonstandard_style
array_into_iter.rs
builtin.rs Rollup merge of #99911 - cjgillot:no-guess, r=davidtwco 2022-08-01 16:49:31 +02:00
context.rs Improve position named arguments lint underline and formatting names 2022-08-02 00:20:44 -06:00
early.rs Remove some early check_* functions. 2022-07-29 15:27:16 +10:00
enum_intrinsics_non_enums.rs Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
expect.rs
hidden_unicode_codepoints.rs
internal.rs lint: add bad opt access internal lint 2022-07-27 11:24:27 +01:00
late.rs Remove some late check_* functions. 2022-07-29 15:30:12 +10:00
levels.rs
lib.rs Rollup merge of #99888 - nnethercote:streamline-visitors, r=cjgillot 2022-07-30 07:39:54 +09:00
methods.rs
non_ascii_idents.rs
non_fmt_panic.rs
nonstandard_style.rs Remove DefId from AssocItemContainer. 2022-08-01 21:38:45 +02:00
noop_method_call.rs Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
pass_by_value.rs
passes.rs Remove some late check_* functions. 2022-07-29 15:30:12 +10:00
redundant_semicolon.rs
tests.rs
traits.rs
types.rs Update invalid atomic ordering lint 2022-07-18 12:02:11 +02:00
unused.rs