False positive for redundant_closure involving lifetimes #5594
Labels
C-bug
Category: Clippy is not doing the correct thing
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
I-false-positive
Issue: The lint was triggered on code it shouldn't have
I hit a false positive when contributing to
rusqlite
. The code in the PR can not be written without that closure as it doesn't seem to unify for some reason. Not sure if it's a bug in the compiler or some kind of deficiency in my code (please look at thatTryFrom
impl, if you think you could help). Would love to file issue against rustc, if relevant, but I don't even know what keywords to use for searching for existing issues. :(Without the closure I got:
Edit: sorry for forgetting to paste version. I don't know the version from
rusqlite
CI, but same issue is present inclippy 0.0.212 (69f99e7 2019-12-14)
. I also tried to implTryFrom
using a single lifetime - same problem.The text was updated successfully, but these errors were encountered: