about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-01-04 13:03:29 -0500
committerSteve Klabnik <steve@steveklabnik.com>2016-01-04 13:03:29 -0500
commitff3ebfa7b9ba4223449cbe3fd2eba4e339aace5c (patch)
treeab3760c8c1b3174a465bc49e61ea0014c63c2f7c /src
parent191ff2d8fd57a8238d85302a8f06e2bd11b2f6d2 (diff)
downloadrust-ff3ebfa7b9ba4223449cbe3fd2eba4e339aace5c.tar.gz
rust-ff3ebfa7b9ba4223449cbe3fd2eba4e339aace5c.zip
Mention that Sync/Send are automatically derived
Fixes #28581
Diffstat (limited to 'src')
-rw-r--r--src/libcore/marker.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs
index b584e59a825..65ddae51b98 100644
--- a/src/libcore/marker.rs
+++ b/src/libcore/marker.rs
@@ -24,6 +24,8 @@ use hash::Hash;
 use hash::Hasher;
 
 /// Types that can be transferred across thread boundaries.
+///
+/// This trait is automatically derived when the compiler determines it's appropriate.
 #[stable(feature = "rust1", since = "1.0.0")]
 #[lang = "send"]
 #[rustc_on_unimplemented = "`{Self}` cannot be sent between threads safely"]
@@ -219,6 +221,8 @@ pub trait Copy : Clone {
 /// wrapper around the value(s) which can be mutated when behind a `&`
 /// reference; not doing this is undefined behavior (for example,
 /// `transmute`-ing from `&T` to `&mut T` is invalid).
+///
+/// This trait is automatically derived when the compiler determines it's appropriate.
 #[stable(feature = "rust1", since = "1.0.0")]
 #[lang = "sync"]
 #[rustc_on_unimplemented = "`{Self}` cannot be shared between threads safely"]