]> git.lizzy.rs Git - rust.git/commit
auto merge of #15171 : pcwalton/rust/remove-cross-borrowing, r=brson
authorbors <bors@rust-lang.org>
Wed, 25 Jun 2014 18:51:21 +0000 (18:51 +0000)
committerbors <bors@rust-lang.org>
Wed, 25 Jun 2014 18:51:21 +0000 (18:51 +0000)
commit9f8149e185fe55751b8d8675021d2066249abe54
tree7e339b5036e3df5344e4d9dbf7c86900d75f8893
parent7da94c1a00104e25901b6b571bca1b03990d4467
parentf6bfd2c65ba2a1292be1e62dd1c61a70abccdd1a
auto merge of #15171 : pcwalton/rust/remove-cross-borrowing, r=brson

This will break code like:

    fn f(x: &mut int) {}

    let mut a = box 1i;
    f(a);

Change it to:

    fn f(x: &mut int) {}

    let mut a = box 1i;
    f(&mut *a);

RFC 33; issue #10504.

[breaking-change]

r? @brson