Constify RangeBounds, RangeX::contains and RangeX::is_empty.
This commit is contained in:
@@ -1491,9 +1491,10 @@ mod impls {
|
||||
}
|
||||
}
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<A: ?Sized, B: ?Sized> PartialOrd<&B> for &A
|
||||
#[rustc_const_unstable(feature = "const_cmp", issue = "92391")]
|
||||
impl<A: ?Sized, B: ?Sized> const PartialOrd<&B> for &A
|
||||
where
|
||||
A: PartialOrd<B>,
|
||||
A: ~const PartialOrd<B>,
|
||||
{
|
||||
#[inline]
|
||||
fn partial_cmp(&self, other: &&B) -> Option<Ordering> {
|
||||
|
||||
Reference in New Issue
Block a user