Fix span in REVERSE_RANGE_LOOP’s suggestion

This commit is contained in:
mcarton 2016-06-07 17:58:52 +02:00
parent 5b09501d61
commit 3df32cc723
No known key found for this signature in database
GPG Key ID: 5E427C794CBA45E8

View File

@ -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",