mirror of https://github.com/rust-lang/rust.git
Improve error message
This commit is contained in:
parent
0f50b0981d
commit
c0063e172d
|
@ -547,7 +547,7 @@ fn check_for_loop_over_map_kv(cx: &LateContext, pat: &Pat, arg: &Expr, body: &Ex
|
||||||
|db| {
|
|db| {
|
||||||
db.span_suggestion(expr.span,
|
db.span_suggestion(expr.span,
|
||||||
"use the corresponding method",
|
"use the corresponding method",
|
||||||
format!("for {} in {}.{}()",
|
format!("for {} in {}.{}() {{...}}",
|
||||||
snippet(cx, *pat_span, ".."),
|
snippet(cx, *pat_span, ".."),
|
||||||
snippet(cx, arg_span, ".."),
|
snippet(cx, arg_span, ".."),
|
||||||
kind));
|
kind));
|
||||||
|
|
Loading…
Reference in New Issue