diff options
| author | Mateusz Gacek <96mateusz.gacek@gmail.com> | 2021-05-06 10:49:31 -0700 |
|---|---|---|
| committer | Mateusz Gacek <96mateusz.gacek@gmail.com> | 2021-05-06 10:49:31 -0700 |
| commit | ab3094b3dbf0bf6423a9cf0509a170eee89f106e (patch) | |
| tree | ef5413ffea785cfd402351f8d87cfc7a49556876 /src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff | |
| parent | f3a0ac1f4b3675e8313dff0f06023b463877dc4d (diff) | |
| download | rust-ab3094b3dbf0bf6423a9cf0509a170eee89f106e.tar.gz rust-ab3094b3dbf0bf6423a9cf0509a170eee89f106e.zip | |
wrong_self_convention: For `to_*` variant don't lint in trait impl taking `self` when non-`Copy` type
It relaxes rules for `to_*` variant, so it doesn't lint in trait definitions and implementations anymore. Although, non-`Copy` type implementing trait's `to_*` method taking `self` feels not good (consumes ownership, so should be rather named `into_`), it would be better if this case was a pedantic lint (allow-by-default) instead.
Diffstat (limited to 'src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff')
0 files changed, 0 insertions, 0 deletions
