Struct rustc_codegen_ssa::mir::debuginfo::DebugScope
source · pub struct DebugScope<S, L> {
pub dbg_scope: S,
pub inlined_at: Option<L>,
pub file_start_pos: BytePos,
pub file_end_pos: BytePos,
}
Fields§
§dbg_scope: S
§inlined_at: Option<L>
Call site location, if this scope was inlined from another function.
file_start_pos: BytePos
§file_end_pos: BytePos
Implementations§
source§impl<'tcx, S: Copy, L: Copy> DebugScope<S, L>
impl<'tcx, S: Copy, L: Copy> DebugScope<S, L>
sourcepub fn adjust_dbg_scope_for_span<Cx: CodegenMethods<'tcx, DIScope = S, DILocation = L>>(
&self,
cx: &Cx,
span: Span
) -> S
pub fn adjust_dbg_scope_for_span<Cx: CodegenMethods<'tcx, DIScope = S, DILocation = L>>( &self, cx: &Cx, span: Span ) -> S
DILocations inherit source file name from the parent DIScope. Due to macro expansions it may so happen that the current span belongs to a different file than the DIScope corresponding to span’s containing source scope. If so, we need to create a DIScope “extension” into that file.
Trait Implementations§
source§impl<S: Clone, L: Clone> Clone for DebugScope<S, L>
impl<S: Clone, L: Clone> Clone for DebugScope<S, L>
source§fn clone(&self) -> DebugScope<S, L>
fn clone(&self) -> DebugScope<S, L>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<S: Copy, L: Copy> Copy for DebugScope<S, L>
Auto Trait Implementations§
impl<S, L> DynSend for DebugScope<S, L>
impl<S, L> DynSync for DebugScope<S, L>
impl<S, L> Freeze for DebugScope<S, L>
impl<S, L> RefUnwindSafe for DebugScope<S, L>where
L: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, L> Send for DebugScope<S, L>
impl<S, L> Sync for DebugScope<S, L>
impl<S, L> Unpin for DebugScope<S, L>
impl<S, L> UnwindSafe for DebugScope<S, L>where
L: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
source§impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
fn allocate_on<'a>(self, arena: &'a Arena<'tcx>) -> &'a mut T
fn allocate_from_iter<'a>( arena: &'a Arena<'tcx>, iter: impl IntoIterator<Item = T> ) -> &'a mut [T]
source§impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
fn allocate_on<'a>(self, arena: &'a Arena<'tcx>) -> &'a mut T
fn allocate_from_iter<'a>( arena: &'a Arena<'tcx>, iter: impl IntoIterator<Item = T> ) -> &'a mut [T]
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
source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Filterable for T
impl<T> Filterable for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<P> IntoQueryParam<P> for P
impl<P> IntoQueryParam<P> for P
fn into_query_param(self) -> P
source§impl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<'tcx, T> ToPredicate<'tcx, T> for T
impl<'tcx, T> ToPredicate<'tcx, T> for T
fn to_predicate(self, _tcx: TyCtxt<'tcx>) -> T
source§impl<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
impl<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
default fn from_cycle_error( tcx: Tcx, cycle_error: &CycleError, _guar: ErrorGuaranteed ) -> T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
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.