]> git.lizzy.rs Git - rust.git/commit
auto merge of #12117 : nikomatsakis/rust/issue-11913-borrow-in-aliasable-loc, r=pcwalton
authorbors <bors@rust-lang.org>
Sun, 9 Feb 2014 09:06:23 +0000 (01:06 -0800)
committerbors <bors@rust-lang.org>
Sun, 9 Feb 2014 09:06:23 +0000 (01:06 -0800)
commitf0e0d9e101d36957102c38de3ec9e089c1d43dbb
tree4ea7bae4e9370238aa47845b5575ac40df873829
parent49ac48db3fe2666751908668ba8e5ab16e2fb07a
parenteb774f69e5099f73b053d08f9baf29f80f321309
auto merge of #12117 : nikomatsakis/rust/issue-11913-borrow-in-aliasable-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