about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-05 09:41:04 +0000
committerbors <bors@rust-lang.org>2019-01-05 09:41:04 +0000
commitcae623c5ce12df8f237264d8f2c31fdaa664c382 (patch)
tree3b3a5045b53393a47e7c6a1be4a62dbd303718f3 /src/liballoc
parent2fba17fc972f89fe9165fbed77d2f0ad6d3e2174 (diff)
parentfcad2094497519989327e372c09f9470bac7f957 (diff)
downloadrust-cae623c5ce12df8f237264d8f2c31fdaa664c382.tar.gz
rust-cae623c5ce12df8f237264d8f2c31fdaa664c382.zip
Auto merge of #57099 - davidtwco:issue-57098, r=nikomatsakis
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
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions