Struct rustc_codegen_ssa::mir::debuginfo::DebugScope [−][src]
pub struct DebugScope<S, L> {
pub dbg_scope: Option<S>,
pub inlined_at: Option<L>,
pub file_start_pos: BytePos,
pub file_end_pos: BytePos,
}
Fields
dbg_scope: Option<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
pub 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
Auto Trait Implementations
impl<S, L> RefUnwindSafe for DebugScope<S, L> where
L: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, L> Send for DebugScope<S, L> where
L: Send,
S: Send,
impl<S, L> Sync for DebugScope<S, L> where
L: Sync,
S: Sync,
impl<S, L> Unpin for DebugScope<S, L> where
L: Unpin,
S: Unpin,
impl<S, L> UnwindSafe for DebugScope<S, L> where
L: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
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.