@@ -40,15 +40,10 @@ use hash::Hasher;
40
40
/// [ub]: ../../reference/behavior-considered-undefined.html
41
41
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
42
42
#[ rustc_on_unimplemented = "`{Self}` cannot be sent between threads safely" ]
43
- pub unsafe trait Send {
43
+ pub unsafe auto trait Send {
44
44
// empty.
45
45
}
46
46
47
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
48
- #[ allow( unknown_lints) ]
49
- #[ allow( auto_impl) ]
50
- unsafe impl Send for .. { }
51
-
52
47
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
53
48
impl < T : ?Sized > !Send for * const T { }
54
49
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -345,15 +340,10 @@ pub trait Copy : Clone {
345
340
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
346
341
#[ lang = "sync" ]
347
342
#[ rustc_on_unimplemented = "`{Self}` cannot be shared between threads safely" ]
348
- pub unsafe trait Sync {
343
+ pub unsafe auto trait Sync {
349
344
// Empty
350
345
}
351
346
352
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
353
- #[ allow( unknown_lints) ]
354
- #[ allow( auto_impl) ]
355
- unsafe impl Sync for .. { }
356
-
357
347
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
358
348
impl < T : ?Sized > !Sync for * const T { }
359
349
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -563,11 +553,7 @@ mod impls {
563
553
/// This affects, for example, whether a `static` of that type is
564
554
/// placed in read-only static memory or writable static memory.
565
555
#[ lang = "freeze" ]
566
- unsafe trait Freeze { }
567
-
568
- #[ allow( unknown_lints) ]
569
- #[ allow( auto_impl) ]
570
- unsafe impl Freeze for .. { }
556
+ unsafe auto trait Freeze { }
571
557
572
558
impl < T : ?Sized > !Freeze for UnsafeCell < T > { }
573
559
unsafe impl < T : ?Sized > Freeze for PhantomData < T > { }
0 commit comments