pub struct QueryStackFrame<I> {
pub info: I,
pub dep_kind: DepKind,
hash: Hash64,
pub def_id: Option<DefId>,
pub def_id_for_ty_in_cycle: Option<DefId>,
}Expand description
Description of a frame in the query stack.
This is mostly used in case of cycles for error reporting.
Fields§
§info: IThis field initially stores a QueryStackDeferred during collection,
but can later be changed to QueryStackFrameExtra containing concrete information
by calling lift. This is done so that collecting query does not need to invoke
queries, instead lift will call queries in a more appropriate location.
dep_kind: DepKind§hash: Hash64This hash is used to deterministically pick a query to remove cycles in the parallel compiler.
def_id: Option<DefId>§def_id_for_ty_in_cycle: Option<DefId>A def-id that is extracted from a Ty in a query key
Implementations§
Source§impl<I> QueryStackFrame<I>
impl<I> QueryStackFrame<I>
pub fn new( info: I, dep_kind: DepKind, hash: impl FnOnce() -> Hash64, def_id: Option<DefId>, def_id_for_ty_in_cycle: Option<DefId>, ) -> Self
fn lift<Qcx: QueryContext<QueryInfo = I>>( &self, qcx: Qcx, ) -> QueryStackFrame<QueryStackFrameExtra>
Trait Implementations§
Source§impl<I: Clone> Clone for QueryStackFrame<I>
impl<I: Clone> Clone for QueryStackFrame<I>
Source§fn clone(&self) -> QueryStackFrame<I>
fn clone(&self) -> QueryStackFrame<I>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<I> DynSend for QueryStackFrame<I>where
I: DynSend,
impl<I> DynSync for QueryStackFrame<I>where
I: DynSync,
impl<I> Freeze for QueryStackFrame<I>where
I: Freeze,
impl<I> RefUnwindSafe for QueryStackFrame<I>where
I: RefUnwindSafe,
impl<I> Send for QueryStackFrame<I>where
I: Send,
impl<I> Sync for QueryStackFrame<I>where
I: Sync,
impl<I> Unpin for QueryStackFrame<I>where
I: Unpin,
impl<I> UnwindSafe for QueryStackFrame<I>where
I: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
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<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<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<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.