Skip to content
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

Merged
merged 1 commit into from
Mar 28, 2015
Merged

Conversation

steveklabnik
Copy link
Member

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
Collaborator

r? @pcwalton

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

@steveklabnik
Copy link
Member Author

r? @nikomatsakis

@steveklabnik
Copy link
Member 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
Member 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
Member 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
Member Author

@nikomatsakis ping!

@nikomatsakis
Copy link
Contributor

@bors r+ ac67729

@steveklabnik
Copy link
Member Author

@bors: rollup

@steveklabnik
Copy link
Member Author

@bors: r=nikomatsakis rollup

@bors
Copy link
Contributor

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