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

Add a get_mut method for TLS #7841

Merged
merged 1 commit into from
Jul 17, 2013
Merged

Add a get_mut method for TLS #7841

merged 1 commit into from
Jul 17, 2013

Conversation

alexcrichton
Copy link
Member

Simulates borrow checks for '@mut' boxes, or at least it's the same idea. This allows you to store owned values, but mutate them while they're owned by TLS.

This should remove the necessity for a pop/set pattern to mutate data structures in TLS.

Simulates borrow checks for '@mut' boxes, or at least it's the same idea.
bors added a commit that referenced this pull request Jul 17, 2013
Simulates borrow checks for '@mut' boxes, or at least it's the same idea. This allows you to store owned values, but mutate them while they're owned by TLS.

This should remove the necessity for a `pop`/`set` pattern to mutate data structures in TLS.
@bors bors closed this Jul 17, 2013
@bors bors merged commit 948a624 into rust-lang:master Jul 17, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 13, 2022
Warn disallowed_methods and disallowed_types by default

Closes rust-lang#7841

changelog: Moved [`disallowed_methods`] and [`disallowed_types`] to `style`
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