mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
dd857f8207
Do not lint `assertions_on_constants` for `const _: () = assert!(expr)` Fixes #8159 ```rust pub fn f() { // warning assert!(true); assert!(usize::BITS >= 32); // ok const _: () = assert!(usize::BITS >= 32); } ``` changelog: Fix `const _: () = assert!(expr)` false positive on `assertions_on_constants` lint