diff options
| author | bors <bors@rust-lang.org> | 2023-01-23 13:07:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-23 13:07:16 +0000 |
| commit | c8e6a9e8b6251bbc8276cb78cabe1998deecbed7 (patch) | |
| tree | f3fe6240d1392fe749d539d18df606b3b5b719fa /compiler/rustc_data_structures | |
| parent | 5bef91c6e902f3bded724713bd2a64ea50abbd25 (diff) | |
| parent | eae7f947b5394aabaa9ec104ce9bc7a8633badfc (diff) | |
| download | rust-c8e6a9e8b6251bbc8276cb78cabe1998deecbed7.tar.gz rust-c8e6a9e8b6251bbc8276cb78cabe1998deecbed7.zip | |
Auto merge of #107220 - JohnTitor:rollup-5pvuz0z, r=JohnTitor
Rollup of 7 pull requests Successful merges: - #106796 (BPF: Disable atomic CAS) - #106886 (Make stage2 rustdoc and proc-macro-srv disableable in x.py install) - #107101 (Filter param-env predicates for errors before calling `to_opt_poly_trait_pred`) - #107109 (ThinBox: Add intra-doc-links for Metadata) - #107148 (remove error code from `E0789`, add UI test/docs) - #107151 (Instantiate dominators algorithm only once) - #107153 (Consistently use dominates instead of is_dominated_by) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_data_structures')
| -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) } |
