Bootstrapping preparation for the library

Since just `ops::Try` will need to change meaning.
This commit is contained in:
Scott McMurray
2021-04-14 16:40:23 -07:00
parent d44f647ffc
commit c10eec3a1c
33 changed files with 123 additions and 104 deletions

View File

@@ -1,7 +1,7 @@
use crate::char;
use crate::convert::TryFrom;
use crate::mem;
use crate::ops::{self, Try};
use crate::ops::{self, TryWhereOutputEquals};
use super::{FusedIterator, TrustedLen, TrustedRandomAccess};
@@ -755,7 +755,7 @@ impl<A: Step> Iterator for ops::RangeInclusive<A> {
where
Self: Sized,
F: FnMut(B, Self::Item) -> R,
R: Try<Ok = B>,
R: TryWhereOutputEquals<B>,
{
if self.is_empty() {
return try { init };
@@ -860,7 +860,7 @@ impl<A: Step> DoubleEndedIterator for ops::RangeInclusive<A> {
where
Self: Sized,
F: FnMut(B, Self::Item) -> R,
R: Try<Ok = B>,
R: TryWhereOutputEquals<B>,
{
if self.is_empty() {
return try { init };