From 4bbdb64016a0a7e1713d7c35b40ed931a47e4d8c Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Wed, 17 May 2023 10:29:12 +0000 Subject: [PATCH] Typo. --- compiler/rustc_data_structures/src/graph/dominators/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_data_structures/src/graph/dominators/mod.rs b/compiler/rustc_data_structures/src/graph/dominators/mod.rs index 5c5c803cc06..2112b7bcbe3 100644 --- a/compiler/rustc_data_structures/src/graph/dominators/mod.rs +++ b/compiler/rustc_data_structures/src/graph/dominators/mod.rs @@ -398,7 +398,7 @@ pub fn dominators(tree: &DominatorTree) -> Dominators { let DominatorTree { start_node, ref immediate_dominators, post_order_rank: _ } = *tree; // Transpose the dominator tree edges, so that child nodes of vertex v are stored in - // node[edges[v].start..edges[y].end]. + // node[edges[v].start..edges[v].end]. let mut edges: IndexVec> = IndexVec::from_elem(0..0, immediate_dominators); for &idom in immediate_dominators.iter() {