diff options
| author | bors <bors@rust-lang.org> | 2024-11-22 10:54:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-22 10:54:22 +0000 |
| commit | f1e07524047cbc46501a429134e80505a7cd73c0 (patch) | |
| tree | ce29e47e8556899f283271538dc94c2a83b34bc7 /compiler/rustc_index_macros | |
| parent | 2cf7908998e5010ffdedede39f88fa2590e9c830 (diff) | |
| parent | de741d209382c6da125030c52500e57878932bc1 (diff) | |
| download | rust-f1e07524047cbc46501a429134e80505a7cd73c0.tar.gz rust-f1e07524047cbc46501a429134e80505a7cd73c0.zip | |
Auto merge of #130867 - michirakara:steps_between, r=dtolnay
distinguish overflow and unimplemented in Step::steps_between
Diffstat (limited to 'compiler/rustc_index_macros')
| -rw-r--r-- | compiler/rustc_index_macros/src/newtype.rs | 2 |
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), |
