From 582c613be80f7b308972290773b23cac39c4b7d7 Mon Sep 17 00:00:00 2001 From: Amanda Stjerna Date: Fri, 17 May 2024 15:12:31 +0200 Subject: Formatting, weird because I just did that --- compiler/rustc_data_structures/src/graph/scc/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_data_structures/src') diff --git a/compiler/rustc_data_structures/src/graph/scc/mod.rs b/compiler/rustc_data_structures/src/graph/scc/mod.rs index 1426aa2baa4..e7ec2f97505 100644 --- a/compiler/rustc_data_structures/src/graph/scc/mod.rs +++ b/compiler/rustc_data_structures/src/graph/scc/mod.rs @@ -396,7 +396,9 @@ where loop { debug!("find_state(r = {node:?} in state {:?})", self.node_states[node]); match self.node_states[node] { - s @ (NodeState::NotVisited | NodeState::BeingVisited{..} | NodeState::InCycle { .. }) => break s, + s @ (NodeState::NotVisited + | NodeState::BeingVisited { .. } + | NodeState::InCycle { .. }) => break s, NodeState::InCycleWith { parent } => { // We test this, to be extremely sure that we never // ever break our termination condition for the @@ -409,7 +411,6 @@ where previous_node = node; node = parent; } - } } }; -- cgit 1.4.1-3-g733a5