diff options
| author | Alex Macleod <alex@macleod.io> | 2025-01-07 13:43:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-07 13:43:46 +0000 |
| commit | f5ca68f9db105f52aa1bf2e4eeb798fc86a10f6b (patch) | |
| tree | ffd65c357a0b0965bfdb6bc281a1cbbcda4ae572 /compiler/rustc_codegen_gcc | |
| parent | b7b69b135447dd2d4e3747880fd9998e6514f70f (diff) | |
| parent | a9fe04335a10bdcc5f9921be064e3f4f5f49e31d (diff) | |
| download | rust-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
