From 84daccc5596f6041a7593856aadd665341a3adb7 Mon Sep 17 00:00:00 2001 From: Leonora Tindall Date: Fri, 11 Sep 2020 16:36:58 -0500 Subject: change the order of type arguments on ControlFlow This allows ControlFlow which is much more ergonomic for common iterator combinator use cases. --- compiler/rustc_data_structures/src/graph/iterate/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/rustc_data_structures') diff --git a/compiler/rustc_data_structures/src/graph/iterate/mod.rs b/compiler/rustc_data_structures/src/graph/iterate/mod.rs index bc3d1ce53ba..c0c3260e2e2 100644 --- a/compiler/rustc_data_structures/src/graph/iterate/mod.rs +++ b/compiler/rustc_data_structures/src/graph/iterate/mod.rs @@ -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 = std::ops::ControlFlow<(), T>; +pub use std::ops::ControlFlow; /// The status of a node in the depth-first search. /// -- cgit 1.4.1-3-g733a5