compilation failure after applying lint filter_map_identity
#12653
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
title, the following code depends on
filter_map
to tell rustc that the type is Option<_>, which is removed causing a compilation errorReproducer
I tried this code:
I expected to see this happen:
no lint (see #9377) or a working one
Instead, this happened:
command:
cargo clippy --fix --allow-no-vcs
Version
Additional Labels
@rustbot label +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: