@@ -40,15 +40,10 @@ use hash::Hasher;
4040/// [ub]: ../../reference/behavior-considered-undefined.html
4141#[ stable( feature = "rust1" , since = "1.0.0" ) ]
4242#[ rustc_on_unimplemented = "`{Self}` cannot be sent between threads safely" ]
43- pub unsafe trait Send {
43+ pub unsafe auto trait Send {
4444 // empty.
4545}
4646
47- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
48- #[ allow( unknown_lints) ]
49- #[ allow( auto_impl) ]
50- unsafe impl Send for .. { }
51-
5247#[ stable( feature = "rust1" , since = "1.0.0" ) ]
5348impl < T : ?Sized > !Send for * const T { }
5449#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -345,15 +340,10 @@ pub trait Copy : Clone {
345340#[ stable( feature = "rust1" , since = "1.0.0" ) ]
346341#[ lang = "sync" ]
347342#[ rustc_on_unimplemented = "`{Self}` cannot be shared between threads safely" ]
348- pub unsafe trait Sync {
343+ pub unsafe auto trait Sync {
349344 // Empty
350345}
351346
352- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
353- #[ allow( unknown_lints) ]
354- #[ allow( auto_impl) ]
355- unsafe impl Sync for .. { }
356-
357347#[ stable( feature = "rust1" , since = "1.0.0" ) ]
358348impl < T : ?Sized > !Sync for * const T { }
359349#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -563,11 +553,7 @@ mod impls {
563553/// This affects, for example, whether a `static` of that type is
564554/// placed in read-only static memory or writable static memory.
565555#[ 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 { }
571557
572558impl < T : ?Sized > !Freeze for UnsafeCell < T > { }
573559unsafe impl < T : ?Sized > Freeze for PhantomData < T > { }
0 commit comments