about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-11-12 08:41:30 -0800
committerGitHub <noreply@github.com>2016-11-12 08:41:30 -0800
commit026add5f06191dfbd592a4f02bb4a38866553c63 (patch)
tree0e72209967dfcd593e24ba294316ac0157daf66e /src/rustllvm/PassWrapper.cpp
parentacce384c22f123211af5d3dd9839ee87fe0b7904 (diff)
parent1a5456b766aa427b3bea4e792c0ec21a9ee1bf5d (diff)
downloadrust-026add5f06191dfbd592a4f02bb4a38866553c63.tar.gz
rust-026add5f06191dfbd592a4f02bb4a38866553c63.zip
Auto merge of #37531 - estebank:fix-ref-mut-mut, r=jonathandturner
Fix invalid "ref mut mut" sugestion

Change output from:

```nocode
error: cannot borrow immutable local variable `x` as mutable
  --> <anon>:12:23
   |
11 |         TestEnum::Item(ref mut x) => {
   |                        --------- use `ref mut mut x` here to make mutable
12 |             test(&mut x);
   |                       ^ cannot borrow mutably
```

to

```nocode
error: cannot borrow immutable local variable `x` as mutable
  --> <anon>:12:23
   |
12 |             test(&mut x);
   |                       ^
   |                       |
   |                       cannot reborrow mutably
   |                       try removing `&mut` here
```
Fixes #37139, #34337, #34126
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions