diff options
| author | bors <bors@rust-lang.org> | 2018-07-13 17:08:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-13 17:08:39 +0000 |
| commit | fe29a4cda59ee60c6fbfa8a52429b27a596aaa6d (patch) | |
| tree | 5209cc1b3596750a4ee15dfc862e06139f2a7805 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | bce32b532de61434841b7c2ce3085e1f63d6a7a1 (diff) | |
| parent | 1ed861910f1a875c7bf19ee398cad1570b92aad4 (diff) | |
| download | rust-fe29a4cda59ee60c6fbfa8a52429b27a596aaa6d.tar.gz rust-fe29a4cda59ee60c6fbfa8a52429b27a596aaa6d.zip | |
Auto merge of #52242 - ashtneoi:suggest-ref-mut, r=pnkfelix
NLL: Suggest `ref mut` and `&mut self` Fixes #51244. Supersedes #51249, I think. Under the old lexical lifetimes, the compiler provided helpful suggestions about adding `mut` when you tried to mutate a variable bound as `&self` or (explicit) `ref`. NLL doesn't have those suggestions yet. This pull request adds them. I didn't bother making the help text exactly the same as without NLL, but I can if that's important. (Originally this was supposed to be part of #51612, but I got bogged down trying to fit everything in one PR.)
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
