Update language item from 'share' to 'sync' #16988

This commit is contained in:
Felix Raimundo 2014-09-05 02:01:56 +02:00
parent e024017f60
commit d0f1c7dfb0
4 changed files with 5 additions and 5 deletions

View file

@ -2221,8 +2221,8 @@ These types help drive the compiler's analysis
: This type does not implement "copy", even if eligible
* `no_send_bound`
: This type does not implement "send", even if eligible
* `no_share_bound`
: This type does not implement "share", even if eligible
* `no_sync_bound`
: This type does not implement "sync", even if eligible
* `eh_personality`
: ___Needs filling in___
* `exchange_free`

View file

@ -271,7 +271,7 @@ pub mod marker {
/// A type which is considered "not sync", meaning that
/// its contents are not threadsafe, hence they cannot be
/// shared between tasks.
#[lang="no_share_bound"]
#[lang="no_sync_bound"]
#[deriving(PartialEq,Clone)]
pub struct NoSync;

View file

@ -296,7 +296,7 @@ lets_do_this! {
NoSendItem, "no_send_bound", no_send_bound;
NoCopyItem, "no_copy_bound", no_copy_bound;
NoSyncItem, "no_share_bound", no_share_bound;
NoSyncItem, "no_sync_bound", no_sync_bound;
ManagedItem, "managed_bound", managed_bound;
IteratorItem, "iterator", iterator;

View file

@ -2575,7 +2575,7 @@ pub fn type_contents(cx: &ctxt, ty: t) -> TypeContents {
tc | TC::Managed
} else if Some(did) == cx.lang_items.no_copy_bound() {
tc | TC::OwnsAffine
} else if Some(did) == cx.lang_items.no_share_bound() {
} else if Some(did) == cx.lang_items.no_sync_bound() {
tc | TC::ReachesNoSync
} else if Some(did) == cx.lang_items.unsafe_type() {
// FIXME(#13231): This shouldn't be needed after