False positive for unused-unsafe
#7626
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name:
unused-unsafe
I tried this code:
src/lib.rs
:Cargo.toml
:I expected to see this happen: No lint error should be reported.
Instead, this happened:
The function is marked as
unsafe
though: https://doc.rust-lang.org/stable/core/arch/wasm32/fn.unreachable.html.There is also no lint error reported if I switch to
rustup override set nightly-2021-08-13
.Meta
Rust version (
rustc -Vv
):The text was updated successfully, but these errors were encountered: