manual_unwrap_or
false positive with deref coercion
#7228
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:
manual_unwrap_or
I tried this code:
I expected to see this happen: clippy either doesn't complain, or offers a working alternative.
Instead, this happened: Clippy suggests the following:
If the suggestion is followed, compilation fails:
Meta
cargo clippy -V
: e.g.clippy 0.1.54 (5c02926 2021-05-11)
rustc -Vv
:The text was updated successfully, but these errors were encountered: