File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ use hash::Hash;
24
24
use hash:: Hasher ;
25
25
26
26
/// Types that can be transferred across thread boundaries.
27
+ ///
28
+ /// This trait is automatically derived when the compiler determines it's appropriate.
27
29
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
28
30
#[ lang = "send" ]
29
31
#[ rustc_on_unimplemented = "`{Self}` cannot be sent between threads safely" ]
@@ -219,6 +221,8 @@ pub trait Copy : Clone {
219
221
/// wrapper around the value(s) which can be mutated when behind a `&`
220
222
/// reference; not doing this is undefined behavior (for example,
221
223
/// `transmute`-ing from `&T` to `&mut T` is invalid).
224
+ ///
225
+ /// This trait is automatically derived when the compiler determines it's appropriate.
222
226
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
223
227
#[ lang = "sync" ]
224
228
#[ rustc_on_unimplemented = "`{Self}` cannot be shared between threads safely" ]
You can’t perform that action at this time.
0 commit comments