]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/attrs.rs
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / attrs.rs
index eb27b833aded0742735a78809017ddc4c31ba895..8df6e19421ec5707f9d09b186ccd380236e1a8b9 100644 (file)
@@ -1,7 +1,6 @@
-
-
-
-#![warn(inline_always, deprecated_semver)]
+#![warn(clippy::inline_always, clippy::deprecated_semver)]
+#![allow(clippy::assertions_on_constants)]
+#![allow(clippy::missing_docs_in_private_items, clippy::panic, clippy::unreachable)]
 
 #[inline(always)]
 fn test_attr_lint() {
@@ -20,22 +19,27 @@ fn false_positive_stmt() {
 
 #[inline(always)]
 fn empty_and_false_positive_stmt() {
-    ;
     unreachable!();
 }
 
 #[deprecated(since = "forever")]
-pub const SOME_CONST : u8 = 42;
+pub const SOME_CONST: u8 = 42;
 
 #[deprecated(since = "1")]
-pub const ANOTHER_CONST : u8 = 23;
+pub const ANOTHER_CONST: u8 = 23;
 
 #[deprecated(since = "0.1.1")]
-pub const YET_ANOTHER_CONST : u8 = 0;
+pub const YET_ANOTHER_CONST: u8 = 0;
 
 fn main() {
     test_attr_lint();
-    if false { false_positive_expr() }
-    if false { false_positive_stmt() }
-    if false { empty_and_false_positive_stmt() }
+    if false {
+        false_positive_expr()
+    }
+    if false {
+        false_positive_stmt()
+    }
+    if false {
+        empty_and_false_positive_stmt()
+    }
 }