diff options
| author | bors <bors@rust-lang.org> | 2018-12-10 18:55:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-12-10 18:55:49 +0000 |
| commit | ada0b2b0950bc5133ad198272f22b006303ef016 (patch) | |
| tree | 42272a3e9c244ce75dc929250fdd9e9eb592e6d8 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | 1b93f8d6204cf303a500ca0c60ec454475139dd2 (diff) | |
| parent | e7d18084fb8e6646489be545d20d050623d8d45d (diff) | |
| download | rust-ada0b2b0950bc5133ad198272f22b006303ef016.tar.gz rust-ada0b2b0950bc5133ad198272f22b006303ef016.zip | |
Auto merge of #3518 - sinkuu:redundant_clone_tw, r=phansch
Lint redundant clone of fields Makes `redundant_clone` warn on unnecessary `foo.field.clone()` sometimes (it can detect an unnecessary clone only if the base of projection, `foo` in this case, is not used at all after that). This is enough for cases like `returns_tuple().0.clone()`.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
