diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-08-12 12:51:23 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-08-12 15:02:51 -0700 |
| commit | 7579185b4c83180d8e737a65c9f459bfe8e32ad5 (patch) | |
| tree | 1676f9c05c1c73355e985ba0eecdf09f3ad373db /src/rustllvm/RustWrapper.cpp | |
| parent | c7d0b5259d95ab4ef821bdf93a434538c3a84dad (diff) | |
| download | rust-7579185b4c83180d8e737a65c9f459bfe8e32ad5.tar.gz rust-7579185b4c83180d8e737a65c9f459bfe8e32ad5.zip | |
librustc: Use the correct categorized mutable type for the pattern in
`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]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
