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

Stack borrows: weak protectors #2684

Merged
merged 3 commits into from
Nov 21, 2022

Conversation

RalfJung
Copy link
Member

This addresses the issue described in rust-lang/unsafe-code-guidelines#376.

@RalfJung RalfJung changed the title Stack borrows> weak protectors Stack borrows: weak protectors Nov 20, 2022
@RalfJung
Copy link
Member Author

See rust-lang/unsafe-code-guidelines#377 for a conceptual description of this change.

@RalfJung
Copy link
Member Author

At least the liballoc tests all this pass with this patch. I doubt there will be a lot of breakage out there, but I guess @saethlin will see. ;)

@saethlin
Copy link
Member

I'm happy with the implementation. Thanks for cleaning up all the unnecessary mutability along the way.

@RalfJung
Copy link
Member Author

@bors r=saethlin

@bors
Copy link
Collaborator

bors commented Nov 21, 2022

📌 Commit e27d57b has been approved by saethlin

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Nov 21, 2022

⌛ Testing commit e27d57b with merge 435faf0...

@bors
Copy link
Collaborator

bors commented Nov 21, 2022

☀️ Test successful - checks-actions
Approved by: saethlin
Pushing 435faf0 to master...

1 similar comment
@bors
Copy link
Collaborator

bors commented Nov 21, 2022

☀️ Test successful - checks-actions
Approved by: saethlin
Pushing 435faf0 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants