11#![ feature(
2- no_core, lang_items, intrinsics, unboxed_closures, extern_types,
3- decl_macro, rustc_attrs, transparent_unions, auto_traits, freeze_impls,
2+ no_core,
3+ lang_items,
4+ intrinsics,
5+ unboxed_closures,
6+ extern_types,
7+ decl_macro,
8+ rustc_attrs,
9+ transparent_unions,
10+ auto_traits,
11+ freeze_impls,
412 thread_local
513) ]
614#![ no_core]
@@ -35,13 +43,13 @@ impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*mut U> for *mut T {}
3543pub trait DispatchFromDyn < T > { }
3644
3745// &T -> &U
38- impl < ' a , T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < & ' a U > for & ' a T { }
46+ impl < ' a , T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < & ' a U > for & ' a T { }
3947// &mut T -> &mut U
40- impl < ' a , T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < & ' a mut U > for & ' a mut T { }
48+ impl < ' a , T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < & ' a mut U > for & ' a mut T { }
4149// *const T -> *const U
42- impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < * const U > for * const T { }
50+ impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < * const U > for * const T { }
4351// *mut T -> *mut U
44- impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < * mut U > for * mut T { }
52+ impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < * mut U > for * mut T { }
4553impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < Box < U , ( ) > > for Box < T , ( ) > { }
4654
4755#[ lang = "legacy_receiver" ]
@@ -52,8 +60,7 @@ impl<T: ?Sized> LegacyReceiver for &mut T {}
5260impl < T : ?Sized , A : Allocator > LegacyReceiver for Box < T , A > { }
5361
5462#[ lang = "receiver" ]
55- trait Receiver {
56- }
63+ trait Receiver { }
5764
5865#[ lang = "copy" ]
5966pub trait Copy { }
@@ -67,10 +74,13 @@ impl Copy for u16 {}
6774impl Copy for u32 { }
6875impl Copy for u64 { }
6976impl Copy for usize { }
77+ impl Copy for u128 { }
7078impl Copy for i8 { }
7179impl Copy for i16 { }
7280impl Copy for i32 { }
81+ impl Copy for i64 { }
7382impl Copy for isize { }
83+ impl Copy for i128 { }
7484impl Copy for f32 { }
7585impl Copy for f64 { }
7686impl Copy for char { }
@@ -336,7 +346,6 @@ impl PartialEq for u32 {
336346 }
337347}
338348
339-
340349impl PartialEq for u64 {
341350 fn eq ( & self , other : & u64 ) -> bool {
342351 ( * self ) == ( * other)
@@ -523,7 +532,11 @@ fn panic_in_cleanup() -> ! {
523532#[ track_caller]
524533fn panic_bounds_check ( index : usize , len : usize ) -> ! {
525534 unsafe {
526- libc:: printf ( "index out of bounds: the len is %d but the index is %d\n \0 " as * const str as * const i8 , len, index) ;
535+ libc:: printf (
536+ "index out of bounds: the len is %d but the index is %d\n \0 " as * const str as * const i8 ,
537+ len,
538+ index,
539+ ) ;
527540 intrinsics:: abort ( ) ;
528541 }
529542}
@@ -551,8 +564,7 @@ pub trait Deref {
551564 fn deref ( & self ) -> & Self :: Target ;
552565}
553566
554- pub trait Allocator {
555- }
567+ pub trait Allocator { }
556568
557569impl Allocator for ( ) { }
558570
@@ -634,6 +646,8 @@ pub union MaybeUninit<T> {
634646}
635647
636648pub mod intrinsics {
649+ #[ rustc_intrinsic]
650+ pub const fn black_box < T > ( _dummy : T ) -> T ;
637651 #[ rustc_intrinsic]
638652 pub fn abort ( ) -> !;
639653 #[ rustc_intrinsic]
@@ -711,19 +725,27 @@ pub struct VaList<'a>(&'a mut VaListImpl);
711725
712726#[ rustc_builtin_macro]
713727#[ rustc_macro_transparency = "semitransparent" ]
714- pub macro stringify( $( $t: tt) * ) { /* compiler built-in */ }
728+ pub macro stringify( $( $t: tt) * ) {
729+ /* compiler built-in */
730+ }
715731
716732#[ rustc_builtin_macro]
717733#[ rustc_macro_transparency = "semitransparent" ]
718- pub macro file ( ) { /* compiler built-in */ }
734+ pub macro file ( ) {
735+ /* compiler built-in */
736+ }
719737
720738#[ rustc_builtin_macro]
721739#[ rustc_macro_transparency = "semitransparent" ]
722- pub macro line ( ) { /* compiler built-in */ }
740+ pub macro line ( ) {
741+ /* compiler built-in */
742+ }
723743
724744#[ rustc_builtin_macro]
725745#[ rustc_macro_transparency = "semitransparent" ]
726- pub macro cfg ( ) { /* compiler built-in */ }
746+ pub macro cfg ( ) {
747+ /* compiler built-in */
748+ }
727749
728750pub static A_STATIC : u8 = 42 ;
729751
0 commit comments