pub struct EvalCtxt<'a, D, I = I>where
D: SolverDelegate<Interner = I>,
I: Interner,{
delegate: &'a D,
var_kinds: <I as Interner>::CanonicalVarKinds,
current_goal_kind: CurrentGoalKind,
pub(super) var_values: <I as Interner>::GenericArgs,
pub(super) max_input_universe: UniverseIndex,
pub(super) initial_opaque_types_storage_num_entries: <<D as SolverDelegate>::Infcx as InferCtxtLike>::OpaqueTypeStorageEntries,
pub(super) search_graph: &'a mut SearchGraph<SearchGraphDelegate<D>, I>,
nested_goals: Vec<(GoalSource, Goal<I, <I as Interner>::Predicate>, Option<GoalStalledOn<I>>)>,
pub(super) origin_span: <I as Interner>::Span,
tainted: Result<(), NoSolution>,
pub(super) opaque_accesses: AccessedOpaques<I>,
pub(super) inspect: EvaluationStepBuilder<D, I>,
}Fields§
§delegate: &'a D§var_kinds: <I as Interner>::CanonicalVarKinds§current_goal_kind: CurrentGoalKind§var_values: <I as Interner>::GenericArgs§max_input_universe: UniverseIndex§initial_opaque_types_storage_num_entries: <<D as SolverDelegate>::Infcx as InferCtxtLike>::OpaqueTypeStorageEntries§search_graph: &'a mut SearchGraph<SearchGraphDelegate<D>, I>§nested_goals: Vec<(GoalSource, Goal<I, <I as Interner>::Predicate>, Option<GoalStalledOn<I>>)>§origin_span: <I as Interner>::Span§tainted: Result<(), NoSolution>§opaque_accesses: AccessedOpaques<I>§inspect: EvaluationStepBuilder<D, I>Implementations§
impl<'a, D, I> EvalCtxt<'a, D, I>where
D: SolverDelegate<Interner = I>,
I: Interner,
This impl block contains no public items.
Logic for -Zassumptions-on-binders stuff
Source§impl<D, I> EvalCtxt<'_, D, I>where
D: SolverDelegate<Interner = I>,
I: Interner,
impl<D, I> EvalCtxt<'_, D, I>where
D: SolverDelegate<Interner = I>,
I: Interner,
Sourcepub fn push_const_arg_has_type_goal(
&mut self,
param_env: <I as Interner>::ParamEnv,
alias: Alias<I, AliasTermKind<I>>,
term: <I as Interner>::Term,
) -> Result<(), NoSolutionOrRerunNonErased>
pub fn push_const_arg_has_type_goal( &mut self, param_env: <I as Interner>::ParamEnv, alias: Alias<I, AliasTermKind<I>>, term: <I as Interner>::Term, ) -> Result<(), NoSolutionOrRerunNonErased>
When normalizing a const alias, register a ConstArgHasType goal
to ensure the const value’s type matches the declared type.
Auto Trait Implementations§
impl<'a, D, I = <D as SolverDelegate>::Interner> !UnwindSafe for EvalCtxt<'a, D, I>
impl<'a, D, I> DynSend for EvalCtxt<'a, D, I>where
&'a D: DynSend,
<I as Interner>::CanonicalVarKinds: DynSend,
<I as Interner>::GenericArgs: DynSend,
<<D as SolverDelegate>::Infcx as InferCtxtLike>::OpaqueTypeStorageEntries: DynSend,
Vec<StackEntry<I>>: DynSend,
HashMap<<I as Interner>::CanonicalInput, Vec<ProvisionalCacheEntry<I>>, FxBuildHasher>: DynSend,
D: DynSend,
Vec<(GoalSource, Goal<I, <I as Interner>::Predicate>, Option<GoalStalledOn<I>>)>: DynSend,
<I as Interner>::Span: DynSend,
<I as Interner>::LocalDefId: DynSend,
Box<WipEvaluationStep<I>>: DynSend,
<D as Deref>::Target == <D as SolverDelegate>::Infcx,
impl<'a, D, I> DynSync for EvalCtxt<'a, D, I>where
D: DynSync,
<I as Interner>::CanonicalVarKinds: DynSync,
<I as Interner>::GenericArgs: DynSync,
<<D as SolverDelegate>::Infcx as InferCtxtLike>::OpaqueTypeStorageEntries: DynSync,
Vec<StackEntry<I>>: DynSync,
HashMap<<I as Interner>::CanonicalInput, Vec<ProvisionalCacheEntry<I>>, FxBuildHasher>: DynSync,
Vec<(GoalSource, Goal<I, <I as Interner>::Predicate>, Option<GoalStalledOn<I>>)>: DynSync,
<I as Interner>::Span: DynSync,
<I as Interner>::LocalDefId: DynSync,
Box<WipEvaluationStep<I>>: DynSync,
<D as Deref>::Target == <D as SolverDelegate>::Infcx,
impl<'a, D, I> Forget for EvalCtxt<'a, D, I>
impl<'a, D, I> Freeze for EvalCtxt<'a, D, I>where
&'a D: Freeze,
<I as Interner>::CanonicalVarKinds: Freeze,
<I as Interner>::GenericArgs: Freeze,
<<D as SolverDelegate>::Infcx as InferCtxtLike>::OpaqueTypeStorageEntries: Freeze,
&'a mut SearchGraph<SearchGraphDelegate<D>, I>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(GoalSource, Goal<I, <I as Interner>::Predicate>, Option<GoalStalledOn<I>>)>: Freeze,
<I as Interner>::Span: Freeze,
<I as Interner>::LocalDefId: Freeze,
*const WipEvaluationStep<I> is !null: Freeze,
PhantomData<WipEvaluationStep<I>>: Freeze,
PhantomData<D>: Freeze,
<D as Deref>::Target == <D as SolverDelegate>::Infcx,
impl<'a, D, I> Move for EvalCtxt<'a, D, I>
impl<'a, D, I> RefUnwindSafe for EvalCtxt<'a, D, I>where
D: RefUnwindSafe,
<I as Interner>::CanonicalVarKinds: RefUnwindSafe,
<I as Interner>::GenericArgs: RefUnwindSafe,
<<D as SolverDelegate>::Infcx as InferCtxtLike>::OpaqueTypeStorageEntries: RefUnwindSafe,
<I as Interner>::CanonicalInput: RefUnwindSafe,
(Result<Canonical<I, Response<I>>, NoSolution>, AccessedOpaques<I>): RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
<I as Interner>::ParamEnv: RefUnwindSafe,
<I as Interner>::Predicate: RefUnwindSafe,
<I as Interner>::LocalDefId: RefUnwindSafe,
<I as Interner>::Span: RefUnwindSafe,
<I as Interner>::GenericArg: RefUnwindSafe,
<I as Interner>::ExternalConstraints: RefUnwindSafe,
<I as Interner>::ImplId: RefUnwindSafe,
<D as Deref>::Target == <D as SolverDelegate>::Infcx,
impl<'a, D, I> Send for EvalCtxt<'a, D, I>where
D: Send,
&'a D: Send,
<I as Interner>::CanonicalVarKinds: Send,
<I as Interner>::GenericArgs: Send,
<<D as SolverDelegate>::Infcx as InferCtxtLike>::OpaqueTypeStorageEntries: Send,
IndexVec<StackDepth, StackEntry<I>>: Send,
RawTable<(<I as Interner>::CanonicalInput, Vec<ProvisionalCacheEntry<I>>)>: Send,
RawVecInner: Send,
<I as Interner>::ParamEnv: Send,
<I as Interner>::Predicate: Send,
ThinVec<TyOrConstInferVar>: Send,
ThinVec<TyVid>: Send,
<I as Interner>::LocalDefId: Send,
<I as Interner>::Span: Send,
BoxRaw<WipEvaluationStep<I>>: Send,
<D as Deref>::Target == <D as SolverDelegate>::Infcx,
impl<'a, D, I> Sync for EvalCtxt<'a, D, I>where
D: Sync,
<I as Interner>::CanonicalVarKinds: Sync,
<I as Interner>::GenericArgs: Sync,
<<D as SolverDelegate>::Infcx as InferCtxtLike>::OpaqueTypeStorageEntries: Sync,
RawVecInner: Sync,
<I as Interner>::CanonicalInput: Sync,
(Result<Canonical<I, Response<I>>, NoSolution>, AccessedOpaques<I>): Sync,
NodeRef<Owned, StackDepth, CycleHead, LeafOrInternal>: Sync,
BoxRaw<(StackDepth, CycleHead)>: Sync,
BoxRaw<HashMap<StackDepth, HeadUsages, FxBuildHasher>>: Sync,
RawTable<(<I as Interner>::CanonicalInput, PathsToNested)>: Sync,
RawTable<(<I as Interner>::CanonicalInput, Vec<ProvisionalCacheEntry<I>>)>: Sync,
<I as Interner>::ParamEnv: Sync,
<I as Interner>::Predicate: Sync,
ThinVec<TyOrConstInferVar>: Sync,
ThinVec<TyVid>: Sync,
<I as Interner>::LocalDefId: Sync,
<I as Interner>::Span: Sync,
BoxRaw<WipEvaluationStep<I>>: Sync,
<D as Deref>::Target == <D as SolverDelegate>::Infcx,
impl<'a, D, I> Unpin for EvalCtxt<'a, D, I>where
D: Unpin,
&'a D: Unpin,
<I as Interner>::CanonicalVarKinds: Unpin,
<I as Interner>::GenericArgs: Unpin,
<<D as SolverDelegate>::Infcx as InferCtxtLike>::OpaqueTypeStorageEntries: Unpin,
&'a mut SearchGraph<SearchGraphDelegate<D>, I>: Unpin,
*const u8 is !null: Unpin,
<I as Interner>::ParamEnv: Unpin,
<I as Interner>::Predicate: Unpin,
*const Header is !null: Unpin,
<I as Interner>::LocalDefId: Unpin,
<I as Interner>::Span: Unpin,
Box<WipEvaluationStep<I>>: Unpin,
<D as Deref>::Target == <D as SolverDelegate>::Infcx,
impl<'a, D, I> UnsafeUnpin for EvalCtxt<'a, D, I>where
&'a D: UnsafeUnpin,
<I as Interner>::CanonicalVarKinds: UnsafeUnpin,
<I as Interner>::GenericArgs: UnsafeUnpin,
<<D as SolverDelegate>::Infcx as InferCtxtLike>::OpaqueTypeStorageEntries: UnsafeUnpin,
&'a mut SearchGraph<SearchGraphDelegate<D>, I>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(GoalSource, Goal<I, <I as Interner>::Predicate>, Option<GoalStalledOn<I>>)>: UnsafeUnpin,
<I as Interner>::Span: UnsafeUnpin,
<I as Interner>::LocalDefId: UnsafeUnpin,
*const WipEvaluationStep<I> is !null: UnsafeUnpin,
PhantomData<WipEvaluationStep<I>>: UnsafeUnpin,
PhantomData<D>: UnsafeUnpin,
<D as Deref>::Target == <D as SolverDelegate>::Infcx,
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.