pub struct ConstDebugInfo<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> {
pub name: String,
pub source_info: SourceInfo,
pub operand: OperandRef<'tcx, Bx::Value>,
pub dbg_var: Bx::DIVariable,
pub dbg_loc: Bx::DILocation,
pub fragment: Option<Range<Size>>,
pub _phantom: PhantomData<&'a ()>,
}Expand description
Information needed to emit a constant.
Fields§
§name: String§source_info: SourceInfo§operand: OperandRef<'tcx, Bx::Value>§dbg_var: Bx::DIVariable§dbg_loc: Bx::DILocation§fragment: Option<Range<Size>>§_phantom: PhantomData<&'a ()>Auto Trait Implementations§
impl<'a, 'tcx, Bx> !RefUnwindSafe for ConstDebugInfo<'a, 'tcx, Bx>
impl<'a, 'tcx, Bx> !UnwindSafe for ConstDebugInfo<'a, 'tcx, Bx>
impl<'a, 'tcx, Bx> DynSend for ConstDebugInfo<'a, 'tcx, Bx>where
Vec<u8>: DynSend,
<Bx as BackendTypes>::Value: DynSend,
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: DynSend,
&'tcx LayoutData<FieldIdx, VariantIdx>: DynSend,
&'tcx RawList<(), GenericArg<'tcx>>: DynSend,
<Bx as BackendTypes>::DIVariable: DynSend,
<Bx as BackendTypes>::DILocation: DynSend,
&'a (): DynSend,
<Bx as Deref>::Target == <Bx as BuilderMethods<'a, 'tcx>>::CodegenCx,
impl<'a, 'tcx, Bx> DynSync for ConstDebugInfo<'a, 'tcx, Bx>where
Vec<u8>: DynSync,
<Bx as BackendTypes>::Value: DynSync,
Interned<'tcx, WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>>: DynSync,
Interned<'tcx, LayoutData<FieldIdx, VariantIdx>>: DynSync,
RawList<(), GenericArg<'tcx>>: DynSync,
<Bx as BackendTypes>::DIVariable: DynSync,
<Bx as BackendTypes>::DILocation: DynSync,
<Bx as Deref>::Target == <Bx as BuilderMethods<'a, 'tcx>>::CodegenCx,
impl<'a, 'tcx, Bx> Forget for ConstDebugInfo<'a, 'tcx, Bx>
impl<'a, 'tcx, Bx> Freeze for ConstDebugInfo<'a, 'tcx, Bx>where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
<Bx as BackendTypes>::Value: Freeze,
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: Freeze,
&'tcx LayoutData<FieldIdx, VariantIdx>: Freeze,
&'tcx RawList<(), GenericArg<'tcx>>: Freeze,
<Bx as BackendTypes>::DIVariable: Freeze,
<Bx as BackendTypes>::DILocation: Freeze,
PhantomData<&'a ()>: Freeze,
<Bx as Deref>::Target == <Bx as BuilderMethods<'a, 'tcx>>::CodegenCx,
impl<'a, 'tcx, Bx> Move for ConstDebugInfo<'a, 'tcx, Bx>
impl<'a, 'tcx, Bx> Send for ConstDebugInfo<'a, 'tcx, Bx>where
RawVecInner: Send,
<Bx as BackendTypes>::Value: Send,
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: Send,
&'tcx LayoutData<FieldIdx, VariantIdx>: Send,
&'tcx RawList<(), GenericArg<'tcx>>: Send,
<Bx as BackendTypes>::DIVariable: Send,
<Bx as BackendTypes>::DILocation: Send,
&'a (): Send,
<Bx as Deref>::Target == <Bx as BuilderMethods<'a, 'tcx>>::CodegenCx,
impl<'a, 'tcx, Bx> Sync for ConstDebugInfo<'a, 'tcx, Bx>where
RawVecInner: Sync,
<Bx as BackendTypes>::Value: Sync,
AdtDef<'tcx>: Sync,
GenericArgs<'tcx>: Sync,
DefId: Sync,
Ty<'tcx>: Sync,
Interned<'tcx, WithCachedTypeInfo<ConstKind<TyCtxt<'tcx>>>>: Sync,
Pattern<'tcx>: Sync,
Interned<'tcx, RegionKind<TyCtxt<'tcx>>>: Sync,
&'tcx RawList<(), BoundVariableKind<TyCtxt<'tcx>>>: Sync,
&'tcx RawList<(), Ty<'tcx>>: Sync,
&'tcx RawList<(), Binder<TyCtxt<'tcx>, ExistentialPredicate<TyCtxt<'tcx>>>>: Sync,
ParamTy: Sync,
ErrorGuaranteed: Sync,
InternalBitFlags: Sync,
NonZero<usize>: Sync,
NonZero<u16>: Sync,
RawList<(), GenericArg<'tcx>>: Sync,
<Bx as BackendTypes>::DIVariable: Sync,
<Bx as BackendTypes>::DILocation: Sync,
<Bx as Deref>::Target == <Bx as BuilderMethods<'a, 'tcx>>::CodegenCx,
impl<'a, 'tcx, Bx> Unpin for ConstDebugInfo<'a, 'tcx, Bx>where
*const u8 is !null: Unpin,
<Bx as BackendTypes>::Value: Unpin,
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: Unpin,
&'tcx LayoutData<FieldIdx, VariantIdx>: Unpin,
&'tcx RawList<(), GenericArg<'tcx>>: Unpin,
<Bx as BackendTypes>::DIVariable: Unpin,
<Bx as BackendTypes>::DILocation: Unpin,
&'a (): Unpin,
<Bx as Deref>::Target == <Bx as BuilderMethods<'a, 'tcx>>::CodegenCx,
impl<'a, 'tcx, Bx> UnsafeUnpin for ConstDebugInfo<'a, 'tcx, Bx>where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
<Bx as BackendTypes>::Value: UnsafeUnpin,
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: UnsafeUnpin,
&'tcx LayoutData<FieldIdx, VariantIdx>: UnsafeUnpin,
&'tcx RawList<(), GenericArg<'tcx>>: UnsafeUnpin,
<Bx as BackendTypes>::DIVariable: UnsafeUnpin,
<Bx as BackendTypes>::DILocation: UnsafeUnpin,
PhantomData<&'a ()>: UnsafeUnpin,
<Bx as Deref>::Target == <Bx as BuilderMethods<'a, 'tcx>>::CodegenCx,
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
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> 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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<K> IntoQueryKey<K> for K
impl<K> IntoQueryKey<K> for K
Source§fn into_query_key(self) -> K
fn into_query_key(self) -> K
Argument conversion from
Self to K.
This should always be a very cheap conversion, e.g. LocalDefId::to_def_id.Source§impl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
Source§impl<I, T> UpcastFrom<I, T> for T
impl<I, T> UpcastFrom<I, T> for T
fn upcast_from(from: T, _tcx: I) -> 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> ⓘ
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.