rust/src/librustc_borrowck
bors 46914715e2 Auto merge of #59195 - estebank:for-loop-move, r=petrochenkov
When moving out of a for loop head, suggest borrowing it

When encountering code like the following, suggest borrowing the for loop
head to avoid moving it into the for loop pattern:

```
fn main() {
    let a = vec![1, 2, 3];
    for i in &a {
        for j in a {
            println!("{} * {} = {}", i, j, i * j);
        }
    }
}
```

Fix #25534.
2019-03-25 00:38:15 +00:00
..
borrowck Auto merge of #59195 - estebank:for-loop-move, r=petrochenkov 2019-03-25 00:38:15 +00:00
Cargo.toml librustc_borrowck => 2018 2019-02-08 21:11:10 +09:00
dataflow.rs rustc: doc comments 2019-02-10 23:42:32 +00:00
diagnostics.rs Remove licenses 2018-12-25 21:08:33 -07:00
graphviz.rs librustc_borrowck => 2018 2019-02-08 21:11:10 +09:00
lib.rs Rollup merge of #58260 - taiki-e:librustc_borrowck-2018, r=Centril 2019-02-09 00:16:01 +01:00