Skip to content

Fix some comments about dataflow analysis.#153432

Open
nnethercote wants to merge 1 commit intorust-lang:mainfrom
nnethercote:dataflow-comments
Open

Fix some comments about dataflow analysis.#153432
nnethercote wants to merge 1 commit intorust-lang:mainfrom
nnethercote:dataflow-comments

Conversation

@nnethercote
Copy link
Contributor

Mostly in the examples in initialized.rs. In particular, the EverInitializedPlaces example currently doesn't cover how it's initialization sites that are tracked, rather than local variables (that's the b_0/b_1 distinction in the example.)

r? @cjgillot

Mostly in the examples in `initialized.rs`. In particular, the
`EverInitializedPlaces` example currently doesn't cover how it's
initialization sites that are tracked, rather than local variables
(that's the `b_0`/`b_1` distinction in the example.)
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 5, 2026
/// Returns basic blocks in a reverse postorder.
///
/// See [`traversal::reverse_postorder`]'s docs to learn what is preorder traversal.
/// See [`traversal::reverse_postorder`]'s docs to learn what is postorder traversal.
Copy link
Contributor

@PatchMixolydic PatchMixolydic Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammatical nit (preexisting):

Suggested change
/// See [`traversal::reverse_postorder`]'s docs to learn what is postorder traversal.
/// See [`traversal::reverse_postorder`]'s docs to learn what postorder traversal is.

Alternatively:

Suggested change
/// See [`traversal::reverse_postorder`]'s docs to learn what is postorder traversal.
/// See [`traversal::reverse_postorder`]'s docs for an explanation of postorder traversal.

Might not be worth fixing, though, at least in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants