Skip to content

Commit 4b69291

Browse files
committed
Expand upper bounds on RangeBounds impls
1 parent 0b36e9d commit 4b69291

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/ops/range.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ impl<'a, T: ?Sized + 'a> RangeBounds<T> for (Bound<&'a T>, Bound<&'a T>) {
884884
}
885885

886886
#[stable(feature = "collections_range", since = "1.28.0")]
887-
impl<T> RangeBounds<T> for RangeFrom<&T> {
887+
impl<T: ?Sized> RangeBounds<T> for RangeFrom<&T> {
888888
fn start_bound(&self) -> Bound<&T> {
889889
Included(self.start)
890890
}
@@ -894,7 +894,7 @@ impl<T> RangeBounds<T> for RangeFrom<&T> {
894894
}
895895

896896
#[stable(feature = "collections_range", since = "1.28.0")]
897-
impl<T> RangeBounds<T> for RangeTo<&T> {
897+
impl<T: ?Sized> RangeBounds<T> for RangeTo<&T> {
898898
fn start_bound(&self) -> Bound<&T> {
899899
Unbounded
900900
}
@@ -904,7 +904,7 @@ impl<T> RangeBounds<T> for RangeTo<&T> {
904904
}
905905

906906
#[stable(feature = "collections_range", since = "1.28.0")]
907-
impl<T> RangeBounds<T> for Range<&T> {
907+
impl<T: ?Sized> RangeBounds<T> for Range<&T> {
908908
fn start_bound(&self) -> Bound<&T> {
909909
Included(self.start)
910910
}

0 commit comments

Comments
 (0)