about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorBrian Koropoff <bkoropoff@gmail.com>2014-10-04 14:06:08 -0700
committerBrian Koropoff <bkoropoff@gmail.com>2014-10-05 00:24:10 -0700
commitf74b1c4ee255ab7cd2706896bced45f14e1ccc1a (patch)
tree481c425b441cce2c9760b4d3126f3ba618cbebe7 /src/rustllvm/RustWrapper.cpp
parentea3ab731a3c762829e3f2bec5bfbaa3a3a84689f (diff)
downloadrust-f74b1c4ee255ab7cd2706896bced45f14e1ccc1a.tar.gz
rust-f74b1c4ee255ab7cd2706896bced45f14e1ccc1a.zip
Categorize upvars in `Fn` unboxed closures as freely aliasable
This causes borrowck to correctly reject mutation or mutable borrows
of upvars in `Fn` unboxed closures since the closure environment is
aliasable.

This also tracks the responsible closure in the aliasability
information returned and uses it to give a helpful diagnostic.

Closes issue #17780
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions