Get rid of the new const fn version of `distance_between` until docs.rs updates their nightly
@@ -3,22 +3,6 @@ use core::cmp::{Ordering, PartialOrd};
use core::intrinsics;
use core::mem::MaybeUninit;
-#[cfg(not(miri))]
-#[inline(always)]
-pub(crate) const fn distance_between<T>(dest: *const T, origin: *const T) -> usize {
- unsafe {
- if intrinsics::size_of::<T>() > 0 {
- intrinsics::exact_div(
- (dest as usize).wrapping_sub(origin as usize),
- intrinsics::size_of::<T>(),
- )
- } else {
- (dest as usize).wrapping_sub(origin as usize)
- }
- }
-}
-
-#[cfg(miri)]
#[inline(always)]
pub(crate) fn distance_between<T>(dest: *const T, origin: *const T) -> usize {
unsafe {
