diff options
| author | bors <bors@rust-lang.org> | 2023-01-04 23:13:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-04 23:13:39 +0000 |
| commit | d5d8ef13d70c215ce369d035cc41ec2f2ba3d810 (patch) | |
| tree | af410d234043c57b91818d0a866f382c96c4a329 /compiler/rustc_codegen_llvm/src | |
| parent | d39dd869a55ec52784e41e53551d612c0a25b58c (diff) | |
| parent | 755ae3fa29b0b2c6b11eaecf81b201b0a9a026bf (diff) | |
| download | rust-d5d8ef13d70c215ce369d035cc41ec2f2ba3d810.tar.gz rust-d5d8ef13d70c215ce369d035cc41ec2f2ba3d810.zip | |
Auto merge of #10159 - khuey:iter_kv_map_ref_mut, r=llogiq
Make the iter_kv_map lint handle ref/mut annotations. For the degenerate (`map(|(k, _)| k)`/`map(|(_, v)| v)`) cases a mut annotation is superfluous and a ref annotation won't compile, so no additional handling is required. For cases where the `map` call must be preserved ref/mut annotations should also be presereved so that the map body continues to work as expected. *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: [`iter_kv_map`]: handle ref/mut annotations
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
