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-14 18:00:13 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-02-19 09:26:39 +0100
commitdcd643a6524f0f18a17df9fecb6e9821c1f5b33b (patch)
treec91fe5095e812c53492e01efaacc7c60c177e9c2 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent45f7a60d313f75709690bfcb1cc4232d0f44ed3f (diff)
downloadrust-dcd643a6524f0f18a17df9fecb6e9821c1f5b33b.tar.gz
rust-dcd643a6524f0f18a17df9fecb6e9821c1f5b33b.zip
`double_ended_iterator_last`: note when drop order is changed
`iter.last()` will drop all elements of `iter` in order, while
`iter.next_back()` will drop the non-last elements of `iter` when
`iter` goes out of scope since `.next_back()` does not consume its
argument.

When the transformation proposed by `double_ended_iterator_last` would
concern an iterator whose element type has a significant drop, a note is
added to warn about the possible drop order change, and the suggestion
is switched from `MachineApplicable` to `MaybeIncorrect`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions