File tree 3 files changed +2
-6
lines changed
rustc_next_trait_solver/src
rustc_trait_selection/src/solve
3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ pub trait SolverDelegate: Deref<Target = <Self as SolverDelegate>::Infcx> + Size
11
11
( * * self ) . cx ( )
12
12
}
13
13
14
- type Span : Copy ;
15
-
16
14
fn build_with_canonical < V > (
17
15
cx : Self :: Interner ,
18
16
canonical : & ty:: CanonicalQueryInput < Self :: Interner , V > ,
@@ -23,7 +21,7 @@ pub trait SolverDelegate: Deref<Target = <Self as SolverDelegate>::Infcx> + Size
23
21
fn fresh_var_for_kind_with_span (
24
22
& self ,
25
23
arg : <Self :: Interner as Interner >:: GenericArg ,
26
- span : Self :: Span ,
24
+ span : < Self :: Interner as Interner > :: Span ,
27
25
) -> <Self :: Interner as Interner >:: GenericArg ;
28
26
29
27
// FIXME: Uplift the leak check into this crate.
Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ where
431
431
// `rustc_trait_selection::solve::inspect::analyse`.
432
432
pub fn instantiate_canonical_state < D , I , T : TypeFoldable < I > > (
433
433
delegate : & D ,
434
- span : D :: Span ,
434
+ span : I :: Span ,
435
435
param_env : I :: ParamEnv ,
436
436
orig_values : & mut Vec < I :: GenericArg > ,
437
437
state : inspect:: CanonicalState < I , T > ,
Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ impl<'tcx> rustc_next_trait_solver::delegate::SolverDelegate for SolverDelegate<
43
43
self . 0 . tcx
44
44
}
45
45
46
- type Span = Span ;
47
-
48
46
fn build_with_canonical < V > (
49
47
interner : TyCtxt < ' tcx > ,
50
48
canonical : & CanonicalQueryInput < ' tcx , V > ,
You can’t perform that action at this time.
0 commit comments