Skip to content

User facing .expect now follows “expect as precondition" style - #160792

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
TirushOne:issue-159751-fix-tcp-
Aug 9, 2026
Merged

User facing .expect now follows “expect as precondition" style#160792
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
TirushOne:issue-159751-fix-tcp-

Conversation

@TirushOne

Copy link
Copy Markdown
Contributor

Related issue: #159751

Updated .expect error message in std/src/net/tcp.rs to follow “expect as precondition" style.

  • I did not use an LLM to create a change in this PR.
  • I used an LLM to create a change in this PR, and I have explained below how it was used.

@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 Aug 9, 2026
@rustbot

rustbot commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue
Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 13 candidates
  • Random selection from JohnTitor, Mark-Simulacrum, clarfonthey, nia-e

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

📌 Commit efdcd0d has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 Aug 9, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 9, 2026
…=Mark-Simulacrum

User facing .expect now follows “expect as precondition" style

Related issue: rust-lang#159751

Updated .expect error message in std/src/net/tcp.rs to follow “expect as precondition" style.
rust-bors Bot pushed a commit that referenced this pull request Aug 9, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #160782 (rustc_attr_ir: fix up `lang_items` imports)
 - #159746 (stabilize `c_variadic_naked_functions`)
 - #160141 (Refactor tidy detection of stability attribute)
 - #160744 (make more diagnostic structs pub(crate))
 - #160778 (Add regression test for cycle error on guaranteed unsized self type)
 - #160779 (arm64ec: `f128` is supported since LLVM 23)
 - #160781 (Add regression test for save temps ICE on incremental recompile)
 - #160792 (User facing .expect now follows “expect as precondition" style)
 - #160796 (Change .expect message to follow precondition style)
@rust-bors
rust-bors Bot merged commit 140e8bf into rust-lang:main Aug 9, 2026
13 checks passed
@rustbot rustbot added this to the 1.99.0 milestone Aug 9, 2026
rust-timer added a commit that referenced this pull request Aug 9, 2026
Rollup merge of #160792 - TirushOne:issue-159751-fix-tcp-, r=Mark-Simulacrum

User facing .expect now follows “expect as precondition" style

Related issue: #159751

Updated .expect error message in std/src/net/tcp.rs to follow “expect as precondition" style.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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