unused_unsafe
false negative in closures in unsafe functions
#88260
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
fixed-by-thir-unsafeck
`-Z thir-unsafeck` handles this correctly.
P-low
Low priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
I tried this code:
I expected to see this happen: compiler lints about the unnecessary unsafe block
Instead, this happened: code compiles without warnings
Version it worked on
It most recently worked on: Rust 1.51.
Version with regression
rustc --version --verbose
:@rustbot modify labels: +regression-from-stable-to-stable -regression-untriaged
The text was updated successfully, but these errors were encountered: