Skip to content

Commit

Permalink
Remove extern crate scoped_tls from stable_mir.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Apr 29, 2024
1 parent ef636cf commit bb8cec0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/stable_mir/src/compiler_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ pub trait Context {

// A thread local variable that stores a pointer to the tables mapping between TyCtxt
// 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>
where
Expand Down
2 changes: 0 additions & 2 deletions compiler/stable_mir/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
//!
//! The goal is to eventually be published on
//! [crates.io](https://crates.io).
#[macro_use]
extern crate scoped_tls;
use std::fmt;
use std::fmt::Debug;
Expand Down

0 comments on commit bb8cec0

Please sign in to comment.