mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 22:53:28 +00:00
Remove extern crate scoped_tls
from stable_mir
.
This commit is contained in:
parent
6341935a13
commit
2088de2889
@ -221,7 +221,7 @@ pub trait Context {
|
|||||||
|
|
||||||
// A thread local variable that stores a pointer to the tables mapping between TyCtxt
|
// A thread local variable that stores a pointer to the tables mapping between TyCtxt
|
||||||
// datastructures and stable MIR datastructures
|
// datastructures and stable MIR datastructures
|
||||||
scoped_thread_local!(static TLV: Cell<*const ()>);
|
scoped_tls::scoped_thread_local!(static TLV: Cell<*const ()>);
|
||||||
|
|
||||||
pub fn run<F, T>(context: &dyn Context, f: F) -> Result<T, Error>
|
pub fn run<F, T>(context: &dyn Context, f: F) -> Result<T, Error>
|
||||||
where
|
where
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
//!
|
//!
|
||||||
//! The goal is to eventually be published on
|
//! The goal is to eventually be published on
|
||||||
//! [crates.io](https://crates.io).
|
//! [crates.io](https://crates.io).
|
||||||
#[macro_use]
|
|
||||||
extern crate scoped_tls;
|
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
Loading…
Reference in New Issue
Block a user