Skip to content

Issue 11913 borrow in aliasable loc #12117

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

nikomatsakis
Copy link
Contributor

Repair a rather embarassingly obvious hole that I created as part of #9629. In particular, prevent &mut borrows of data in an aliasable location. This used to be prevented through the restrictions mechanism, but in #9629 I modified those rules incorrectly.

r? @pcwalton

Fixes #11913

bors added a commit that referenced this pull request Feb 9, 2014
…ble-loc, r=pcwalton

Repair a rather embarassingly obvious hole that I created as part of #9629. In particular, prevent `&mut` borrows of data in an aliasable location. This used to be prevented through the restrictions mechanism, but in #9629 I modified those rules incorrectly. 

r? @pcwalton

Fixes #11913
@bors bors closed this Feb 9, 2014
@bors bors merged commit eb774f6 into rust-lang:master Feb 9, 2014
@nikomatsakis nikomatsakis deleted the issue-11913-borrow-in-aliasable-loc branch March 30, 2016 16:13
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
minor: Insert whitespace after const token when formatting macro expansions
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessing &mut through & oddities
3 participants