Closed
Description
Summary
If I expect the lint, then it claims it doesn't trigger
Reproducer
I tried this code:
#[expect(clippy::exit, reason = "TODO: use clap")] // this lint expectation is unfulfilled
fn main() {
std::process::exit(1);
}
fn main() {
std::process::exit(1); // usage of `process::exit`
}
Version
rustc 1.87.0 (17067e9ac 2025-05-09)
binary: rustc
commit-hash: 17067e9ac6d7ecb70e50f92c1944e545188d2359
commit-date: 2025-05-09
host: x86_64-unknown-linux-gnu
release: 1.87.0
LLVM version: 20.1.1
Additional Labels
No response