@@ -21,7 +21,7 @@ use stable_mir::abi::Layout;
2121use stable_mir:: compiler_interface:: CompilerInterface ;
2222use stable_mir:: ty:: IndexedVal ;
2323
24- use crate :: rustc_smir:: context:: TablesWrapper ;
24+ use crate :: rustc_smir:: context:: Context ;
2525use crate :: rustc_smir:: { Stable , Tables } ;
2626use crate :: stable_mir;
2727
@@ -197,7 +197,7 @@ pub fn crate_num(item: &stable_mir::Crate) -> CrateNum {
197197// datastructures and stable MIR datastructures
198198scoped_thread_local ! ( static TLV : Cell <* const ( ) >) ;
199199
200- pub ( crate ) fn init < ' tcx , F , T > ( tables : & TablesWrapper < ' tcx > , f : F ) -> T
200+ pub ( crate ) fn init < ' tcx , F , T > ( tables : & Context < ' tcx > , f : F ) -> T
201201where
202202 F : FnOnce ( ) -> T ,
203203{
@@ -213,7 +213,7 @@ pub(crate) fn with_tables<R>(f: impl for<'tcx> FnOnce(&mut Tables<'tcx>) -> R) -
213213 TLV . with ( |tlv| {
214214 let ptr = tlv. get ( ) ;
215215 assert ! ( !ptr. is_null( ) ) ;
216- let wrapper = ptr as * const TablesWrapper < ' _ > ;
216+ let wrapper = ptr as * const Context < ' _ > ;
217217 let mut tables = unsafe { ( * wrapper) . 0 . borrow_mut ( ) } ;
218218 f ( & mut * tables)
219219 } )
@@ -223,7 +223,7 @@ pub fn run<F, T>(tcx: TyCtxt<'_>, f: F) -> Result<T, Error>
223223where
224224 F : FnOnce ( ) -> T ,
225225{
226- let tables = TablesWrapper ( RefCell :: new ( Tables {
226+ let tables = Context ( RefCell :: new ( Tables {
227227 tcx,
228228 def_ids : IndexMap :: default ( ) ,
229229 alloc_ids : IndexMap :: default ( ) ,
0 commit comments