1
1
#![ 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,
4
12
thread_local
5
13
) ]
6
14
#![ no_core]
@@ -26,6 +34,11 @@ pub trait Unsize<T: ?Sized> {}
26
34
#[ lang = "coerce_unsized" ]
27
35
pub trait CoerceUnsized < T > { }
28
36
37
+ #[ lang = "coerce_pointee_validated" ]
38
+ pub trait CoercePointeeValidated {
39
+ /* compiler built-in */
40
+ }
41
+
29
42
impl < ' a , ' b : ' a , T : ?Sized + Unsize < U > , U : ?Sized > CoerceUnsized < & ' a U > for & ' b T { }
30
43
impl < ' a , T : ?Sized + Unsize < U > , U : ?Sized > CoerceUnsized < & ' a mut U > for & ' a mut T { }
31
44
impl < 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 {}
35
48
pub trait DispatchFromDyn < T > { }
36
49
37
50
// &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 { }
39
52
// &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 { }
41
54
// *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 { }
43
56
// *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 { }
45
58
impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < Box < U , ( ) > > for Box < T , ( ) > { }
46
59
47
60
#[ lang = "legacy_receiver" ]
@@ -289,7 +302,6 @@ impl PartialEq for u32 {
289
302
}
290
303
}
291
304
292
-
293
305
impl PartialEq for u64 {
294
306
fn eq ( & self , other : & u64 ) -> bool {
295
307
( * self ) == ( * other)
@@ -476,7 +488,11 @@ fn panic_in_cleanup() -> ! {
476
488
#[ track_caller]
477
489
fn panic_bounds_check ( index : usize , len : usize ) -> ! {
478
490
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
+ ) ;
480
496
intrinsics:: abort ( ) ;
481
497
}
482
498
}
@@ -504,8 +520,7 @@ pub trait Deref {
504
520
fn deref ( & self ) -> & Self :: Target ;
505
521
}
506
522
507
- pub trait Allocator {
508
- }
523
+ pub trait Allocator { }
509
524
510
525
impl Allocator for ( ) { }
511
526
@@ -699,19 +714,27 @@ pub struct VaList<'a>(&'a mut VaListImpl);
699
714
700
715
#[ rustc_builtin_macro]
701
716
#[ rustc_macro_transparency = "semitransparent" ]
702
- pub macro stringify( $( $t: tt) * ) { /* compiler built-in */ }
717
+ pub macro stringify( $( $t: tt) * ) {
718
+ /* compiler built-in */
719
+ }
703
720
704
721
#[ rustc_builtin_macro]
705
722
#[ rustc_macro_transparency = "semitransparent" ]
706
- pub macro file ( ) { /* compiler built-in */ }
723
+ pub macro file ( ) {
724
+ /* compiler built-in */
725
+ }
707
726
708
727
#[ rustc_builtin_macro]
709
728
#[ rustc_macro_transparency = "semitransparent" ]
710
- pub macro line ( ) { /* compiler built-in */ }
729
+ pub macro line ( ) {
730
+ /* compiler built-in */
731
+ }
711
732
712
733
#[ rustc_builtin_macro]
713
734
#[ rustc_macro_transparency = "semitransparent" ]
714
- pub macro cfg ( ) { /* compiler built-in */ }
735
+ pub macro cfg ( ) {
736
+ /* compiler built-in */
737
+ }
715
738
716
739
pub static A_STATIC : u8 = 42 ;
717
740
0 commit comments