]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/clippy_lints/src/get_last_with_len.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / src / tools / clippy / clippy_lints / src / get_last_with_len.rs
index ced35030de8350c2c9939d91157184ffa8651f7f..f3929b0f1e617fd0ad2740c889d81afc817d8da7 100644 (file)
@@ -58,7 +58,7 @@ impl<'tcx> LateLintPass<'tcx> for GetLastWithLen {
             // Argument 0 (the struct we're calling the method on) is a vector
             if let Some(struct_calling_on) = args.get(0);
             let struct_ty = cx.typeck_results().expr_ty(struct_calling_on);
-            if is_type_diagnostic_item(cx, struct_ty, sym::vec_type);
+            if is_type_diagnostic_item(cx, struct_ty, sym::Vec);
 
             // Argument to "get" is a subtraction
             if let Some(get_index_arg) = args.get(1);