about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo.net>2015-12-01 16:07:15 +0100
committerMichael Woerister <michaelwoerister@posteo.net>2015-12-09 09:47:32 -0500
commitf65823e39cad10c956d57e5242152e0b41326844 (patch)
tree0ea48365b489053686d8acb10b46eb5a9a5bc2f8 /src/rustllvm/RustWrapper.cpp
parentc212c0e1d1ff9f061c8149b4831e5fa1cb7e5b83 (diff)
downloadrust-f65823e39cad10c956d57e5242152e0b41326844.tar.gz
rust-f65823e39cad10c956d57e5242152e0b41326844.zip
Add scoped thread-local encoding and decoding contexts to cstore.
With this commit, metadata encoding and decoding can make use of
thread-local encoding and decoding contexts. These allow implementers
of serialize::Encodable and Decodable to access information and
datastructures that would otherwise not be available to them. For
example, we can automatically translate def-id and span information
during decoding because the decoding context knows which crate the
data is decoded from. Or it allows to make ty::Ty decodable because
the context has access to the ty::ctxt that is needed for creating
ty::Ty instances.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions