diff --git a/clippy_lints/src/loops.rs b/clippy_lints/src/loops.rs index 664ff21994e..e635b34e1de 100644 --- a/clippy_lints/src/loops.rs +++ b/clippy_lints/src/loops.rs @@ -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",