Rename the internal const_strlen to just strlen by tgross35 · Pull Request #127660 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation3 Commits1 Checks6 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

tgross35

Since the libs and lang teams completed an FCP to allow for const strlen (1), currently implemented with const_eval_select, there is no longer any reason to avoid this specific function or use it only in const.

Rename it to reflect this status change.

Discussed at #127433 (comment) / #127444 (comment)

r? @dtolnay

@tgross35

Since the libs and lang teams completed an FCP to allow for const strlen ([1]), currently implemented with const_eval_select, there is no longer any reason to avoid this specific function or use it only in const.

Rename it to reflect this status change.

[1]: rust-lang#113219 (comment)

@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

Jul 12, 2024

dtolnay

Choose a reason for hiding this comment

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

Thank you!

@dtolnay

@bors

📌 Commit 2772f89 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

Jul 12, 2024

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jul 12, 2024

@bors

…kingjubilee

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Jul 13, 2024

@rust-timer

Rollup merge of rust-lang#127660 - tgross35:const_strlen-rename, r=dtolnay

Rename the internal const_strlen to just strlen

Since the libs and lang teams completed an FCP to allow for const strlen ([1]), currently implemented with const_eval_select, there is no longer any reason to avoid this specific function or use it only in const.

Rename it to reflect this status change.

[1]: rust-lang#113219 (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.