]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/assertions_on_constants.rs
Rollup merge of #91562 - dtolnay:asyncspace, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / clippy_lints / src / assertions_on_constants.rs
index d834a1d317a0f1d7e9d3344fb764cc3a2ab866d4..521fc84ee9c375ae3d74416afd0b8a60bb1fc86c 100644 (file)
@@ -26,6 +26,7 @@
     /// const B: bool = false;
     /// assert!(B)
     /// ```
+    #[clippy::version = "1.34.0"]
     pub ASSERTIONS_ON_CONSTANTS,
     style,
     "`assert!(true)` / `assert!(false)` will be optimized out by the compiler, and should probably be replaced by a `panic!()` or `unreachable!()`"