GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add `str::word_to_titlecase()` to `alloc` by Jules-Bertholet · Pull Request #155705 · rust-lang/rust

Conversation

@Jules-Bertholet

@Jules-Bertholet Jules-Bertholet commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

A small addition to #153892.

Hasn't gone through ACP, so needs libs-API signoff.

@rustbot label A-Unicode T-libs-api

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rustbot rustbot assigned Mark-Simulacrum Apr 23, 2026
@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 23, 2026
@rustbot

rustbot commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

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: libs
  • libs expanded to 6 candidates
  • Random selection from Mark-Simulacrum, jhpratt
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rustbot rustbot added A-Unicode Area: Unicode T-libs-api [DEPRECATED; DO NOT USE] labels Apr 23, 2026
@rust-log-analyzer

This comment has been minimized.

Sign in to view
@Jules-Bertholet
Jules-Bertholet force-pushed the word-to-titlecase branch from 7427361 to 8ab92b6 Compare April 24, 2026 00:17
@rust-log-analyzer

This comment has been minimized.

Sign in to view
@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-t-libs-api [DEPRECATED; DO NOT USE] and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 26, 2026
@Jules-Bertholet
Jules-Bertholet force-pushed the word-to-titlecase branch 2 times, most recently from 2753869 to 3a6aeb6 Compare April 26, 2026 14:55
the8472
the8472 reviewed Apr 28, 2026
View reviewed changes
Comment thread library/alloc/src/str.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@the8472

the8472 commented Apr 28, 2026

Copy link
Copy Markdown
Member

We discussed it during today's libs-api meeting. We didn't do an in-depth review, but we're generally ok with having this on unstable.

Also, the issue title was confusing since it adds a String method, not one on char.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Jules-Bertholet Jules-Bertholet changed the title Add char::word_to_titlecase() to alloc Add str::word_to_titlecase() to alloc Apr 28, 2026
@Jules-Bertholet

Jules-Bertholet commented Apr 28, 2026

Copy link
Copy Markdown
Contributor Author

Also, the issue title was confusing since it adds a String method, not one on char.

🤦 Sorry…

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Jules-Bertholet
Jules-Bertholet force-pushed the word-to-titlecase branch from 3a6aeb6 to 9caa130 Compare April 29, 2026 02:39
@Jules-Bertholet

Jules-Bertholet commented Apr 29, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@rustbot ready
@rustbot label -S-waiting-on-t-libs-api

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-t-libs-api [DEPRECATED; DO NOT USE] labels Apr 29, 2026
@Mark-Simulacrum

Mark-Simulacrum commented May 9, 2026

Copy link
Copy Markdown
Member

@bors squash

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rust-bors

This comment has been minimized.

Sign in to view
@Jules-Bertholet
Add str::word_to_titlecase() to alloc
40da877
* Add `str::word_to_titlecase()` to `alloc`
* Address review comment
@rust-bors

rust-bors Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

🔨 2 commits were squashed into 40da877.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rust-bors
rust-bors Bot force-pushed the word-to-titlecase branch from d0b432b to 40da877 Compare May 9, 2026 17:42
@Mark-Simulacrum

Mark-Simulacrum commented May 9, 2026

Copy link
Copy Markdown
Member

@bors r+

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rust-bors

rust-bors Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 40da877 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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 May 9, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request May 9, 2026
@JonathanBrouwer
Rollup merge of rust-lang#155705 - Jules-Bertholet:word-to-titlecase,…
f15f605
… r=Mark-Simulacrum

Add `str::word_to_titlecase()` to `alloc`

A small addition to rust-lang#153892.

Hasn't gone through ACP, so needs libs-API signoff.

@rustbot label A-Unicode T-libs-api
@JonathanBrouwer JonathanBrouwer mentioned this pull request May 9, 2026
Rollup of 11 pull requests #156371
Closed
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request May 9, 2026
@JonathanBrouwer
Rollup merge of rust-lang#155705 - Jules-Bertholet:word-to-titlecase,…
78bcf61
… r=Mark-Simulacrum

Add `str::word_to_titlecase()` to `alloc`

A small addition to rust-lang#153892.

Hasn't gone through ACP, so needs libs-API signoff.

@rustbot label A-Unicode T-libs-api
@JonathanBrouwer JonathanBrouwer mentioned this pull request May 9, 2026
Rollup of 10 pull requests #156374
Closed
rust-bors Bot pushed a commit that referenced this pull request May 9, 2026
@bors
Auto merge of #156374 - JonathanBrouwer:rollup-Orm2U9C, r=JonathanBro…
d9b9e50
…uwer

Rollup of 10 pull requests

Successful merges:

 - #148214 (Consider `Result<T, Uninhabited>` and `ControlFlow<Uninhabited, T>` to be equivalent to `T` for must use lint)
 - #149362 (Add Command::get_resolved_envs)
 - #155705 (Add `str::word_to_titlecase()` to `alloc`)
 - #155970 (Add mention of sendfile(2) and splice(2) to fs::copy() documentation.)
 - #156006 (Update a bunch of bootstrap dependencies to remove windows-target)
 - #155188 (Add regression test for issue 144329)
 - #155515 (error on empty `export_name`)
 - #155817 (validate `#[link_name = "..."]` & `#[link(name = "...")]` parameters)
 - #156107 (remove turbofish notation + use None / Some instead of Option:: (in match documentation))
 - #156133 (mark some panicking methods around Duration as track_caller)
@matthiaskrgr matthiaskrgr mentioned this pull request May 10, 2026
Rollup of 11 pull requests #156378
Merged
rust-bors Bot pushed a commit that referenced this pull request May 10, 2026
@bors
Auto merge of #156378 - matthiaskrgr:rollup-NO89xfV, r=matthiaskrgr
488aaf6
Rollup of 11 pull requests

Successful merges:

 - #149362 (Add Command::get_resolved_envs)
 - #155705 (Add `str::word_to_titlecase()` to `alloc`)
 - #155970 (Add mention of sendfile(2) and splice(2) to fs::copy() documentation.)
 - #156006 (Update a bunch of bootstrap dependencies to remove windows-target)
 - #156169 (Change `SwitchInt` handling in dataflow analysis.)
 - #155188 (Add regression test for issue 144329)
 - #155515 (error on empty `export_name`)
 - #155817 (validate `#[link_name = "..."]` & `#[link(name = "...")]` parameters)
 - #156107 (remove turbofish notation + use None / Some instead of Option:: (in match documentation))
 - #156133 (mark some panicking methods around Duration as track_caller)
 - #156363 (`rustc_attr_parsing`: add `AcceptContext::expect_string_literal`)
rust-bors Bot pushed a commit that referenced this pull request May 10, 2026
@bors
Auto merge of #156378 - matthiaskrgr:rollup-NO89xfV, r=matthiaskrgr
16efdfa
Rollup of 11 pull requests

Successful merges:

 - #149362 (Add Command::get_resolved_envs)
 - #155705 (Add `str::word_to_titlecase()` to `alloc`)
 - #155970 (Add mention of sendfile(2) and splice(2) to fs::copy() documentation.)
 - #156006 (Update a bunch of bootstrap dependencies to remove windows-target)
 - #156169 (Change `SwitchInt` handling in dataflow analysis.)
 - #155188 (Add regression test for issue 144329)
 - #155515 (error on empty `export_name`)
 - #155817 (validate `#[link_name = "..."]` & `#[link(name = "...")]` parameters)
 - #156107 (remove turbofish notation + use None / Some instead of Option:: (in match documentation))
 - #156133 (mark some panicking methods around Duration as track_caller)
 - #156363 (`rustc_attr_parsing`: add `AcceptContext::expect_string_literal`)
rust-bors Bot pushed a commit that referenced this pull request May 10, 2026
@bors
Auto merge of #156378 - matthiaskrgr:rollup-NO89xfV, r=matthiaskrgr
d1961be
Rollup of 11 pull requests

Successful merges:

 - #149362 (Add Command::get_resolved_envs)
 - #155705 (Add `str::word_to_titlecase()` to `alloc`)
 - #155970 (Add mention of sendfile(2) and splice(2) to fs::copy() documentation.)
 - #156006 (Update a bunch of bootstrap dependencies to remove windows-target)
 - #156169 (Change `SwitchInt` handling in dataflow analysis.)
 - #155188 (Add regression test for issue 144329)
 - #155515 (error on empty `export_name`)
 - #155817 (validate `#[link_name = "..."]` & `#[link(name = "...")]` parameters)
 - #156107 (remove turbofish notation + use None / Some instead of Option:: (in match documentation))
 - #156133 (mark some panicking methods around Duration as track_caller)
 - #156363 (`rustc_attr_parsing`: add `AcceptContext::expect_string_literal`)
@rust-bors
rust-bors Bot merged commit 2728204 into rust-lang:main May 10, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rustbot rustbot added this to the 1.97.0 milestone May 10, 2026
rust-timer added a commit that referenced this pull request May 10, 2026
@rust-timer
Unrolled build for #155705
a8e5970
Rollup merge of #155705 - Jules-Bertholet:word-to-titlecase, r=Mark-Simulacrum

Add `str::word_to_titlecase()` to `alloc`

A small addition to #153892.

Hasn't gone through ACP, so needs libs-API signoff.

@rustbot label A-Unicode T-libs-api
@Jules-Bertholet
Jules-Bertholet deleted the word-to-titlecase branch May 10, 2026 15:09
@Jules-Bertholet Jules-Bertholet mentioned this pull request May 10, 2026
Tracking Issue for titlecase handling in core::char #153892
Closed
2 of 5 tasks
@clarfonthey clarfonthey added the A-str Area: `str` and `String` label Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@the8472 the8472 the8472 left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@Mark-Simulacrum Mark-Simulacrum

Labels

A-str Area: `str` and `String` A-Unicode Area: Unicode 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. T-libs-api [DEPRECATED; DO NOT USE]

Projects

None yet

Milestone

1.97.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@Jules-Bertholet @rustbot @rust-log-analyzer @the8472 @Mark-Simulacrum @clarfonthey
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.