]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unknown_clippy_lints.rs
iterate List by value
[rust.git] / tests / ui / unknown_clippy_lints.rs
index d0b4ae9f5329ee5b985b173397a499d28b09399e..5db345f5444137fecca77f3486524310bcc33cb7 100644 (file)
@@ -1,16 +1,18 @@
-// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
+// run-rustfix
 
-#![allow(clippy::All)]
 #![warn(clippy::pedantic)]
+// Should suggest lowercase
+#![allow(clippy::All)]
+#![warn(clippy::CMP_NAN)]
 
+// Should suggest similar clippy lint name
 #[warn(clippy::if_not_els)]
-fn main() {
-
-}
+#[warn(clippy::UNNecsaRy_cAst)]
+#[warn(clippy::useles_transute)]
+// Shouldn't suggest rustc lint name(`dead_code`)
+#[warn(clippy::dead_cod)]
+// Shouldn't suggest removed/deprecated clippy lint name(`unused_collect`)
+#[warn(clippy::unused_colle)]
+// Shouldn't suggest renamed clippy lint name(`const_static_lifetime`)
+#[warn(clippy::const_static_lifetim)]
+fn main() {}