Skip to content

Conversation

ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Apr 7, 2022

I don't understand why the previous comment was used (it was inserted in #66564), but it doesn't explain why these functions are safe, only why str::as_bytes{_mut}() are safe.

If someone thinks they make perfect sense, I'm fine with closing this PR.

@rust-highfive
Copy link
Contributor

r? @dtolnay

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 7, 2022
Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thanks, good catch.

@dtolnay
Copy link
Member

dtolnay commented Apr 7, 2022

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Apr 7, 2022

📌 Commit b399e7e has been approved by dtolnay

@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 Apr 7, 2022
@dtolnay dtolnay added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label Apr 7, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 7, 2022
Rollup of 4 pull requests

Successful merges:

 - rust-lang#95189 (Stop flagging unexpected inner attributes as outer ones in certain diagnostics)
 - rust-lang#95752 (Regression test for rust-lang#82866)
 - rust-lang#95753 (Correct safety reasoning in `str::make_ascii_{lower,upper}case()`)
 - rust-lang#95757 (Use gender neutral terms)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 6639604 into rust-lang:master Apr 7, 2022
@rustbot rustbot added this to the 1.62.0 milestone Apr 7, 2022
@ChayimFriedman2 ChayimFriedman2 deleted the patch-1 branch April 7, 2022 21:58
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.

5 participants