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

std: Stabilize some ptr functions #22729

Merged
merged 1 commit into from
Feb 25, 2015

Conversation

alexcrichton
Copy link
Member

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]

@rust-highfive
Copy link
Collaborator

r? @aturon

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

@aturon aturon mentioned this pull request Feb 23, 2015
91 tasks
@alexcrichton alexcrichton force-pushed the ptr-stabilization branch 4 times, most recently from 427e75c to ab45694 Compare February 24, 2015 22:22
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")]
Copy link
Member

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?

Copy link
Member Author

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)]

Copy link
Member

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!

@aturon
Copy link
Member

aturon commented Feb 24, 2015

r=me (feel free to rename the intrinsics or not, doesn't matter)

@alexcrichton
Copy link
Member Author

cc @gankro oh whoops forgot to cc you on opening, curious what you think about this as well

@Gankra
Copy link
Contributor

Gankra commented Feb 24, 2015

On my phone, but what I see looks great! ❤️

@alexcrichton
Copy link
Member Author

@bors: r=aturon ab45694

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 25, 2015
…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]
@bors
Copy link
Contributor

bors commented Feb 25, 2015

⌛ Testing commit ab45694 with merge 36e6aed...

@bors
Copy link
Contributor

bors commented Feb 25, 2015

💔 Test failed - auto-mac-32-opt

@bors bors merged commit ab45694 into rust-lang:master Feb 25, 2015
@alexcrichton alexcrichton deleted the ptr-stabilization branch March 27, 2015 20:42
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.

5 participants