diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2023-01-23 19:30:02 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-23 19:30:02 +0900 |
| commit | eae7f947b5394aabaa9ec104ce9bc7a8633badfc (patch) | |
| tree | 4ab790486e6daec8263e7d19bfdd2d6cdb2fa5dc /compiler/rustc_data_structures/src | |
| parent | c0f80e71661b02270613254dda588ef737df3a31 (diff) | |
| parent | 955e7fbb16e5015a493427dd2ab54aef97f2e23d (diff) | |
| download | rust-eae7f947b5394aabaa9ec104ce9bc7a8633badfc.tar.gz rust-eae7f947b5394aabaa9ec104ce9bc7a8633badfc.zip | |
Rollup merge of #107153 - tmiasko:dominates, r=oli-obk
Consistently use dominates instead of is_dominated_by There is a number of APIs that answer dominance queries. Previously they were named either "dominates" or "is_dominated_by". Consistently use the "dominates" form. No functional changes.
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/dominators/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/graph/dominators/mod.rs b/compiler/rustc_data_structures/src/graph/dominators/mod.rs index 471457f61b2..6398a501983 100644 --- a/compiler/rustc_data_structures/src/graph/dominators/mod.rs +++ b/compiler/rustc_data_structures/src/graph/dominators/mod.rs @@ -285,7 +285,7 @@ impl<Node: Idx> Dominators<Node> { Iter { dominators: self, node: Some(node) } } - pub fn is_dominated_by(&self, node: Node, dom: Node) -> bool { + pub fn dominates(&self, dom: Node, node: Node) -> bool { // FIXME -- could be optimized by using post-order-rank self.dominators(node).any(|n| n == dom) } |
