-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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: Stabilize some ptr
functions
#22729
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
427e75c
to
ab45694
Compare
Specifically, the following actions were taken: * The `copy_memory` and `copy_nonoverlapping_memory` functions to drop the `_memory` suffix (as it's implied by the functionality). Both functions are now marked as `#[stable]`. * The `set_memory` function was renamed to `write_bytes` and is now stable. * The `zero_memory` function is now deprecated in favor of `write_bytes` directly. * The `Unique` pointer type is now behind its own feature gate called `unique` to facilitate future stabilization. * All type parameters now are `T: ?Sized` wherever possible and new clauses were added to the `offset` functions to require that the type is sized. [breaking-change]
@@ -293,7 +293,7 @@ extern "rust-intrinsic" { | |||
/// } | |||
/// } | |||
/// ``` | |||
#[unstable(feature = "core")] | |||
#[stable(feature = "rust1", since = "1.0.0")] |
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.
Any reason not to rename these as well?
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.
I felt that intrinsics::copy_memory
was more telling than intrinsics::copy
, but laziness also kicked in as a desire to not deal with #[cfg(stage0)]
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.
Ah yes, the global namespace makes that clarification worthwhile. Carry on!
r=me (feel free to rename the intrinsics or not, doesn't matter) |
cc @gankro oh whoops forgot to cc you on opening, curious what you think about this as well |
On my phone, but what I see looks great! ❤️ |
…turon Specifically, the following actions were takend: * The `copy_memory` and `copy_nonoverlapping_memory` functions to drop the `_memory` suffix (as it's implied by the functionality). Both functions are now marked as `#[stable]`. * The `set_memory` function was renamed to `write_bytes` and is now stable. * The `zero_memory` function is now deprecated in favor of `write_bytes` directly. * The `Unique` pointer type is now behind its own feature gate called `unique` to facilitate future stabilization. [breaking-change]
⌛ Testing commit ab45694 with merge 36e6aed... |
💔 Test failed - auto-mac-32-opt |
Specifically, the following actions were takend:
copy_memory
andcopy_nonoverlapping_memory
functionsto drop the
_memory
suffix (as it's implied by the functionality). Bothfunctions are now marked as
#[stable]
.set_memory
function was renamed towrite_bytes
and is now stable.zero_memory
function is now deprecated in favor ofwrite_bytes
directly.
Unique
pointer type is now behind its own feature gate calledunique
to facilitate future stabilization.
[breaking-change]