Use non-short suggestion for parenthesised ..=
This commit is contained in:
parent
c148714549
commit
c63df7c64f
3 changed files with 19 additions and 13 deletions
|
|
@ -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)`
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue