@@ -65,50 +65,12 @@ impl<T: Clone> Clone for Box<T> {
65
65
}
66
66
}
67
67
68
- // NOTE(stage0): remove impl after a snapshot
69
- #[ cfg( stage0) ]
70
- impl < T : PartialEq > PartialEq for Box < T > {
71
- #[ inline]
72
- fn eq ( & self , other : & Box < T > ) -> bool { * ( * self ) == * ( * other) }
73
- #[ inline]
74
- fn ne ( & self , other : & Box < T > ) -> bool { * ( * self ) != * ( * other) }
75
- }
76
- // NOTE(stage0): remove impl after a snapshot
77
- #[ cfg( stage0) ]
78
- impl < T : PartialOrd > PartialOrd for Box < T > {
79
- #[ inline]
80
- fn partial_cmp ( & self , other : & Box < T > ) -> Option < Ordering > {
81
- ( * * self ) . partial_cmp ( & * * other)
82
- }
83
- #[ inline]
84
- fn lt ( & self , other : & Box < T > ) -> bool { * ( * self ) < * ( * other) }
85
- #[ inline]
86
- fn le ( & self , other : & Box < T > ) -> bool { * ( * self ) <= * ( * other) }
87
- #[ inline]
88
- fn ge ( & self , other : & Box < T > ) -> bool { * ( * self ) >= * ( * other) }
89
- #[ inline]
90
- fn gt ( & self , other : & Box < T > ) -> bool { * ( * self ) > * ( * other) }
91
- }
92
- // NOTE(stage0): remove impl after a snapshot
93
- #[ cfg( stage0) ]
94
- impl < T : Ord > Ord for Box < T > {
95
- #[ inline]
96
- fn cmp ( & self , other : & Box < T > ) -> Ordering {
97
- ( * * self ) . cmp ( & * * other)
98
- }
99
- }
100
- // NOTE(stage0): remove impl after a snapshot
101
- #[ cfg( stage0) ]
102
- impl < T : Eq > Eq for Box < T > { }
103
-
104
- #[ cfg( not( stage0) ) ] // NOTE(stage0): remove cfg after a snapshot
105
68
impl < Sized ? T : PartialEq > PartialEq for Box < T > {
106
69
#[ inline]
107
70
fn eq ( & self , other : & Box < T > ) -> bool { PartialEq :: eq ( & * * self , & * * other) }
108
71
#[ inline]
109
72
fn ne ( & self , other : & Box < T > ) -> bool { PartialEq :: ne ( & * * self , & * * other) }
110
73
}
111
- #[ cfg( not( stage0) ) ] // NOTE(stage0): remove cfg after a snapshot
112
74
impl < Sized ? T : PartialOrd > PartialOrd for Box < T > {
113
75
#[ inline]
114
76
fn partial_cmp ( & self , other : & Box < T > ) -> Option < Ordering > {
@@ -123,14 +85,12 @@ impl<Sized? T: PartialOrd> PartialOrd for Box<T> {
123
85
#[ inline]
124
86
fn gt ( & self , other : & Box < T > ) -> bool { PartialOrd :: gt ( & * * self , & * * other) }
125
87
}
126
- #[ cfg( not( stage0) ) ] // NOTE(stage0): remove cfg after a snapshot
127
88
impl < Sized ? T : Ord > Ord for Box < T > {
128
89
#[ inline]
129
90
fn cmp ( & self , other : & Box < T > ) -> Ordering {
130
91
Ord :: cmp ( & * * self , & * * other)
131
92
}
132
93
}
133
- #[ cfg( not( stage0) ) ] // NOTE(stage0): remove cfg after a snapshot
134
94
impl < Sized ? T : Eq > Eq for Box < T > { }
135
95
136
96
/// Extension methods for an owning `Any` trait object.
0 commit comments