diff --git a/src/libcore/ops/range.rs b/src/libcore/ops/range.rs index d38b35165695c..93904a4f7e407 100644 --- a/src/libcore/ops/range.rs +++ b/src/libcore/ops/range.rs @@ -360,12 +360,15 @@ impl RangeInclusiveEquality for T { } } -impl RangeInclusiveEquality for T { - #[inline] - fn canonicalized_is_empty(range: &RangeInclusive) -> bool { - range.is_empty() - } -} +// rust-lang/rust#67194: We cannot use this specialized implementation +// soundly in Rust today. +// +// impl RangeInclusiveEquality for T { +// #[inline] +// fn canonicalized_is_empty(range: &RangeInclusive) -> bool { +// range.is_empty() +// } +// } #[stable(feature = "inclusive_range", since = "1.26.0")] impl PartialEq for RangeInclusive {