about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMateusz Gacek <96mateusz.gacek@gmail.com>2021-05-06 10:49:31 -0700
committerMateusz Gacek <96mateusz.gacek@gmail.com>2021-05-06 10:49:31 -0700
commitab3094b3dbf0bf6423a9cf0509a170eee89f106e (patch)
treeef5413ffea785cfd402351f8d87cfc7a49556876 /src
parentf3a0ac1f4b3675e8313dff0f06023b463877dc4d (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions