Skip to content

BufReader: Clarify comment that makes a subtly wrong implication.#155316

Open
briansmith wants to merge 1 commit intorust-lang:mainfrom
briansmith:b/bufreader-filled-comment
Open

BufReader: Clarify comment that makes a subtly wrong implication.#155316
briansmith wants to merge 1 commit intorust-lang:mainfrom
briansmith:b/bufreader-filled-comment

Conversation

@briansmith
Copy link
Copy Markdown
Contributor

The implication is that only fill_buf writes to filled, but that isn't true.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Apr 14, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 14, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 8 candidates

Copy link
Copy Markdown
Member

@Mark-Simulacrum Mark-Simulacrum left a comment

Choose a reason for hiding this comment

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

r=me with or without extra corrections

View changes since this review

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we reword the phrasing here to reflect this is a bool and so "same as filled" does not make much sense?

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 26, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 26, 2026

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Apr 26, 2026
@briansmith briansmith force-pushed the b/bufreader-filled-comment branch from b949ca0 to 3362bf1 Compare April 27, 2026 01:55
@rustbot

This comment has been minimized.

@rust-bors

This comment has been minimized.

The comment for `filled` implies that only `fill_buf` writes to
`filled`, but that isn't true.
@briansmith briansmith force-pushed the b/bufreader-filled-comment branch from 3362bf1 to de942d9 Compare May 2, 2026 19:01
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 2, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

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

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants