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.
22//!
33//! 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.
55
66use std:: cell:: { Cell , RefCell } ;
77
@@ -26,7 +26,7 @@ pub mod pretty;
2626///
2727/// # Panics
2828///
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.
3030pub fn stable < ' tcx , S : Stable < ' tcx > > ( item : S ) -> S :: T {
3131 with_container ( |tables, cx| item. stable ( tables, cx) )
3232}
@@ -41,7 +41,7 @@ pub fn stable<'tcx, S: Stable<'tcx>>(item: S) -> S::T {
4141///
4242/// # Panics
4343///
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.
4545pub fn internal < ' tcx , S > ( tcx : TyCtxt < ' tcx > , item : S ) -> S :: T < ' tcx >
4646where
4747 S : RustcInternal ,
@@ -57,7 +57,7 @@ pub fn crate_num(item: &crate::Crate) -> CrateNum {
5757}
5858
5959// 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
6161scoped_thread_local ! ( static TLV : Cell <* const ( ) >) ;
6262
6363pub ( crate ) fn init < ' tcx , F , T , B : Bridge > ( container : & Container < ' tcx , B > , f : F ) -> T
@@ -176,7 +176,7 @@ macro_rules! optional {
176176
177177/// Prefer using [run!] and [run_with_tcx] instead.
178178///
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
180180/// the given callback after the compiler analyses.
181181///
182182/// The third argument determines whether the callback requires `tcx` as an argument.
0 commit comments