about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorEthiraric <ethiraric@gmail.com>2024-02-27 11:41:38 +0100
committerEthiraric <ethiraric@gmail.com>2024-02-27 15:20:49 +0100
commit03bb7908b964fd461b2ba277dcf4c04608b083ef (patch)
tree79606aa8d934f871bc77ed968c8bb12d2189d366 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent10136170fe9ed01e46aeb4f4479175b79eb0e3c7 (diff)
downloadrust-03bb7908b964fd461b2ba277dcf4c04608b083ef.tar.gz
rust-03bb7908b964fd461b2ba277dcf4c04608b083ef.zip
[`map_entry`]: Check insert expression for map use
The lint makes sure that the map is not used (borrowed) before the call
to `insert`. Since the lint creates a mutable borrow on the map with the
`Entry`, it wouldn't be possible to replace such code with `Entry`.
However, expressions up to the `insert` call are checked, but not
expressions for the arguments of the `insert` call itself. This commit
fixes that.

Fixes #11935
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions