Skip to content

Updates the expect messages in library/std/src/net/udp.rs to follow the style guide. Related issue: #159751 - #160821

Open
jaroslawroszyk wants to merge 1 commit into
rust-lang:mainfrom
jaroslawroszyk:main
Open

Updates the expect messages in library/std/src/net/udp.rs to follow the style guide. Related issue: #159751#160821
jaroslawroszyk wants to merge 1 commit into
rust-lang:mainfrom
jaroslawroszyk:main

Conversation

@jaroslawroszyk

@jaroslawroszyk jaroslawroszyk commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Related issue: #159751

  • 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.

Updates the expect messages in library/std/src/net/udp.rs to follow the style guide.
@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

r? @clarfonthey

rustbot has assigned @clarfonthey.
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 13 candidates
  • Random selection from JohnTitor, Mark-Simulacrum, clarfonthey, nia-e

@rustbot

rustbot commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

⚠️ Warning ⚠️

  • There are issue links (such as #123) in the commit messages of the following commits.
    Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.

@jaroslawroszyk jaroslawroszyk changed the title Updates the expect messages in library/std/src/net/udp.rs to follow the style guide. Updates the expect messages in library/std/src/net/udp.rs to follow the style guide. Related issue: #159751 Aug 9, 2026
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job x86_64-gnu-gcc failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)

Important

For more information how to resolve CI failures of this job, visit this link.

/// let socket = UdpSocket::bind("127.0.0.1:34254").expect("couldn't bind to address");
/// let socket_clone = socket.try_clone().expect("couldn't clone the socket");
/// let socket = UdpSocket::bind("127.0.0.1:34254").expect("bind should succeed");
/// let socket_clone = socket.try_clone().expect("clone should succeed");

@clarfonthey clarfonthey Aug 9, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// let socket_clone = socket.try_clone().expect("clone should succeed");
/// let socket_clone = socket.try_clone().expect("try_clone should succeed");

View changes since the review

@clarfonthey

Copy link
Copy Markdown
Contributor

CI failure appears spurious. If you fix the commit messages to remove the reference to the issue, and also make the minor change I suggest, this looks good to me. Thank you!

(That is, r=me once those are fixed.)

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-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.

4 participants