about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-02-02 17:16:36 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-02-18 13:51:01 +0100
commit45f7a60d313f75709690bfcb1cc4232d0f44ed3f (patch)
treeeb19c2dcf217acaadb3151f85f9c2b2c90eadb82 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent510d3b69fc2e13f7cc2cb485716aba6908f147dc (diff)
downloadrust-45f7a60d313f75709690bfcb1cc4232d0f44ed3f.tar.gz
rust-45f7a60d313f75709690bfcb1cc4232d0f44ed3f.zip
`.last()` to `.next_back()` requires a mutable receiver
In the case where `iter` is a `DoubleEndedIterator`, replacing a call to
`iter.last()` (which consumes `iter`) by `iter.next_back()` (which
requires a mutable reference to `iter`) cannot be done when `iter`
Is not a mutable binding or a mutable reference.

When `iter` is a local binding, it can be made mutable by fixing its
definition site.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions