1
Fork 0

Rustup to syntax::errors changes

This commit is contained in:
Manish Goregaokar 2016-01-01 02:09:03 +05:30
parent 70486b3006
commit 1605ef6ed4
13 changed files with 110 additions and 71 deletions

View file

@ -135,7 +135,7 @@ fn check_len_zero(cx: &LateContext, span: Span, name: &Name,
has_is_empty(cx, &args[0]) {
span_lint(cx, LEN_ZERO, span, &format!(
"consider replacing the len comparison with `{}{}.is_empty()`",
op, snippet(cx, args[0].span, "_")))
op, snippet(cx, args[0].span, "_")));
}
}
}