diff options
| author | Brian Koropoff <bkoropoff@gmail.com> | 2014-10-04 14:06:08 -0700 |
|---|---|---|
| committer | Brian Koropoff <bkoropoff@gmail.com> | 2014-10-05 00:24:10 -0700 |
| commit | f74b1c4ee255ab7cd2706896bced45f14e1ccc1a (patch) | |
| tree | 481c425b441cce2c9760b4d3126f3ba618cbebe7 /src/rustllvm/RustWrapper.cpp | |
| parent | ea3ab731a3c762829e3f2bec5bfbaa3a3a84689f (diff) | |
| download | rust-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
