We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3291ae3 commit f2e1357Copy full SHA for f2e1357
src/libcore/ops/range.rs
@@ -360,12 +360,15 @@ impl<T> RangeInclusiveEquality for T {
360
}
361
362
363
-impl<T: PartialOrd> RangeInclusiveEquality for T {
364
- #[inline]
365
- fn canonicalized_is_empty(range: &RangeInclusive<Self>) -> bool {
366
- range.is_empty()
367
- }
368
-}
+// rust-lang/rust#67194: We cannot use this specialized implementation
+// soundly in Rust today.
+//
+// impl<T: PartialOrd> RangeInclusiveEquality for T {
+// #[inline]
+// fn canonicalized_is_empty(range: &RangeInclusive<Self>) -> bool {
369
+// range.is_empty()
370
+// }
371
372
373
#[stable(feature = "inclusive_range", since = "1.26.0")]
374
impl<Idx: PartialEq> PartialEq for RangeInclusive<Idx> {
0 commit comments