[rust-dev] &self/&mut self in traits considered harmful(?)
ml at isaac.cedarswampstudios.org
Sun Jun 15 11:10:21 PDT 2014
> On 6/12/14 11:15 AM, Tommi wrote:
>> But I think it will be easy to make the error of writing the explicit
>> .clone() in places where it's not needed. For example:
Would a compiler warning for unnecessary clones be feasible? useful?
Would it have false positives -- situations where a clone would compile
as a move but do the wrong thing?
More information about the Rust-dev