diff options
| author | Ethiraric <ethiraric@gmail.com> | 2024-02-27 11:41:38 +0100 |
|---|---|---|
| committer | Ethiraric <ethiraric@gmail.com> | 2024-02-27 15:20:49 +0100 |
| commit | 03bb7908b964fd461b2ba277dcf4c04608b083ef (patch) | |
| tree | 79606aa8d934f871bc77ed968c8bb12d2189d366 /compiler/rustc_codegen_llvm/src | |
| parent | 10136170fe9ed01e46aeb4f4479175b79eb0e3c7 (diff) | |
| download | rust-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_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
