diff options
| author | bors <bors@rust-lang.org> | 2024-02-27 18:53:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-27 18:53:25 +0000 |
| commit | 4c1d05cfa193012eb197119b4614dd979d7f6004 (patch) | |
| tree | 4dd565785c9b6ee1e0a65e37f6e506ee420b33c4 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 4155becb2a39a1c898815c5538a00c18a1a95fc7 (diff) | |
| parent | 03bb7908b964fd461b2ba277dcf4c04608b083ef (diff) | |
| download | rust-4c1d05cfa193012eb197119b4614dd979d7f6004.tar.gz rust-4c1d05cfa193012eb197119b4614dd979d7f6004.zip | |
Auto merge of #12362 - Ethiraric:fix-11935, r=llogiq
[`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 ---- changelog: [`map_entry`]: Fix false positive when borrowing the map in the `insert` call
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
