Function rustc::middle::cstore::tls::enter_encoding_context [] [src]

pub fn enter_encoding_context<'tcx, F, R>(ecx: &EncodingContext<'tcx>, encoder: &mut OpaqueEncoder, f: F) -> R where F: FnOnce(&EncodingContext<'tcx>, &mut OpaqueEncoder) -> R
Unstable (rustc_private)

Execute f after pushing the given EncodingContext onto the TLS stack.