change the order of type arguments on ControlFlow

This allows ControlFlow<BreakType> which is much more ergonomic for
common iterator combinator use cases.
This commit is contained in:
Leonora Tindall 2020-09-11 16:36:58 -05:00 committed by Scott McMurray
parent a9cd294cf2
commit 84daccc559
5 changed files with 18 additions and 25 deletions

View file

@ -87,8 +87,7 @@ where
}
/// Allows searches to terminate early with a value.
// FIXME (#75744): remove the alias once the generics are in a better order and `C=()`.
pub type ControlFlow<T> = std::ops::ControlFlow<(), T>;
pub use std::ops::ControlFlow;
/// The status of a node in the depth-first search.
///