Struct rustc_mir::transform::MirSource [−][src]
pub struct MirSource<'tcx> {
pub instance: InstanceDef<'tcx>,
pub promoted: Option<Promoted>,
}Expand description
Where a specific mir::Body comes from.
Fields
instance: InstanceDef<'tcx>promoted: Option<Promoted>If Some, this is a promoted rvalue within the parent function.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for MirSource<'tcx>
impl<'tcx> !UnwindSafe for MirSource<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes