Skip to content
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 and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UnsafeCell::get_mut() in core::lazy::OnceCell::get_mut() #92427

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

ChayimFriedman2
Copy link
Contributor

This removes one unnecessary unsafe block.

This removes one unnecessary `unsafe` block.
@rust-highfive
Copy link
Collaborator

r? @kennytm

(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 Dec 30, 2021
@kennytm
Copy link
Member

kennytm commented Dec 30, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Dec 30, 2021

📌 Commit e86ecdf has been approved by kennytm

@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 Dec 30, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 30, 2021
…askrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#91519 (ast: Avoid aborts on fatal errors thrown from mutable AST visitor)
 - rust-lang#92414 (Fix spacing of pretty printed const item without body)
 - rust-lang#92423 (Add UI test for rust-lang#92292)
 - rust-lang#92427 (Use `UnsafeCell::get_mut()` in `core::lazy::OnceCell::get_mut()`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit c10fe04 into rust-lang:master Dec 30, 2021
@rustbot rustbot added this to the 1.59.0 milestone Dec 30, 2021
@ChayimFriedman2 ChayimFriedman2 deleted the patch-1 branch December 31, 2021 01:34
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants