diff options
| author | Kyle Huey <khuey@kylehuey.com> | 2023-01-04 13:32:34 -0800 |
|---|---|---|
| committer | Kyle Huey <khuey@kylehuey.com> | 2023-01-04 13:32:34 -0800 |
| commit | d0c1605d5151c86215ad609feadead811e5602c0 (patch) | |
| tree | 2e4a03b810a505104625c22f903e71d1af337979 /compiler/rustc_codegen_llvm/src | |
| parent | 0bca8dd2547fcc46796b53d338c0734575e51c72 (diff) | |
| download | rust-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
