File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ fn check_ty(cx: &LateContext, ast_ty: &Ty) {
141
141
match_def_path( cx. tcx, did, & paths:: VEC ) ,
142
142
] , {
143
143
span_help_and_lint( cx,
144
- BORROWED_BOX ,
144
+ BOX_VEC ,
145
145
ast_ty. span,
146
146
"you seem to be trying to use `Box<Vec<T>>`. Consider using just `Vec<T>`" ,
147
147
"`Vec<T>` is already on the heap, `Box<Vec<T>>` makes an extra allocation." ) ;
@@ -183,7 +183,7 @@ fn check_ty(cx: &LateContext, ast_ty: &Ty) {
183
183
if let Some ( def_id) = opt_def_id ( def) {
184
184
if Some ( def_id) == cx. tcx . lang_items . owned_box ( ) {
185
185
span_help_and_lint ( cx,
186
- BOX_VEC ,
186
+ BORROWED_BOX ,
187
187
ast_ty. span ,
188
188
"you seem to be trying to use `&Box<T>`. Consider using just `&T`" ,
189
189
"replace `&Box<T>` with simply `&T`" ) ;
You can’t perform that action at this time.
0 commit comments