@@ -7,7 +7,7 @@ use std::cell::{Cell, RefCell};
7
7
8
8
use rustc_middle:: ty:: TyCtxt ;
9
9
use rustc_public_bridge:: context:: CompilerCtxt ;
10
- use rustc_public_bridge:: { Bridge , SmirContainer , Tables } ;
10
+ use rustc_public_bridge:: { Bridge , Container , Tables } ;
11
11
use rustc_span:: def_id:: CrateNum ;
12
12
use scoped_tls:: scoped_thread_local;
13
13
@@ -60,7 +60,7 @@ pub fn crate_num(item: &crate::Crate) -> CrateNum {
60
60
// datastructures and stable MIR datastructures
61
61
scoped_thread_local ! ( static TLV : Cell <* const ( ) >) ;
62
62
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
64
64
where
65
65
F : FnOnce ( ) -> T ,
66
66
{
@@ -78,7 +78,7 @@ pub(crate) fn with_container<R, B: Bridge>(
78
78
TLV . with ( |tlv| {
79
79
let ptr = tlv. get ( ) ;
80
80
assert ! ( !ptr. is_null( ) ) ;
81
- let container = ptr as * const SmirContainer < ' _ , B > ;
81
+ let container = ptr as * const Container < ' _ , B > ;
82
82
let mut tables = unsafe { ( * container) . tables . borrow_mut ( ) } ;
83
83
let cx = unsafe { ( * container) . cx . borrow ( ) } ;
84
84
f ( & mut * tables, & * cx)
90
90
F : FnOnce ( ) -> T ,
91
91
{
92
92
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 } ;
94
94
95
95
crate :: compiler_interface:: run ( & container, || init ( & container, f) )
96
96
}
0 commit comments