Function rustc::ty::context::tls::set_tlv [−][src]
fn set_tlv<F: FnOnce() -> R, R>(value: usize, f: F) -> R
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Sets TLV to value
during the call to f
.
It is restored to its previous value after.
This is used to set the pointer to the new ImplicitCtxt.