Skip to content

Conversation

steveklabnik
Copy link
Contributor

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?

@rust-highfive
Copy link
Contributor

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@steveklabnik
Copy link
Contributor Author

r? @nikomatsakis

@steveklabnik
Copy link
Contributor Author

@nikomatsakis I re-added in Copy, tweaked that wording, and removed references to threads.

# 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: "whose"

Copy link
Contributor Author

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.
Copy link
Contributor

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

Copy link
Contributor Author

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

@steveklabnik
Copy link
Contributor Author

@nikomatsakis ping!

@nikomatsakis
Copy link
Contributor

@bors r+ ac67729

@steveklabnik
Copy link
Contributor Author

@bors: rollup

@steveklabnik
Copy link
Contributor Author

@bors: r=nikomatsakis rollup

@bors
Copy link
Collaborator

bors commented Mar 27, 2015

📌 Commit ac67729 has been approved by nikomatsakis

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 27, 2015
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?
@bors bors merged commit ac67729 into rust-lang:master Mar 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove standard library information from the Rust manual
5 participants