Struct rustc_smir::rustc_internal::StableMir
source · pub struct StableMir<B = (), C = ()>where
B: Send,
C: Send,{
args: Vec<String>,
callback: fn(_: TyCtxt<'_>) -> ControlFlow<B, C>,
result: Option<ControlFlow<B, C>>,
}
Fields§
§args: Vec<String>
§callback: fn(_: TyCtxt<'_>) -> ControlFlow<B, C>
§result: Option<ControlFlow<B, C>>
Implementations§
Trait Implementations§
source§impl<B, C> Callbacks for StableMir<B, C>where
B: Send,
C: Send,
impl<B, C> Callbacks for StableMir<B, C>where B: Send, C: Send,
source§fn after_analysis<'tcx>(
&mut self,
_compiler: &Compiler,
queries: &'tcx Queries<'tcx>
) -> Compilation
fn after_analysis<'tcx>( &mut self, _compiler: &Compiler, queries: &'tcx Queries<'tcx> ) -> Compilation
Called after analysis. Return value instructs the compiler whether to
continue the compilation afterwards (defaults to Compilation::Continue
)
source§fn after_crate_root_parsing<'tcx>(
&mut self,
_compiler: &Compiler,
_queries: &'tcx Queries<'tcx>
) -> Compilation
fn after_crate_root_parsing<'tcx>( &mut self, _compiler: &Compiler, _queries: &'tcx Queries<'tcx> ) -> Compilation
Called after parsing the crate root. Submodules are not yet parsed when
this callback is called. Return value instructs the compiler whether to
continue the compilation afterwards (defaults to
Compilation::Continue
)source§fn after_expansion<'tcx>(
&mut self,
_compiler: &Compiler,
_queries: &'tcx Queries<'tcx>
) -> Compilation
fn after_expansion<'tcx>( &mut self, _compiler: &Compiler, _queries: &'tcx Queries<'tcx> ) -> Compilation
Called after expansion. Return value instructs the compiler whether to
continue the compilation afterwards (defaults to
Compilation::Continue
)Auto Trait Implementations§
impl<B, C> RefUnwindSafe for StableMir<B, C>where B: RefUnwindSafe, C: RefUnwindSafe,
impl<B, C> Send for StableMir<B, C>
impl<B, C> Sync for StableMir<B, C>where B: Sync, C: Sync,
impl<B, C> Unpin for StableMir<B, C>where B: Unpin, C: Unpin,
impl<B, C> UnwindSafe for StableMir<B, C>where B: UnwindSafe, C: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.