From 3df32cc723cc156e0ed5b507220039a52e0cbfde Mon Sep 17 00:00:00 2001 From: mcarton Date: Tue, 7 Jun 2016 17:58:52 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20span=20in=20`REVERSE=5FRANGE=5FLOOP`?= =?UTF-8?q?=E2=80=99s=20suggestion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clippy_lints/src/loops.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",