]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/vec.rs
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / vec.rs
index f86137622b611173cc465634356e1099fb36c7fa..3eb960f53d7af7dc33dc7baa14a51b36c7f65e05 100644 (file)
@@ -1,13 +1,12 @@
-#![feature(plugin)]
-#![plugin(clippy)]
+// run-rustfix
 
-#![deny(useless_vec)]
+#![warn(clippy::useless_vec)]
 
 #[derive(Debug)]
 struct NonCopy;
 
 fn on_slice(_: &[u8]) {}
-#[allow(ptr_arg)]
+#[allow(clippy::ptr_arg)]
 fn on_vec(_: &Vec<u8>) {}
 
 struct Line {
@@ -27,9 +26,9 @@ fn main() {
     on_slice(&vec![1, 2]);
     on_slice(&[1, 2]);
 
-    on_slice(&vec ![1, 2]);
+    on_slice(&vec![1, 2]);
     on_slice(&[1, 2]);
-
+    #[rustfmt::skip]
     on_slice(&vec!(1, 2));
     on_slice(&[1, 2]);