about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-13 17:08:39 +0000
committerbors <bors@rust-lang.org>2018-07-13 17:08:39 +0000
commitfe29a4cda59ee60c6fbfa8a52429b27a596aaa6d (patch)
tree5209cc1b3596750a4ee15dfc862e06139f2a7805 /src/libstd/sys/unix/stack_overflow.rs
parentbce32b532de61434841b7c2ce3085e1f63d6a7a1 (diff)
parent1ed861910f1a875c7bf19ee398cad1570b92aad4 (diff)
downloadrust-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