Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Read Impl for &Stdin #99153

Merged
merged 3 commits into from
Mar 9, 2024
Merged

Add Read Impl for &Stdin #99153

merged 3 commits into from
Mar 9, 2024

Conversation

Dajamante
Copy link
Contributor

r? @oli-obk
fixes #95622

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @oli-obk (or someone else) soon.

Please see the contribution instructions for more information.

@rustbot rustbot added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jul 11, 2022
@rustbot
Copy link
Collaborator

rustbot commented Jul 11, 2022

Hey! It looks like you've submitted a new PR for the library teams!

If this PR contains changes to any rust-lang/rust public library APIs then please comment with @rustbot label +T-libs-api -T-libs to tag it appropriately. If this PR contains changes to any unstable APIs please edit the PR description to add a link to the relevant API Change Proposal or create one if you haven't already. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.

Examples of T-libs-api changes:

  • Stabilizing library features
  • Introducing insta-stable changes such as new implementations of existing stable traits on existing stable types
  • Introducing new or changing existing unstable library APIs (excluding permanently unstable features / features without a tracking issue)
  • Changing public documentation in ways that create new stability guarantees
  • Changing observable runtime behavior of library APIs

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 11, 2022
@Dajamante
Copy link
Contributor Author

@rustbot label +T-libs-api -T-libs

@rustbot rustbot added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. and removed T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jul 11, 2022
@oli-obk
Copy link
Contributor

oli-obk commented Jul 11, 2022

r? rust-lang/libs-api

@oli-obk
Copy link
Contributor

oli-obk commented Jul 11, 2022

r? @m-ou-se

@rust-highfive rust-highfive assigned m-ou-se and unassigned oli-obk Jul 11, 2022
@JohnCSimon JohnCSimon added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 13, 2022
@JohnCSimon
Copy link
Member

triage:
@m-ou-se this has sat since July - can you post the status of the review?

@Noratrieb Noratrieb removed the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Dec 27, 2022
@anden3 anden3 added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 14, 2023
@Dylan-DPC
Copy link
Member

r? @thomcc

@rustbot rustbot assigned thomcc and unassigned m-ou-se Aug 24, 2023
@thomcc
Copy link
Member

thomcc commented Aug 28, 2023

This needs ACP.

@thomcc thomcc added the S-waiting-on-ACP Status: PR has an ACP and is waiting for the ACP to complete. label Aug 28, 2023
@Ekleog
Copy link

Ekleog commented Jan 24, 2024

If it does, then I think https://std-dev-guide.rust-lang.org/development/feature-lifecycle.html?highlight=acp should be updated? The current documentation seems to indicate that ACP are entirely optional, and are only to avoid working on a PR without it eventually landing (the "Note that an ACP is not strictly required" paragraph in particular).

AFAIU that document's suggestions are that this PR should just go through a T-libs FCP, which seems to be the same understanding as this comment in the related issue (though the process could have changed since)

@dtolnay dtolnay assigned dtolnay and unassigned thomcc Jan 26, 2024
@@ -437,6 +437,28 @@ impl Read for Stdin {
}
}

#[stable(feature = "rust1", since = "1.0.0")]
Copy link
Member

Choose a reason for hiding this comment

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

Please choose some other unique feature name and set the stabilization version to "CURRENT_RUSTC_VERSION".

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 26, 2024
@dtolnay dtolnay added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-ACP Status: PR has an ACP and is waiting for the ACP to complete. labels Feb 23, 2024
@dtolnay dtolnay added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 26, 2024
@dtolnay
Copy link
Member

dtolnay commented Feb 26, 2024

I filled in a feature name to resolve #99153 (review), and an implementation of Read::read_buf which was added in impl Read for Stdin by #108326 after this PR was originally opened.

Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thank you!

@rust-log-analyzer

This comment has been minimized.

@dtolnay
Copy link
Member

dtolnay commented Feb 26, 2024

@bors r+

@apiraino apiraino removed the to-announce Announce this issue on triage meeting label Feb 29, 2024
@Dylan-DPC

This comment was marked as duplicate.

@Dylan-DPC Dylan-DPC closed this Mar 9, 2024
@Dylan-DPC Dylan-DPC reopened this Mar 9, 2024
@Dylan-DPC
Copy link
Member

@bors r=dtolnay

@bors
Copy link
Contributor

bors commented Mar 9, 2024

📌 Commit b18280f has been approved by dtolnay

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 9, 2024
jhpratt added a commit to jhpratt/rust that referenced this pull request Mar 9, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 9, 2024
Rollup of 12 pull requests

Successful merges:

 - rust-lang#99153 (Add Read Impl for &Stdin)
 - rust-lang#112136 (Add std::ffi::c_str module)
 - rust-lang#120504 (Vec::try_with_capacity)
 - rust-lang#121280 (Implement MaybeUninit::fill{,_with,_from})
 - rust-lang#121813 (Misc improvements to non local defs lint implementation)
 - rust-lang#121833 (Suggest correct path in include_bytes!)
 - rust-lang#121860 (Add a tidy check that checks whether the fluent slugs only appear once)
 - rust-lang#122160 (Eagerly translate `HelpUseLatestEdition` in parser diagnostics)
 - rust-lang#122178 (ci: add a runner for vanilla LLVM 18)
 - rust-lang#122186 (Remove a workaround for a bug)
 - rust-lang#122215 (Some tweaks to the parallel query cycle handler)
 - rust-lang#122223 (Fix typo in `VisitorResult`)

r? `@ghost`
`@rustbot` modify labels: rollup
@Nadrieril
Copy link
Member

@bors rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 9, 2024
Rollup of 8 pull requests

Successful merges:

 - rust-lang#99153 (Add Read Impl for &Stdin)
 - rust-lang#114655 (Make `impl<Fd: AsFd>` impl take `?Sized`)
 - rust-lang#120504 (Vec::try_with_capacity)
 - rust-lang#121280 (Implement MaybeUninit::fill{,_with,_from})
 - rust-lang#121403 (impl From<TryReserveError> for io::Error)
 - rust-lang#121526 (on the fly type casting for `build.rustc` and `build.cargo`)
 - rust-lang#121584 (bump itertools to 0.12)
 - rust-lang#121711 (Implement junction_point)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 0a8ea93 into rust-lang:master Mar 9, 2024
22 checks passed
@rustbot rustbot added this to the 1.78.0 milestone Mar 9, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Mar 9, 2024
Rollup merge of rust-lang#99153 - Dajamante:issue/95622, r=dtolnay

Add Read Impl for &Stdin

r? `@oli-obk`
fixes rust-lang#95622
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

impl Read for &Stdin is missing