diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2024-12-29 22:18:02 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2024-12-29 23:01:14 +0100 |
| commit | a9fe04335a10bdcc5f9921be064e3f4f5f49e31d (patch) | |
| tree | c8f8504508db716777d5b72b74354bc516f1da86 /compiler/rustc_codegen_gcc | |
| parent | b57d98b00ec53db774cf18e3d9d6fb28e8f60d0f (diff) | |
| download | rust-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
