diff options
| author | Andy Russell <arussell123@gmail.com> | 2019-01-04 10:19:52 -0500 |
|---|---|---|
| committer | Andy Russell <arussell123@gmail.com> | 2019-01-08 13:24:38 -0500 |
| commit | 7c0d145ec1603fd7d4de2ef38a70baeffbedaad2 (patch) | |
| tree | 00d0ad68dd743ac633d76021057103eba75ffcdb /src/test/ui/span | |
| parent | 3dfe36d09436317e035ee3caa19c7e1d260053e1 (diff) | |
| download | rust-7c0d145ec1603fd7d4de2ef38a70baeffbedaad2.tar.gz rust-7c0d145ec1603fd7d4de2ef38a70baeffbedaad2.zip | |
improve non_snake_case diagnostics
Use a structured suggestion and tighten the span to just the identifier.
Diffstat (limited to 'src/test/ui/span')
| -rw-r--r-- | src/test/ui/span/issue-24690.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/span/issue-24690.stderr b/src/test/ui/span/issue-24690.stderr index 42b93334572..f052f866c90 100644 --- a/src/test/ui/span/issue-24690.stderr +++ b/src/test/ui/span/issue-24690.stderr @@ -11,17 +11,17 @@ LL | #![warn(unused)] | ^^^^^^ = note: #[warn(unused_variables)] implied by #[warn(unused)] -warning: variable `theTwo` should have a snake case name such as `the_two` +warning: variable `theTwo` should have a snake case name --> $DIR/issue-24690.rs:12:9 | LL | let theTwo = 2; //~ WARN should have a snake case name - | ^^^^^^ + | ^^^^^^ help: convert the identifier to snake case: `the_two` | = note: #[warn(non_snake_case)] on by default -warning: variable `theOtherTwo` should have a snake case name such as `the_other_two` +warning: variable `theOtherTwo` should have a snake case name --> $DIR/issue-24690.rs:13:9 | LL | let theOtherTwo = 2; //~ WARN should have a snake case name - | ^^^^^^^^^^^ + | ^^^^^^^^^^^ help: convert the identifier to snake case: `the_other_two` |
