mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
f0e0d9e101
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