-
Notifications
You must be signed in to change notification settings - Fork 13k
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
std: Rename cstr_memory
feature to use "raw"
#27836
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #27818) made this pull request unmergeable. Please resolve the merge conflicts. |
alexcrichton
force-pushed
the
rename-cstring-raw
branch
from
August 16, 2015 16:07
b33fe7d
to
fcc2f41
Compare
/// Transfers ownership of the string to a C caller. | ||
/// | ||
/// The pointer must be returned to Rust and reconstituted using | ||
/// `from_ptr` to be properly deallocated. Specifically, one |
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.
Should say from_raw
here.
r=me with the docs updated |
This commit renames the `CString::{into_ptr, from_ptr}` methods to `into_raw` and `from_raw` to mirror the corresponding methods on `Box` and the naming of "raw" for `from_raw_parts` on slices and vectors. cc rust-lang#27769
alexcrichton
force-pushed
the
rename-cstring-raw
branch
from
August 18, 2015 16:12
fcc2f41
to
3cf9e10
Compare
bors
added a commit
that referenced
this pull request
Aug 18, 2015
This commit renames the `CString::{into_ptr, from_ptr}` methods to `into_raw` and `from_raw` to mirror the corresponding methods on `Box` and the naming of "raw" for `from_raw_parts` on slices and vectors. cc #27769
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit renames the
CString::{into_ptr, from_ptr}
methods tointo_raw
and
from_raw
to mirror the corresponding methods onBox
and the naming of"raw" for
from_raw_parts
on slices and vectors.cc #27769