strictly_dominates missing a `=`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
compiler/rustc_data_structures/src/graph/dominators/mod.rs の strictly_dominates の周辺を調べ、その後、compiler/rustc_data_structures/src/graph/dominators/tests.rs にある回帰テストを確認してください。strict_dominance_two_nodes テストで問題を再現し、优势比較が 2 ノードのグラフを正しく処理 있는지、不足している = の動作も含めて検証してください。提案されたテストが、期待される优势セマンティクスを変更せずに通れば、issue は完了とします。
索引モデルが issue の本文から書いたものです。
説明
for this test
#[test]
fn strict_dominance_two_nodes() {
let graph = TestGraph::new(1, &[(1, 0)]);
let d = dominators(&graph);
assert!(d.dominates(1, 0));
assert!(d.strictly_dominates(1, 0));
}
I expected to see this happen: it passes.
Instead, this happened:
running 1 tests
graph::dominators::tests::strict_dominance_two_nodes ... F
failures:
---- graph::dominators::tests::strict_dominance_two_nodes stdout ----
thread 'graph::dominators::tests::strict_dominance_two_nodes' (62833) panicked at compiler/rustc_data_structures/src/graph/dominators/tests.rs:60:5:
assertion failed: d.strictly_dominates(1, 0)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- graph::dominators::tests::strict_dominance_two_nodes stdout end ----
failures:
graph::dominators::tests::strict_dominance_two_nodes
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 119 filtered out; finished in 277.35µs
the fix seems to change to
a.start < b.start && b.finish <= a.finish
Meta
rustc --version --verbose:
<version>
Backtrace
<backtrace>
pointed out by @Natsume-Neko
- 主要言語
- Rust
- スター
- 123k
- フォーク
- 16.6k
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 532
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-lang/rust のほかの issue
-
A-attributes relnotes relnotes-needs-review relnotes-tracking-issue T-compiler T-lang
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
A-run-make C-bug T-bootstrap
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
Tracking issue for release notes of #161531: Remove `T: Send + Sync` bound from `Arc::downcast`オープンrelnotes relnotes-tracking-issue T-libs
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
A-str A-Unicode relnotes relnotes-tracking-issue T-libs
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
Windows `File::set_permissions` silently does nothing when clearing `readonly` leaves `FileAttributes == 0`対応中かも @ChrisDenton が 19 日前に担当しました。 オープンA-filesystem C-bug O-windows T-libs
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug P2
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug core-lang
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Windows microphone listing treats words in a device name as DirectShow labels対応中かも @Sujal-chaudhary が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
clipy-recorder/clipy#447 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
nightly-cleanup
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
max-sixty/worktrunk#4939 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信