about summary refs log tree commit diff
path: root/compiler/rustc_index_macros
diff options
context:
space:
mode:
authormichirakara <michirakara@gmail.com>2024-09-25 18:09:30 -0700
committerDavid Tolnay <dtolnay@gmail.com>2024-11-21 15:49:55 -0800
commitde741d209382c6da125030c52500e57878932bc1 (patch)
treeca78e2739d9c11054397ab8f38eef2fd83df121f /compiler/rustc_index_macros
parentb5117538e934f81e39eb9c326fdcc6574d144cb7 (diff)
downloadrust-de741d209382c6da125030c52500e57878932bc1.tar.gz
rust-de741d209382c6da125030c52500e57878932bc1.zip
distinguish overflow and unimplemented in Step::steps_between
Diffstat (limited to 'compiler/rustc_index_macros')
-rw-r--r--compiler/rustc_index_macros/src/newtype.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_index_macros/src/newtype.rs b/compiler/rustc_index_macros/src/newtype.rs
index 1ac2c44e9dc..67ec7761133 100644
--- a/compiler/rustc_index_macros/src/newtype.rs
+++ b/compiler/rustc_index_macros/src/newtype.rs
@@ -122,7 +122,7 @@ impl Parse for Newtype {
                 #gate_rustc_only
                 impl ::std::iter::Step for #name {
                     #[inline]
-                    fn steps_between(start: &Self, end: &Self) -> Option<usize> {
+                    fn steps_between(start: &Self, end: &Self) -> (usize, Option<usize>) {
                         <usize as ::std::iter::Step>::steps_between(
                             &Self::index(*start),
                             &Self::index(*end),