diff options
| author | bors <bors@rust-lang.org> | 2024-01-06 04:01:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-06 04:01:09 +0000 |
| commit | d62f05b842d94d3bcad4d41d4b81df3949bad7c6 (patch) | |
| tree | 6a788c469a9dfdf2b123ec8992e5c4537eca8d81 /compiler/rustc_data_structures | |
| parent | 5bcd86d89b2b7b6a490f7e075dd4eb346deb5f98 (diff) | |
| parent | 97758611e72d48f9e9e99f241403194e3b0c8b05 (diff) | |
| download | rust-d62f05b842d94d3bcad4d41d4b81df3949bad7c6.tar.gz rust-d62f05b842d94d3bcad4d41d4b81df3949bad7c6.zip | |
Auto merge of #119459 - cjgillot:inline-mir-utils, r=compiler-errors
Inline a few utility functions around MIR Most of them are small enough to benefit from inlining.
Diffstat (limited to 'compiler/rustc_data_structures')
| -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(), |
