diff options
| author | bors <bors@rust-lang.org> | 2023-12-17 14:03:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-17 14:03:13 +0000 |
| commit | dd857f82074646c67f820c099564522a61c6f4a4 (patch) | |
| tree | a414cb1a80c14df5dfb3941eda8aefa4ee1baec8 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | f9b5def2aea47b456422df10650ff4e51b5de7cd (diff) | |
| parent | 90ece568d3ec1fb0273db452ce4b65c6bbc9c055 (diff) | |
| download | rust-dd857f82074646c67f820c099564522a61c6f4a4.tar.gz rust-dd857f82074646c67f820c099564522a61c6f4a4.zip | |
Auto merge of #11966 - StackOverflowExcept1on:issue-8159, r=Jarcho
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
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
