@@ -1765,6 +1765,7 @@ impl<T> *const [T] {
17651765#[ stable( feature = "rust1" , since = "1.0.0" ) ]
17661766impl < T : ?Sized > PartialEq for * const T {
17671767 #[ inline]
1768+ #[ cfg_attr( not( bootstrap) , allow( ambiguous_wide_pointer_comparisons) ) ]
17681769 fn eq ( & self , other : & * const T ) -> bool {
17691770 * self == * other
17701771 }
@@ -1777,6 +1778,7 @@ impl<T: ?Sized> Eq for *const T {}
17771778#[ stable( feature = "rust1" , since = "1.0.0" ) ]
17781779impl < T : ?Sized > Ord for * const T {
17791780 #[ inline]
1781+ #[ cfg_attr( not( bootstrap) , allow( ambiguous_wide_pointer_comparisons) ) ]
17801782 fn cmp ( & self , other : & * const T ) -> Ordering {
17811783 if self < other {
17821784 Less
@@ -1796,21 +1798,25 @@ impl<T: ?Sized> PartialOrd for *const T {
17961798 }
17971799
17981800 #[ inline]
1801+ #[ cfg_attr( not( bootstrap) , allow( ambiguous_wide_pointer_comparisons) ) ]
17991802 fn lt ( & self , other : & * const T ) -> bool {
18001803 * self < * other
18011804 }
18021805
18031806 #[ inline]
1807+ #[ cfg_attr( not( bootstrap) , allow( ambiguous_wide_pointer_comparisons) ) ]
18041808 fn le ( & self , other : & * const T ) -> bool {
18051809 * self <= * other
18061810 }
18071811
18081812 #[ inline]
1813+ #[ cfg_attr( not( bootstrap) , allow( ambiguous_wide_pointer_comparisons) ) ]
18091814 fn gt ( & self , other : & * const T ) -> bool {
18101815 * self > * other
18111816 }
18121817
18131818 #[ inline]
1819+ #[ cfg_attr( not( bootstrap) , allow( ambiguous_wide_pointer_comparisons) ) ]
18141820 fn ge ( & self , other : & * const T ) -> bool {
18151821 * self >= * other
18161822 }
0 commit comments