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 |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||