diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs index a073e7e98523..5918d76a5ff4 100644 --- a/clippy_lints/src/types.rs +++ b/clippy_lints/src/types.rs @@ -142,7 +142,7 @@ fn check_ty(cx: &LateContext, ast_ty: &hir::Ty) { match_def_path(cx.tcx, did, &paths::VEC), ], { span_help_and_lint(cx, - BOX_VEC, + BORROWED_BOX, ast_ty.span, "you seem to be trying to use `Box>`. Consider using just `Vec`", "`Vec` is already on the heap, `Box>` makes an extra allocation.");