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

Rename Share to Sync #16285

Closed
wants to merge 1 commit into from
Closed

Conversation

alexcrichton
Copy link
Member

This leaves the Share trait at std::kinds via a #[deprecated] pub use
statement, but the NoShare struct is no longer part of std::kinds::marker
due to #12660 (the build cannot bootstrap otherwise).

All code referencing the Share trait should now reference the Sync trait,
and all code referencing the NoShare type should now reference the NoSync
type. The functionality and meaning of this trait have not changed, only the
naming.

Closes #16281
[breaking-change]

@@ -1804,7 +1804,7 @@ def_type_content_sets!(
ReachesBorrowed = 0b0000_0010__0000_0000__0000,
// ReachesManaged /* see [1] below */ = 0b0000_0100__0000_0000__0000,
ReachesMutable = 0b0000_1000__0000_0000__0000,
ReachesNoShare = 0b0001_0000__0000_0000__0000,
ReachesNoSync = 0b0001_0000__0000_0000__0000,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The = should be moved one space right.

@huonw
Copy link
Member

huonw commented Aug 7, 2014

r=me with the minor realignment.

This leaves the `Share` trait at `std::kinds` via a `#[deprecated]` `pub use`
statement, but the `NoShare` struct is no longer part of `std::kinds::marker`
due to rust-lang#12660 (the build cannot bootstrap otherwise).

All code referencing the `Share` trait should now reference the `Sync` trait,
and all code referencing the `NoShare` type should now reference the `NoSync`
type. The functionality and meaning of this trait have not changed, only the
naming.

Closes rust-lang#16281
[breaking-change]
bors added a commit that referenced this pull request Aug 8, 2014
This leaves the `Share` trait at `std::kinds` via a `#[deprecated]` `pub use`
statement, but the `NoShare` struct is no longer part of `std::kinds::marker`
due to #12660 (the build cannot bootstrap otherwise).

All code referencing the `Share` trait should now reference the `Sync` trait,
and all code referencing the `NoShare` type should now reference the `NoSync`
type. The functionality and meaning of this trait have not changed, only the
naming.

Closes #16281
[breaking-change]
@bors bors closed this Aug 8, 2014
@alexcrichton alexcrichton deleted the rename-share branch August 16, 2014 05:18
@@ -296,7 +296,7 @@ lets_do_this! {

NoSendItem, "no_send_bound", no_send_bound;
NoCopyItem, "no_copy_bound", no_copy_bound;
NoShareItem, "no_share_bound", no_share_bound;
NoSyncItem, "no_share_bound", no_share_bound;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no_share_bound wasn't updated. See #16780 which may be a mistake.

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 8, 2024
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.

Rename Share to Sync
4 participants