@@ -165,7 +165,8 @@ fn main_0() -> i32 {
165165 } )
166166 ) ;
167167 assert ! (
168- ( { CmpImpl :: operator_cmp( & c1. as_pointer( ) , c2. as_pointer( ) , ) } ) == std:: cmp:: Ordering :: Less
168+ ( { CmpImpl :: operator_cmp( & c1. as_pointer( ) , c2. as_pointer( ) , ) } )
169+ == ( { ( * libcc2rs:: strong_ordering_less( ) . upgrade( ) . deref( ) ) } )
169170 ) ;
170171 let b1: Value < Both > = Rc :: new ( RefCell :: new ( Both { a : 1 } ) ) ;
171172 let b2: Value < Both > = Rc :: new ( RefCell :: new ( Both { a : 2 } ) ) ;
@@ -187,7 +188,7 @@ fn main_0() -> i32 {
187188 ) ;
188189 assert ! (
189190 ( { OrdOnlyImpl :: operator_cmp( & o2. as_pointer( ) , o1. as_pointer( ) , ) } )
190- == std :: cmp :: Ordering :: Greater
191+ == ( { ( * libcc2rs :: strong_ordering_greater ( ) . upgrade ( ) . deref ( ) ) } )
191192 ) ;
192193 let x1: Value < Outer > = Rc :: new ( RefCell :: new ( Outer {
193194 i : Inner { x : 1 } ,
@@ -208,7 +209,7 @@ fn main_0() -> i32 {
208209 assert ! ( ( { OuterImpl :: operator_eq( & x1. as_pointer( ) , x3. as_pointer( ) , ) } ) ) ;
209210 assert ! (
210211 ( { OuterImpl :: operator_cmp( & x2. as_pointer( ) , x1. as_pointer( ) , ) } )
211- == std :: cmp :: Ordering :: Greater
212+ == ( { ( * libcc2rs :: strong_ordering_greater ( ) . upgrade ( ) . deref ( ) ) } )
212213 ) ;
213214 let s1: Value < Secondary > = Rc :: new ( RefCell :: new ( Secondary { a : 1 } ) ) ;
214215 let s2: Value < Secondary > = Rc :: new ( RefCell :: new ( Secondary { a : 2 } ) ) ;
@@ -229,7 +230,7 @@ fn main_0() -> i32 {
229230 assert ! ( ( { PtrMemberImpl :: operator_eq( & p1. as_pointer( ) , p3. as_pointer( ) , ) } ) ) ;
230231 assert ! (
231232 ( { PtrMemberImpl :: operator_cmp( & p2. as_pointer( ) , p1. as_pointer( ) , ) } )
232- == std :: cmp :: Ordering :: Greater
233+ == ( { ( * libcc2rs :: strong_ordering_greater ( ) . upgrade ( ) . deref ( ) ) } )
233234 ) ;
234235 return 0 ;
235236}
@@ -251,7 +252,7 @@ impl BothImpl for Ptr<Both> {
251252 return ( * cmp. borrow_mut ( ) ) ;
252253 }
253254 }
254- return std :: cmp :: Ordering :: Equal ;
255+ return ( * libcc2rs :: strong_ordering_equal ( ) . upgrade ( ) . deref ( ) ) ;
255256 }
256257}
257258pub trait CmpImpl {
@@ -278,7 +279,7 @@ impl CmpImpl for Ptr<Cmp> {
278279 return ( * cmp. borrow_mut ( ) ) ;
279280 }
280281 }
281- return std :: cmp :: Ordering :: Equal ;
282+ return ( * libcc2rs :: strong_ordering_equal ( ) . upgrade ( ) . deref ( ) ) ;
282283 }
283284 fn operator_eq ( & self , _a0 : Ptr < Cmp > ) -> bool {
284285 return ( { ( * self ) . with ( |__s| __s. a ) } == { _a0. with ( |__s| __s. a ) } )
@@ -309,7 +310,7 @@ impl InnerImpl for Ptr<Inner> {
309310 return ( * cmp. borrow_mut ( ) ) ;
310311 }
311312 }
312- return std :: cmp :: Ordering :: Equal ;
313+ return ( * libcc2rs :: strong_ordering_equal ( ) . upgrade ( ) . deref ( ) ) ;
313314 }
314315 fn operator_eq ( & self , _a0 : Ptr < Inner > ) -> bool {
315316 return ( { ( * self ) . with ( |__s| __s. x ) } == { _a0. with ( |__s| __s. x ) } ) ;
@@ -329,7 +330,7 @@ impl OrdOnlyImpl for Ptr<OrdOnly> {
329330 return ( * cmp. borrow_mut ( ) ) ;
330331 }
331332 }
332- return std :: cmp :: Ordering :: Equal ;
333+ return ( * libcc2rs :: strong_ordering_equal ( ) . upgrade ( ) . deref ( ) ) ;
333334 }
334335}
335336pub trait OuterImpl {
@@ -358,7 +359,7 @@ impl OuterImpl for Ptr<Outer> {
358359 return ( * cmp. borrow_mut ( ) ) ;
359360 }
360361 }
361- return std :: cmp :: Ordering :: Equal ;
362+ return ( * libcc2rs :: strong_ordering_equal ( ) . upgrade ( ) . deref ( ) ) ;
362363 }
363364 fn operator_eq ( & self , _a0 : Ptr < Outer > ) -> bool {
364365 return ( {
@@ -382,7 +383,7 @@ impl PtrMemberImpl for Ptr<PtrMember> {
382383 return ( * cmp. borrow_mut ( ) ) ;
383384 }
384385 }
385- return std :: cmp :: Ordering :: Equal ;
386+ return ( * libcc2rs :: strong_ordering_equal ( ) . upgrade ( ) . deref ( ) ) ;
386387 }
387388 fn operator_eq ( & self , _a0 : Ptr < PtrMember > ) -> bool {
388389 return ( { ( * self ) . with ( |__s| __s. p . clone ( ) ) } == { _a0. with ( |__s| __s. p . clone ( ) ) } ) ;
@@ -415,7 +416,7 @@ impl SecondaryImpl for Ptr<Secondary> {
415416 return ( * cmp. borrow_mut ( ) ) ;
416417 }
417418 }
418- return std :: cmp :: Ordering :: Equal ;
419+ return ( * libcc2rs :: strong_ordering_equal ( ) . upgrade ( ) . deref ( ) ) ;
419420 }
420421 fn operator_lt ( & self , _a0 : Ptr < Secondary > ) -> bool {
421422 return ( {
0 commit comments