]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #52359 - matthewjasper:combine-move-error-reporting, r=pnkfelix
authorbors <bors@rust-lang.org>
Sun, 22 Jul 2018 08:52:05 +0000 (08:52 +0000)
committerbors <bors@rust-lang.org>
Sun, 22 Jul 2018 08:52:05 +0000 (08:52 +0000)
[NLL] Small move error reporting improvements

* Use a MirBorrowckContext when reporting errors to be more uniform with other error reporting
* Add a special message for the case of trying to move from capture variables in `Fn` and `FnMut` closures.

part of #51028


Trivial merge