mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 15:50:05 +03:00
ab3094b3db
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.