about summary refs log tree commit diff
path: root/compiler/rustc_data_structures
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-11 07:50:02 +0000
committerbors <bors@rust-lang.org>2021-02-11 07:50:02 +0000
commit2918062d1d94b65dfd53d265e957d86fcb8bfdbd (patch)
treec15518caae7def59959ca351dac2fb5c5606eea0 /compiler/rustc_data_structures
parent1efd8049837aec86f21da1486e8a459a7efd7806 (diff)
parent3c1d792f498ae40eb759d4554540a94612a3df55 (diff)
downloadrust-2918062d1d94b65dfd53d265e957d86fcb8bfdbd.tar.gz
rust-2918062d1d94b65dfd53d265e957d86fcb8bfdbd.zip
Auto merge of #81129 - bugadani:lighter-move-errors, r=petrochenkov
Borrowck: don't calculate unused info when reporting move errors
Diffstat (limited to 'compiler/rustc_data_structures')
-rw-r--r--compiler/rustc_data_structures/src/graph/dominators/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/graph/dominators/mod.rs b/compiler/rustc_data_structures/src/graph/dominators/mod.rs
index ad62e3c9fc8..1cd170599ba 100644
--- a/compiler/rustc_data_structures/src/graph/dominators/mod.rs
+++ b/compiler/rustc_data_structures/src/graph/dominators/mod.rs
@@ -85,6 +85,10 @@ 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()
     }