about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-20 13:28:30 +0000
committerbors <bors@rust-lang.org>2023-10-20 13:28:30 +0000
commite230f19e18284242af407c15b4a6115951db8e31 (patch)
tree4881890a89f7fecb709d771ae7adf4b8db99232f /compiler/rustc_codegen_gcc/example/std_example.rs
parentcd477d4b0c49c6ad1524244d732bd74643881878 (diff)
parentbba155ea9dac4f320303696572f552e80042889c (diff)
downloadrust-e230f19e18284242af407c15b4a6115951db8e31.tar.gz
rust-e230f19e18284242af407c15b4a6115951db8e31.zip
Auto merge of #11521 - y21:issue9122, r=llogiq
[`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
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions