about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorAlex Macleod <alex@macleod.io>2025-01-07 13:43:46 +0000
committerGitHub <noreply@github.com>2025-01-07 13:43:46 +0000
commitf5ca68f9db105f52aa1bf2e4eeb798fc86a10f6b (patch)
treeffd65c357a0b0965bfdb6bc281a1cbbcda4ae572 /compiler/rustc_codegen_gcc
parentb7b69b135447dd2d4e3747880fd9998e6514f70f (diff)
parenta9fe04335a10bdcc5f9921be064e3f4f5f49e31d (diff)
downloadrust-f5ca68f9db105f52aa1bf2e4eeb798fc86a10f6b.tar.gz
rust-f5ca68f9db105f52aa1bf2e4eeb798fc86a10f6b.zip
Do not remove identity mapping if mandatory mutability would be lost (#13905)
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.

Fix #13904

changelog: [`map_identity`]: do not lint if this would cause mandatory
mutability to be lost
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions