about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2024-12-29 22:18:02 +0100
committerSamuel Tardieu <sam@rfc1149.net>2024-12-29 23:01:14 +0100
commita9fe04335a10bdcc5f9921be064e3f4f5f49e31d (patch)
treec8f8504508db716777d5b72b74354bc516f1da86 /compiler/rustc_codegen_gcc
parentb57d98b00ec53db774cf18e3d9d6fb28e8f60d0f (diff)
downloadrust-a9fe04335a10bdcc5f9921be064e3f4f5f49e31d.tar.gz
rust-a9fe04335a10bdcc5f9921be064e3f4f5f49e31d.zip
Do not remove identity mapping if mandatory mutability would be lost
Removing `.map(identity)` may result in invalid code if the receiver of
`map()` is an immutable binding, and the result of `map()` is used as
the receiver of a method call expecting a mutable reference.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions