diff options
| author | bors <bors@rust-lang.org> | 2014-08-13 02:26:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-08-13 02:26:23 +0000 |
| commit | ee87234eed95d6077247bee5416339ce2652b599 (patch) | |
| tree | 4e095e0281a5fe2586f7364ab4e8a34edc27b700 /src/rustllvm/RustWrapper.cpp | |
| parent | e189122e9a922438f02b639948f75df765cd370e (diff) | |
| parent | 7579185b4c83180d8e737a65c9f459bfe8e32ad5 (diff) | |
| download | rust-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
