mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
e230f19e18
[`map_identity`]: allow closure with type annotations Fixes #9122 `.map(|a: u32| a)` can help type inference, so we should probably allow this and not warn about "unnecessary map of the identity function" changelog: [`map_identity`]: allow closure with type annotations