Use non-short suggestion for parenthesised ..=

This commit is contained in:
varkor 2018-11-10 21:27:40 +00:00
parent c148714549
commit c63df7c64f
3 changed files with 19 additions and 13 deletions

View file

@ -14,5 +14,5 @@ warning: `...` range patterns are deprecated
--> $DIR/inclusive-range-pattern-syntax.rs:25:9
|
LL | &1...2 => {}
| ^^^^^^ help: use `..=` for an inclusive range
| ^^^^^^ help: use `..=` for an inclusive range: `&(1..=2)`

View file

@ -14,7 +14,7 @@ warning: `...` range patterns are deprecated
--> $DIR/range-inclusive-pattern-precedence.rs:24:9
|
LL | &0...9 => {}
| ^^^^^^ help: use `..=` for an inclusive range
| ^^^^^^ help: use `..=` for an inclusive range: `&(0..=9)`
|
note: lint level defined here
--> $DIR/range-inclusive-pattern-precedence.rs:19:9