Skip to content

Commit c45073e

Browse files
committed
SolverDelegate add assoc type for Infcx
1 parent 06d261d commit c45073e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎compiler/rustc_next_trait_solver/src/delegate.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ use rustc_type_ir::fold::TypeFoldable;
44
use rustc_type_ir::solve::{Certainty,Goal,NoSolution,SolverMode};
55
use rustc_type_ir::{selfas ty,InferCtxtLike,Interner};
66

7-
pubtraitSolverDelegate:
8-
Deref<Target:InferCtxtLike<Interner = <SelfasSolverDelegate>::Interner>> + Sized
9-
{
7+
pubtraitSolverDelegate:Deref<Target = <SelfasSolverDelegate>::Infcx> + Sized{
8+
typeInfcx:InferCtxtLike<Interner = <SelfasSolverDelegate>::Interner>;
109
typeInterner:Interner;
1110
fncx(&self) -> Self::Interner{
1211
(**self).cx()

‎compiler/rustc_trait_selection/src/solve/delegate.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ impl<'tcx> Deref for SolverDelegate<'tcx> {
3636
}
3737

3838
impl<'tcx> rustc_next_trait_solver::delegate::SolverDelegateforSolverDelegate<'tcx>{
39+
typeInfcx = InferCtxt<'tcx>;
3940
typeInterner = TyCtxt<'tcx>;
4041

4142
fncx(&self) -> TyCtxt<'tcx>{

0 commit comments

Comments
 (0)