about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/graph
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2023-01-17 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2023-01-17 22:00:41 +0100
commit7fe68571fa22d6504b3c14303cc4389cd5a92a24 (patch)
treed643d4d704443a72193ec60792c7a5d8a6c0ac9e /compiler/rustc_data_structures/src/graph
parent159ba8a92c9e2fa4121f106176309521f4af87e9 (diff)
downloadrust-7fe68571fa22d6504b3c14303cc4389cd5a92a24.tar.gz
rust-7fe68571fa22d6504b3c14303cc4389cd5a92a24.zip
Lazy dominator tree construction in borrowck
Motivated by the observation that sometimes constructed dominator tree
was never queried.
Diffstat (limited to 'compiler/rustc_data_structures/src/graph')
-rw-r--r--compiler/rustc_data_structures/src/graph/dominators/mod.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_data_structures/src/graph/dominators/mod.rs b/compiler/rustc_data_structures/src/graph/dominators/mod.rs
index ea2a4388b92..434291e8374 100644
--- a/compiler/rustc_data_structures/src/graph/dominators/mod.rs
+++ b/compiler/rustc_data_structures/src/graph/dominators/mod.rs
@@ -268,10 +268,6 @@ pub struct Dominators<N: Idx> {
 }
 
 impl<Node: Idx> Dominators<Node> {
-    pub fn dummy() -> Self {
-        Self { post_order_rank: IndexVec::new(), immediate_dominators: IndexVec::new() }
-    }
-
     pub fn is_reachable(&self, node: Node) -> bool {
         self.immediate_dominators[node].is_some()
     }