diff options
| author | bors <bors@rust-lang.org> | 2019-01-07 18:54:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-01-07 18:54:28 +0000 |
| commit | 5b8496603c4db231719b67c1f88b409e7b278e5e (patch) | |
| tree | fd045f1504310061cb29acf26984621798725ba6 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | 140c1650e81649c8bf94a27b7b02aa327bd7def1 (diff) | |
| parent | 466cd076a2c6e1cf1775c486998a1a0b12b2fe15 (diff) | |
| download | rust-5b8496603c4db231719b67c1f88b409e7b278e5e.tar.gz rust-5b8496603c4db231719b67c1f88b409e7b278e5e.zip | |
Auto merge of #3640 - detrumi:nested_use_self, r=flip1995
Restrict `use_self` on nested items Fixes #3637 Fixes #3463 These changes make it so that nested items aren't visited any more by the `use_self` lint. I think visiting nested items should be possible (so that it uses a different `item_path` for the nested item), but I'm not sure whether it's viable and what the best approach would be. - Can `item_path` be changed to a new `Self` path before visiting the item, and then changing it back afterwards? - Alternatively, could a new visitor be created, re-using `check_trait_method_impl_decl`?
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
