about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-08-05 16:40:04 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-08-07 08:54:38 -0700
commit1f760d5d1a448c08ff4b66cfa8d35d39a5d667c0 (patch)
tree9befa0d5628cafad50e44dbc28e494dbf3b45487 /src/libstd
parentb09a02b41588b2348fcce89c37c4a2cdc614d350 (diff)
downloadrust-1f760d5d1a448c08ff4b66cfa8d35d39a5d667c0.tar.gz
rust-1f760d5d1a448c08ff4b66cfa8d35d39a5d667c0.zip
Rename `Share` to `Sync`
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]
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/prelude.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/prelude.rs b/src/libstd/prelude.rs
index 96d5c0785f4..aa407ce8e0c 100644
--- a/src/libstd/prelude.rs
+++ b/src/libstd/prelude.rs
@@ -40,7 +40,7 @@
 #![experimental]
 
 // Reexported core operators
-#[doc(no_inline)] pub use kinds::{Copy, Send, Sized, Share};
+#[doc(no_inline)] pub use kinds::{Copy, Send, Sized, Sync};
 #[doc(no_inline)] pub use ops::{Add, Sub, Mul, Div, Rem, Neg, Not};
 #[doc(no_inline)] pub use ops::{BitAnd, BitOr, BitXor};
 #[doc(no_inline)] pub use ops::{Drop, Deref, DerefMut};