diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-05-03 18:39:21 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-12-31 00:37:45 +0000 |
| commit | f83468c89b706e686ff2d991299789050ea493de (patch) | |
| tree | a00827909d36f72e338f9dacf78c8fd9cc15a1bd /compiler/rustc_data_structures/src/graph | |
| parent | c2354aabeaac01f1530b4439eb2339b1c15aceb4 (diff) | |
| download | rust-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.rs | 1 |
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(), |
