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

Stop storing a reference in a lock guard #15

Open
yvt opened this issue Nov 23, 2022 · 1 comment
Open

Stop storing a reference in a lock guard #15

yvt opened this issue Nov 23, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@yvt
Copy link
Member

yvt commented Nov 23, 2022

rust-lang/rust#97027

pub struct MutexGuard<'a, T: ?Sized> {
data: &'a mut T,
locked: &'a AtomicBool,
}

@yvt yvt added the bug Something isn't working label Nov 23, 2022
@yvt
Copy link
Member Author

yvt commented Mar 22, 2023

The fix is ready, but I'm not quite sure how to describe the motivations for the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant