From de741d209382c6da125030c52500e57878932bc1 Mon Sep 17 00:00:00 2001 From: michirakara Date: Wed, 25 Sep 2024 18:09:30 -0700 Subject: distinguish overflow and unimplemented in Step::steps_between --- compiler/rustc_abi/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_abi/src/lib.rs') diff --git a/compiler/rustc_abi/src/lib.rs b/compiler/rustc_abi/src/lib.rs index fa7c98a7fa0..73142986673 100644 --- a/compiler/rustc_abi/src/lib.rs +++ b/compiler/rustc_abi/src/lib.rs @@ -624,7 +624,7 @@ impl AddAssign for Size { #[cfg(feature = "nightly")] impl Step for Size { #[inline] - fn steps_between(start: &Self, end: &Self) -> Option { + fn steps_between(start: &Self, end: &Self) -> (usize, Option) { u64::steps_between(&start.bytes(), &end.bytes()) } -- cgit 1.4.1-3-g733a5