diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2020-09-04 16:28:23 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2020-09-04 16:28:23 -0700 |
| commit | 59e37332b0d2d0c5e43bea1184ec0387fb07cc80 (patch) | |
| tree | fc6596cfe62cd26c69ddc37acd580b186690a2c3 /compiler/rustc_data_structures/src/graph/iterate/mod.rs | |
| parent | fac272688e9d561b1fff71621323682d23e4c31d (diff) | |
| download | rust-59e37332b0d2d0c5e43bea1184ec0387fb07cc80.tar.gz rust-59e37332b0d2d0c5e43bea1184ec0387fb07cc80.zip | |
Add `BREAK` too, and improve the comments
Diffstat (limited to 'compiler/rustc_data_structures/src/graph/iterate/mod.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/iterate/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/graph/iterate/mod.rs b/compiler/rustc_data_structures/src/graph/iterate/mod.rs index 8946666d961..bc3d1ce53ba 100644 --- a/compiler/rustc_data_structures/src/graph/iterate/mod.rs +++ b/compiler/rustc_data_structures/src/graph/iterate/mod.rs @@ -286,7 +286,7 @@ where prior_status: Option<NodeStatus>, ) -> ControlFlow<Self::BreakVal> { match prior_status { - Some(NodeStatus::Visited) => ControlFlow::Break(()), + Some(NodeStatus::Visited) => ControlFlow::BREAK, _ => ControlFlow::CONTINUE, } } |
