Stream: t-compiler/help

Topic: why libserialize


Tshepang Lekhonkhobe (May 01 2020 at 19:29, on Zulip):

What is it that src/libserialize offer that others don't... why is it still in the codebase?

bjorn3 (May 01 2020 at 19:32, on Zulip):

src/libserialize allows specializing the encode/decode implementation for a specific encoder/decoder to get access to extra context. The ones used in rustc are EncodeContext and DecodeContext, which both include TyCtxt, and several other things.

Last update: Jan 22 2021 at 13:30UTC