about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/graph
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-05-03 18:39:21 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-12-31 00:37:45 +0000
commitf83468c89b706e686ff2d991299789050ea493de (patch)
treea00827909d36f72e338f9dacf78c8fd9cc15a1bd /compiler/rustc_data_structures/src/graph
parentc2354aabeaac01f1530b4439eb2339b1c15aceb4 (diff)
downloadrust-f83468c89b706e686ff2d991299789050ea493de.tar.gz
rust-f83468c89b706e686ff2d991299789050ea493de.zip
Inline dominator check.
Diffstat (limited to 'compiler/rustc_data_structures/src/graph')
-rw-r--r--compiler/rustc_data_structures/src/graph/dominators/mod.rs1
1 files changed, 1 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 4b819e1cbd6..a45f1dd72a1 100644
--- a/compiler/rustc_data_structures/src/graph/dominators/mod.rs
+++ b/compiler/rustc_data_structures/src/graph/dominators/mod.rs
@@ -394,6 +394,7 @@ impl<Node: Idx> Dominators<Node> {
     /// # Panics
     ///
     /// Panics if `b` is unreachable.
+    #[inline]
     pub fn dominates(&self, a: Node, b: Node) -> bool {
         match &self.kind {
             Kind::Path => a.index() <= b.index(),