about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-30 01:11:11 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-30 14:10:45 +0200
commitf513380cf51eb5fd977b8815a7acd999e424dc93 (patch)
treef34be5c0599b0c1764d88abed2139a894db1df83 /src/rustllvm/ExecutionEngineWrapper.cpp
parent492b3b163fc003658eece850fc241248dd66db02 (diff)
downloadrust-f513380cf51eb5fd977b8815a7acd999e424dc93.tar.gz
rust-f513380cf51eb5fd977b8815a7acd999e424dc93.zip
Address Issue 14270 by making `cmt::freely_aliasable` result more fine-grained.
Instead of encoding the aliasability (i.e. whether the cmt is uniquely
writable or not) as an option, now pass back an enum indicating
either: 1. freely-aliasable (thus not uniquely-writable),
2. non-aliasble (thus uniquely writable), or 3. unique but immutable
(and thus not uniquely writable, according to proposal from issue
14270.)

This is all of course a giant hack that will hopefully go away with an
eventually removal of special treatment of `Box<T>` (aka `ty_unique`)
from the compiler.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions