about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-08-13 02:26:23 +0000
committerbors <bors@rust-lang.org>2014-08-13 02:26:23 +0000
commitee87234eed95d6077247bee5416339ce2652b599 (patch)
tree4e095e0281a5fe2586f7364ab4e8a34edc27b700 /src/rustllvm/RustWrapper.cpp
parente189122e9a922438f02b639948f75df765cd370e (diff)
parent7579185b4c83180d8e737a65c9f459bfe8e32ad5 (diff)
downloadrust-ee87234eed95d6077247bee5416339ce2652b599.tar.gz
rust-ee87234eed95d6077247bee5416339ce2652b599.zip
auto merge of #16458 : pcwalton/rust/borrowck-for-moves, r=nikomatsakis
`for` loop heads.

This breaks code like:

    let x = Some(box 1i);
    for &a in x.iter() {
    }

Change this code to obey the borrow checking rules. For example:

    let x = Some(box 1i);
    for &ref a in x.iter() {
    }

Closes #16205.

[breaking-change]

r? @nikomatsakis
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions