1
- //! Module that implements the bridge between Stable MIR and internal compiler MIR.
1
+ //! Module that implements the bridge between rustc_public's IR and internal compiler MIR.
2
2
//!
3
3
//! For that, we define APIs that will temporarily be public to 3P that exposes rustc internal APIs
4
- //! until stable MIR is complete.
4
+ //! until rustc_public's IR is complete.
5
5
6
6
use std:: cell:: { Cell , RefCell } ;
7
7
@@ -26,7 +26,7 @@ pub mod pretty;
26
26
///
27
27
/// # Panics
28
28
///
29
- /// This function will panic if StableMIR has not been properly initialized.
29
+ /// This function will panic if rustc_public has not been properly initialized.
30
30
pub fn stable < ' tcx , S : Stable < ' tcx > > ( item : S ) -> S :: T {
31
31
with_container ( |tables, cx| item. stable ( tables, cx) )
32
32
}
@@ -41,7 +41,7 @@ pub fn stable<'tcx, S: Stable<'tcx>>(item: S) -> S::T {
41
41
///
42
42
/// # Panics
43
43
///
44
- /// This function will panic if StableMIR has not been properly initialized.
44
+ /// This function will panic if rustc_public has not been properly initialized.
45
45
pub fn internal < ' tcx , S > ( tcx : TyCtxt < ' tcx > , item : S ) -> S :: T < ' tcx >
46
46
where
47
47
S : RustcInternal ,
@@ -57,7 +57,7 @@ pub fn crate_num(item: &crate::Crate) -> CrateNum {
57
57
}
58
58
59
59
// A thread local variable that stores a pointer to the tables mapping between TyCtxt
60
- // datastructures and stable MIR datastructures
60
+ // datastructures and rustc_public's IR datastructures
61
61
scoped_thread_local ! ( static TLV : Cell <* const ( ) >) ;
62
62
63
63
pub ( crate ) fn init < ' tcx , F , T , B : Bridge > ( container : & Container < ' tcx , B > , f : F ) -> T
@@ -176,7 +176,7 @@ macro_rules! optional {
176
176
177
177
/// Prefer using [run!] and [run_with_tcx] instead.
178
178
///
179
- /// This macro implements the instantiation of a StableMIR driver, and it will invoke
179
+ /// This macro implements the instantiation of a rustc_public driver, and it will invoke
180
180
/// the given callback after the compiler analyses.
181
181
///
182
182
/// The third argument determines whether the callback requires `tcx` as an argument.
0 commit comments