about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/graph/iterate/mod.rs
diff options
context:
space:
mode:
authorLeonora Tindall <nora@nora.codes>2020-09-11 16:36:58 -0500
committerScott McMurray <scottmcm@users.noreply.github.com>2020-10-22 17:26:48 -0700
commit84daccc5596f6041a7593856aadd665341a3adb7 (patch)
tree63869c0129d7255f4d899e57608bbd9d2818958b /compiler/rustc_data_structures/src/graph/iterate/mod.rs
parenta9cd294cf2775441e713c7ee2918b728733b99f5 (diff)
downloadrust-84daccc5596f6041a7593856aadd665341a3adb7.tar.gz
rust-84daccc5596f6041a7593856aadd665341a3adb7.zip
change the order of type arguments on ControlFlow
This allows ControlFlow<BreakType> which is much more ergonomic for
common iterator combinator use cases.
Diffstat (limited to 'compiler/rustc_data_structures/src/graph/iterate/mod.rs')
-rw-r--r--compiler/rustc_data_structures/src/graph/iterate/mod.rs3
1 files changed, 1 insertions, 2 deletions
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<T> = std::ops::ControlFlow<(), T>;
+pub use std::ops::ControlFlow;
 
 /// The status of a node in the depth-first search.
 ///