about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-04 23:13:39 +0000
committerbors <bors@rust-lang.org>2023-01-04 23:13:39 +0000
commitd5d8ef13d70c215ce369d035cc41ec2f2ba3d810 (patch)
treeaf410d234043c57b91818d0a866f382c96c4a329 /compiler/rustc_codegen_llvm/src/errors.rs
parentd39dd869a55ec52784e41e53551d612c0a25b58c (diff)
parent755ae3fa29b0b2c6b11eaecf81b201b0a9a026bf (diff)
downloadrust-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/errors.rs')
0 files changed, 0 insertions, 0 deletions