-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove stdlib stuff from the Reference #23285
Conversation
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
@nikomatsakis I re-added in |
# The `Copy` trait | ||
|
||
Rust has a special trait, `Copy`, which when implemented changes the semantics | ||
of a value. Values whos type implements `Copy` are copied rather than moved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: "whose"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
guaranteed by the combined use of "move semantics", and the compiler-checked | ||
_meaning_ of the `Send` trait: it is only instantiated for (transitively) | ||
sendable kinds of data constructor and pointers, never including references. | ||
|
||
When a stack frame is exited, its local allocations are all released, and its | ||
references to boxes are dropped. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should probably say "destructors are executed" but anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah we can go over this with the general reference cleanup post-beta
@nikomatsakis ping! |
@bors: rollup |
@bors: r=nikomatsakis rollup |
📌 Commit ac67729 has been approved by |
Fixes rust-lang#11794 I mostly removed superflous examples which use the standard library. I have one more quesiton here though: threads. They're mostly a library thing, at this point, right?
Fixes #11794
I mostly removed superflous examples which use the standard library.
I have one more quesiton here though: threads. They're mostly a library thing, at this point, right?