You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is the consensus after quite a few discussions about this. Clone will be the way to explicitly copy an ownership tree (stops at @ boundaries).
In the future, a DeepClone trait could be implemented to copy past @ boundaries, but it will have to handle cycles to work in the general case.
The text was updated successfully, but these errors were encountered:
The copy keyword is now gone, and Copy has been removed. Adding a trait for implicitly copyable types can be a separate issue not tied to backwards compatibility.
New lint `match_vec_item`
Added new lint to warn a match on index item which can panic. It's always better to use `get(..)` instead.
Closesrust-lang#5500
changelog: New lint `match_on_vec_items`
I think this is the consensus after quite a few discussions about this.
Clone
will be the way to explicitly copy an ownership tree (stops at @ boundaries).In the future, a
DeepClone
trait could be implemented to copy past @ boundaries, but it will have to handle cycles to work in the general case.The text was updated successfully, but these errors were encountered: