]> git.lizzy.rs Git - rust.git/commitdiff
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)
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


Trivial merge