Macro rustc_smir::run_with_tcx
source · macro_rules! run_with_tcx { ($args:expr, $callback_fn:ident) => { ... }; ($args:expr, $callback:expr) => { ... }; }
Expand description
Instantiate and run the compiler with the provided arguments and callback.
This is similar to run
but it invokes the callback with the compiler’s TyCtxt
,
which can be used to invoke internal APIs.