@@ -13,12 +13,12 @@ pub struct S {
1313impl std:: cmp:: Ord for S {
1414 fn cmp ( & self , other : & Self ) -> std:: cmp:: Ordering {
1515 {
16- if SImpl :: operator_lt_pconstS_const (
16+ if SImpl :: operator_lt_PtrS_const_const (
1717 & Rc :: new ( RefCell :: new ( S { v : self . v . clone ( ) } ) ) . as_pointer ( ) ,
1818 Rc :: new ( RefCell :: new ( S { v : other. v . clone ( ) } ) ) . as_pointer ( ) ,
1919 ) {
2020 std:: cmp:: Ordering :: Less
21- } else if SImpl :: operator_lt_pconstS_const (
21+ } else if SImpl :: operator_lt_PtrS_const_const (
2222 & Rc :: new ( RefCell :: new ( S { v : other. v . clone ( ) } ) ) . as_pointer ( ) ,
2323 Rc :: new ( RefCell :: new ( S { v : self . v . clone ( ) } ) ) . as_pointer ( ) ,
2424 ) {
@@ -83,18 +83,18 @@ fn main_0() -> i32 {
8383 } ) ) ;
8484 assert ! ( ( { SImpl :: operator_eq( & a. as_pointer( ) , c. as_pointer( ) , ) } ) ) ;
8585 assert ! ( ( { SImpl :: operator_ne( & a. as_pointer( ) , b. as_pointer( ) , ) } ) ) ;
86- assert ! ( ( { SImpl :: operator_lt_pconstS_const ( & a. as_pointer( ) , b. as_pointer( ) , ) } ) ) ;
86+ assert ! ( ( { SImpl :: operator_lt_PtrS_const_const ( & a. as_pointer( ) , b. as_pointer( ) , ) } ) ) ;
8787 assert ! ( ( { SImpl :: operator_gt( & b. as_pointer( ) , a. as_pointer( ) , ) } ) ) ;
8888 assert ! ( ( { SImpl :: operator_le( & a. as_pointer( ) , c. as_pointer( ) , ) } ) ) ;
8989 assert ! ( ( { SImpl :: operator_ge( & a. as_pointer( ) , c. as_pointer( ) , ) } ) ) ;
90- assert ! ( !( { SImpl :: operator_lt_pconstS_const ( & b. as_pointer( ) , a. as_pointer( ) , ) } ) ) ;
90+ assert ! ( !( { SImpl :: operator_lt_PtrS_const_const ( & b. as_pointer( ) , a. as_pointer( ) , ) } ) ) ;
9191 assert ! ( ( { SImpl :: operator_lt_i32_const( & a. as_pointer( ) , 5 , ) } ) ) ;
9292 return 0 ;
9393}
9494pub trait SImpl {
9595 fn operator_eq ( & self , o : Ptr < S > ) -> bool ;
9696 fn operator_ne ( & self , o : Ptr < S > ) -> bool ;
97- fn operator_lt_pconstS_const ( & self , o : Ptr < S > ) -> bool ;
97+ fn operator_lt_PtrS_const_const ( & self , o : Ptr < S > ) -> bool ;
9898 fn operator_gt ( & self , o : Ptr < S > ) -> bool ;
9999 fn operator_le ( & self , o : Ptr < S > ) -> bool ;
100100 fn operator_ge ( & self , o : Ptr < S > ) -> bool ;
@@ -113,7 +113,7 @@ impl SImpl for Ptr<S> {
113113 _lhs != ( * ( * o. upgrade ( ) . deref ( ) ) . v . borrow ( ) )
114114 } ;
115115 }
116- fn operator_lt_pconstS_const ( & self , o : Ptr < S > ) -> bool {
116+ fn operator_lt_PtrS_const_const ( & self , o : Ptr < S > ) -> bool {
117117 return {
118118 let _lhs = ( * ( * ( * self ) . upgrade ( ) . deref ( ) ) . v . borrow ( ) ) ;
119119 _lhs < ( * ( * o. upgrade ( ) . deref ( ) ) . v . borrow ( ) )
0 commit comments