]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #57099 - davidtwco:issue-57098, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sat, 5 Jan 2019 09:41:04 +0000 (09:41 +0000)
committerbors <bors@rust-lang.org>
Sat, 5 Jan 2019 09:41:04 +0000 (09:41 +0000)
NLL: Add closure cannot be moved note.

Fixes #57098.

This PR extends existing logic for checking whether a closure that
is `FnOnce` and therefore moves variables that it captures from the
environment has already been invoked when being invoked again.

Now, this logic will also check whether the closure is being moved after
previously being moved or invoked and add an appropriate note.

r? @pnkfelix


No differences found