Struct flowistry_pdg::rustc::mir::SourceScopeData
source · pub struct SourceScopeData<'tcx> {
pub span: Span,
pub parent_scope: Option<SourceScope>,
pub inlined: Option<(Instance<'tcx>, Span)>,
pub inlined_parent_scope: Option<SourceScope>,
pub local_data: ClearCrossCrate<SourceScopeLocalData>,
}
Fields§
§span: Span
§parent_scope: Option<SourceScope>
§inlined: Option<(Instance<'tcx>, Span)>
Whether this scope is the root of a scope tree of another body,
inlined into this body by the MIR inliner.
ty::Instance
is the callee, and the Span
is the call site.
inlined_parent_scope: Option<SourceScope>
Nearest (transitive) parent scope (if any) which is inlined.
This is an optimization over walking up parent_scope
until a scope with inlined: Some(...)
is found.
local_data: ClearCrossCrate<SourceScopeLocalData>
Crate-local information for this source scope, that can’t (and needn’t) be tracked across crates.
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for SourceScopeData<'tcx>
impl<'tcx> !Send for SourceScopeData<'tcx>
impl<'tcx> !Sync for SourceScopeData<'tcx>
impl<'tcx> Unpin for SourceScopeData<'tcx>
impl<'tcx> !UnwindSafe for SourceScopeData<'tcx>
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