about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorKyle Huey <khuey@kylehuey.com>2023-01-04 13:32:34 -0800
committerKyle Huey <khuey@kylehuey.com>2023-01-04 13:32:34 -0800
commitd0c1605d5151c86215ad609feadead811e5602c0 (patch)
tree2e4a03b810a505104625c22f903e71d1af337979 /compiler/rustc_codegen_llvm/src
parent0bca8dd2547fcc46796b53d338c0734575e51c72 (diff)
downloadrust-d0c1605d5151c86215ad609feadead811e5602c0.tar.gz
rust-d0c1605d5151c86215ad609feadead811e5602c0.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions