Skip to content

Some general clean-up of std::vec::raw #10984

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

Closed
wants to merge 6 commits into from
Closed

Conversation

huonw
Copy link
Member

@huonw huonw commented Dec 15, 2013

See commits for details.

raw}::copy_memory.

Slices carry their length with them, so we can just use that
information.
These are less useful versions of the comparison operators and TotalOrd
trait.
This can easily be written as `(*v.unsafe_ref(i)).clone()`, or just
`*v.unsafe_ref(i)` for primitive types like `i32` (the common case).
bors added a commit that referenced this pull request Dec 15, 2013
@bors bors closed this Dec 15, 2013
cadencemarseille added a commit to cadencemarseille/rust-pcre that referenced this pull request Dec 16, 2013
See:
* rust-lang/rust#10984 - Some general clean-up of std::vec::raw
* rust-lang/rust@164f7a2 - std::vec: convert to(_mut)_ptr to as_... methods on &[] and &mut [].
@huonw huonw deleted the clean-raw branch February 25, 2014 05:28
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.

3 participants