Skip to content

Document with_added_extension edge cases - #158051

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Timmmm:patch-1
Jun 18, 2026
Merged

Document with_added_extension edge cases#158051
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Timmmm:patch-1

Conversation

@Timmmm

@Timmmm Timmmm commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Clarified how with_added_extension deals with the return value from add_extension. I added some "interesting" examples to illustrate.

IMO this function should have returned Result but unfortunately the discussion about that was kind of ignored. :-/ We can at least document it well.

No AI was used to make this change.

Clarified how `with_added_extension` deals with the return value from `add_extension`. I added some "interesting" examples to illustrate.
@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 Jun 17, 2026
@rustbot

rustbot commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

r? @jhpratt

rustbot has assigned @jhpratt.
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 12 candidates
  • Random selection from 6 candidates

@jhpratt

jhpratt commented Jun 18, 2026

Copy link
Copy Markdown
Member

Thanks!

@bors r+ rollup

@rust-bors

rust-bors Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 92947b7 has been approved by jhpratt

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 Jun 18, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 18, 2026
Document `with_added_extension` edge cases

Clarified how `with_added_extension` deals with the return value from `add_extension`. I added some "interesting" examples to illustrate.

IMO this function should have returned `Result` but unfortunately the discussion about that was kind of ignored. :-/ We can at least document it well.

No AI was used to make this change.
rust-bors Bot pushed a commit that referenced this pull request Jun 18, 2026
Rollup of 8 pull requests

Successful merges:

 - #158056 (Put internal lints into a single combined pass)
 - #151132 (Take care to use MSG_EOR with SOCK_SEQPACKET sockets)
 - #157644 (wasm32-wasip1-threads: Correct llvm target name)
 - #157912 (stabilize str_from_utf16_endian)
 - #158048 (Revert "add regression test for Redundant memory strores with mut parameters in by-value returns")
 - #158051 (Document `with_added_extension` edge cases)
 - #158054 (fix unresolved import suggestion before outer attributes)
 - #158062 (rustc book: Update wasm32-wasip1-threads's maintainers list)
@rust-bors
rust-bors Bot merged commit a9362ee into rust-lang:main Jun 18, 2026
13 checks passed
@rustbot rustbot added this to the 1.98.0 milestone Jun 18, 2026
rust-timer added a commit that referenced this pull request Jun 18, 2026
Rollup merge of #158051 - Timmmm:patch-1, r=jhpratt

Document `with_added_extension` edge cases

Clarified how `with_added_extension` deals with the return value from `add_extension`. I added some "interesting" examples to illustrate.

IMO this function should have returned `Result` but unfortunately the discussion about that was kind of ignored. :-/ We can at least document it well.

No AI was used to make this change.
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