moar clippylike

This commit is contained in:
Manish Goregaokar 2014-11-19 14:34:18 +05:30
parent 9341427b0a
commit 767bd168c1

View file

@ -53,7 +53,7 @@ impl LintPass for TypePass {
.map(|t| match_ty_unwrap(&**t, &["std", "vec", "Vec"]))
.map(|_| {
span_note_and_lint(cx, CLIPPY_BOX_VEC, ty.span,
"Detected Box<Vec<T>>. Did you mean to use Vec<T>?",
"You seem to be trying to use Box<Vec<T>>. Did you mean to use Vec<T>?",
"Vec<T> is already on the heap, Box<Vec<T>> makes an extra allocation");
});
}