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]
@@ -26,6 +34,11 @@ pub trait Unsize<T: ?Sized> {}
2634#[ lang = "coerce_unsized" ]
2735pub trait CoerceUnsized < T > { }
2836
37+ #[ lang = "coerce_pointee_validated" ]
38+ pub trait CoercePointeeValidated {
39+ /* compiler built-in */
40+ }
41+
2942impl < ' a , ' b : ' a , T : ?Sized + Unsize < U > , U : ?Sized > CoerceUnsized < & ' a U > for & ' b T { }
3043impl < ' a , T : ?Sized + Unsize < U > , U : ?Sized > CoerceUnsized < & ' a mut U > for & ' a mut T { }
3144impl < T : ?Sized + Unsize < U > , U : ?Sized > CoerceUnsized < * const U > for * const T { }
@@ -35,13 +48,13 @@ impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*mut U> for *mut T {}
3548pub trait DispatchFromDyn < T > { }
3649
3750// &T -> &U
38- impl < ' a , T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < & ' a U > for & ' a T { }
51+ impl < ' a , T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < & ' a U > for & ' a T { }
3952// &mut T -> &mut U
40- impl < ' a , T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < & ' a mut U > for & ' a mut T { }
53+ impl < ' a , T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < & ' a mut U > for & ' a mut T { }
4154// *const T -> *const U
42- impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < * const U > for * const T { }
55+ impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < * const U > for * const T { }
4356// *mut T -> *mut U
44- impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < * mut U > for * mut T { }
57+ impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < * mut U > for * mut T { }
4558impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < Box < U , ( ) > > for Box < T , ( ) > { }
4659
4760#[ lang = "legacy_receiver" ]
@@ -289,7 +302,6 @@ impl PartialEq for u32 {
289302 }
290303}
291304
292-
293305impl PartialEq for u64 {
294306 fn eq ( & self , other : & u64 ) -> bool {
295307 ( * self ) == ( * other)
@@ -476,7 +488,11 @@ fn panic_in_cleanup() -> ! {
476488#[ track_caller]
477489fn panic_bounds_check ( index : usize , len : usize ) -> ! {
478490 unsafe {
479- 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) ;
491+ libc:: printf (
492+ "index out of bounds: the len is %d but the index is %d\n \0 " as * const str as * const i8 ,
493+ len,
494+ index,
495+ ) ;
480496 intrinsics:: abort ( ) ;
481497 }
482498}
@@ -504,8 +520,7 @@ pub trait Deref {
504520 fn deref ( & self ) -> & Self :: Target ;
505521}
506522
507- pub trait Allocator {
508- }
523+ pub trait Allocator { }
509524
510525impl Allocator for ( ) { }
511526
@@ -699,19 +714,27 @@ pub struct VaList<'a>(&'a mut VaListImpl);
699714
700715#[ rustc_builtin_macro]
701716#[ rustc_macro_transparency = "semitransparent" ]
702- pub macro stringify( $( $t: tt) * ) { /* compiler built-in */ }
717+ pub macro stringify( $( $t: tt) * ) {
718+ /* compiler built-in */
719+ }
703720
704721#[ rustc_builtin_macro]
705722#[ rustc_macro_transparency = "semitransparent" ]
706- pub macro file ( ) { /* compiler built-in */ }
723+ pub macro file ( ) {
724+ /* compiler built-in */
725+ }
707726
708727#[ rustc_builtin_macro]
709728#[ rustc_macro_transparency = "semitransparent" ]
710- pub macro line ( ) { /* compiler built-in */ }
729+ pub macro line ( ) {
730+ /* compiler built-in */
731+ }
711732
712733#[ rustc_builtin_macro]
713734#[ rustc_macro_transparency = "semitransparent" ]
714- pub macro cfg ( ) { /* compiler built-in */ }
735+ pub macro cfg ( ) {
736+ /* compiler built-in */
737+ }
715738
716739pub static A_STATIC : u8 = 42 ;
717740
0 commit comments