@@ -57,14 +57,14 @@ pub struct anon_0 {
5757 __bytes : Value < Box < [ u8 ] > > ,
5858}
5959impl anon_0 {
60- pub fn a ( & self ) -> Ptr < shape_a > {
61- ( self . __bytes . as_pointer ( ) as Ptr < u8 > ) . reinterpret_cast ( )
60+ pub fn a ( this : Ptr < Self > ) -> Ptr < shape_a > {
61+ this . reinterpret_cast ( )
6262 }
63- pub fn b ( & self ) -> Ptr < shape_b > {
64- ( self . __bytes . as_pointer ( ) as Ptr < u8 > ) . reinterpret_cast ( )
63+ pub fn b ( this : Ptr < Self > ) -> Ptr < shape_b > {
64+ this . reinterpret_cast ( )
6565 }
66- pub fn raw_ ( & self ) -> Ptr < i8 > {
67- ( self . __bytes . as_pointer ( ) as Ptr < u8 > ) . reinterpret_cast ( )
66+ pub fn raw_ ( this : Ptr < Self > ) -> Ptr < i8 > {
67+ this . reinterpret_cast ( )
6868 }
6969}
7070impl Default for anon_0 {
@@ -95,19 +95,28 @@ fn main_0() -> i32 {
9595 . memset ( ( 0 ) as u8 , 68usize as usize ) ;
9696 ( ( c. as_pointer ( ) ) as Ptr < Container > ) . to_any ( )
9797 } ;
98- field ! ( ( * c . borrow ( ) ) . u . a ( ) , code) . write ( 10_u16 ) ;
98+ field ! ( anon_0 :: a ( field_ptr! ( c . as_pointer ( ) , u ) ) , code) . write ( 10_u16 ) ;
9999 ( * c. borrow_mut ( ) ) . len = ( 28usize as u32 ) ;
100100 field ! (
101- ( ( ( * c. borrow( ) ) . u. a( ) ) . to_any( ) . reinterpret_cast:: <shape_b>( ) ) ,
101+ ( ( anon_0:: a( field_ptr!( c. as_pointer( ) , u) ) )
102+ . to_any( )
103+ . reinterpret_cast:: <shape_b>( ) ) ,
102104 tail
103105 )
104106 . write ( 3735928559_u32 ) ;
105- assert ! ( ( ( ( ( * c. borrow( ) ) . u. b( ) . with( |__s| __s. tail) == 3735928559_u32 ) as i32 ) != 0 ) ) ;
106- assert ! ( ( ( ( ( ( * c. borrow( ) ) . u. b( ) . with( |__s| __s. code) as i32 ) == 10 ) as i32 ) != 0 ) ) ;
107- field ! ( ( * c. borrow( ) ) . u. b( ) , lo) . write ( 8080_u16 ) ;
107+ assert ! (
108+ ( ( ( anon_0:: b( field_ptr!( c. as_pointer( ) , u) ) . with( |__s| __s. tail) == 3735928559_u32 )
109+ as i32 )
110+ != 0 )
111+ ) ;
112+ assert ! (
113+ ( ( ( ( anon_0:: b( field_ptr!( c. as_pointer( ) , u) ) . with( |__s| __s. code) as i32 ) == 10 ) as i32 )
114+ != 0 )
115+ ) ;
116+ field ! ( anon_0:: b( field_ptr!( c. as_pointer( ) , u) ) , lo) . write ( 8080_u16 ) ;
108117 assert ! (
109118 ( ( ( ( ( elem!(
110- ( ( ( ( * c . borrow ( ) ) . u . raw_ ( ) . reinterpret_cast:: <i8 >( ) ) as Ptr <i8 >)
119+ ( ( ( anon_0 :: raw_ ( field_ptr! ( c . as_pointer ( ) , u ) ) . reinterpret_cast:: <i8 >( ) ) as Ptr <i8 >)
111120 . reinterpret_cast:: <u8 >( ) ) ,
112121 2
113122 )
@@ -117,7 +126,7 @@ fn main_0() -> i32 {
117126 ) ;
118127 assert ! (
119128 ( ( ( ( ( elem!(
120- ( ( ( ( * c . borrow ( ) ) . u . raw_ ( ) . reinterpret_cast:: <i8 >( ) ) as Ptr <i8 >)
129+ ( ( ( anon_0 :: raw_ ( field_ptr! ( c . as_pointer ( ) , u ) ) . reinterpret_cast:: <i8 >( ) ) as Ptr <i8 >)
121130 . reinterpret_cast:: <u8 >( ) ) ,
122131 3
123132 )
0 commit comments