mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Fix span in REVERSE_RANGE_LOOP
’s suggestion
This commit is contained in:
parent
5b09501d61
commit
3df32cc723
1 changed files with 1 additions and 1 deletions
|
@ -446,7 +446,7 @@ fn check_for_loop_reverse_range(cx: &LateContext, arg: &Expr, expr: &Expr) {
|
|||
expr.span,
|
||||
"this range is empty so this for loop will never run",
|
||||
|db| {
|
||||
db.span_suggestion(expr.span,
|
||||
db.span_suggestion(arg.span,
|
||||
"consider using the following if \
|
||||
you are attempting to iterate \
|
||||
over this range in reverse",
|
||||
|
|
Loading…
Reference in a new issue