@@ -7,7 +7,7 @@ use std::cell::{Cell, RefCell};
77
88use rustc_middle:: ty:: TyCtxt ;
99use rustc_public_bridge:: context:: CompilerCtxt ;
10- use rustc_public_bridge:: { Bridge , SmirContainer , Tables } ;
10+ use rustc_public_bridge:: { Bridge , Container , Tables } ;
1111use rustc_span:: def_id:: CrateNum ;
1212use scoped_tls:: scoped_thread_local;
1313
@@ -60,7 +60,7 @@ pub fn crate_num(item: &crate::Crate) -> CrateNum {
6060// datastructures and stable MIR datastructures
6161scoped_thread_local ! ( static TLV : Cell <* const ( ) >) ;
6262
63- pub ( crate ) fn init < ' tcx , F , T , B : Bridge > ( container : & SmirContainer < ' tcx , B > , f : F ) -> T
63+ pub ( crate ) fn init < ' tcx , F , T , B : Bridge > ( container : & Container < ' tcx , B > , f : F ) -> T
6464where
6565 F : FnOnce ( ) -> T ,
6666{
@@ -78,7 +78,7 @@ pub(crate) fn with_container<R, B: Bridge>(
7878 TLV . with ( |tlv| {
7979 let ptr = tlv. get ( ) ;
8080 assert ! ( !ptr. is_null( ) ) ;
81- let container = ptr as * const SmirContainer < ' _ , B > ;
81+ let container = ptr as * const Container < ' _ , B > ;
8282 let mut tables = unsafe { ( * container) . tables . borrow_mut ( ) } ;
8383 let cx = unsafe { ( * container) . cx . borrow ( ) } ;
8484 f ( & mut * tables, & * cx)
9090 F : FnOnce ( ) -> T ,
9191{
9292 let compiler_cx = RefCell :: new ( CompilerCtxt :: new ( tcx) ) ;
93- let container = SmirContainer { tables : RefCell :: new ( Tables :: default ( ) ) , cx : compiler_cx } ;
93+ let container = Container { tables : RefCell :: new ( Tables :: default ( ) ) , cx : compiler_cx } ;
9494
9595 crate :: compiler_interface:: run ( & container, || init ( & container, f) )
9696}
0 commit comments