Remove span from delegate
This commit is contained in:
parent
820bfffc25
commit
fd1110ce6a
3 changed files with 2 additions and 6 deletions
|
@ -11,8 +11,6 @@ pub trait SolverDelegate: Deref<Target = <Self as SolverDelegate>::Infcx> + Size
|
|||
(**self).cx()
|
||||
}
|
||||
|
||||
type Span: Copy;
|
||||
|
||||
fn build_with_canonical<V>(
|
||||
cx: Self::Interner,
|
||||
canonical: &ty::CanonicalQueryInput<Self::Interner, V>,
|
||||
|
@ -23,7 +21,7 @@ pub trait SolverDelegate: Deref<Target = <Self as SolverDelegate>::Infcx> + Size
|
|||
fn fresh_var_for_kind_with_span(
|
||||
&self,
|
||||
arg: <Self::Interner as Interner>::GenericArg,
|
||||
span: Self::Span,
|
||||
span: <Self::Interner as Interner>::Span,
|
||||
) -> <Self::Interner as Interner>::GenericArg;
|
||||
|
||||
// FIXME: Uplift the leak check into this crate.
|
||||
|
|
|
@ -431,7 +431,7 @@ where
|
|||
// `rustc_trait_selection::solve::inspect::analyse`.
|
||||
pub fn instantiate_canonical_state<D, I, T: TypeFoldable<I>>(
|
||||
delegate: &D,
|
||||
span: D::Span,
|
||||
span: I::Span,
|
||||
param_env: I::ParamEnv,
|
||||
orig_values: &mut Vec<I::GenericArg>,
|
||||
state: inspect::CanonicalState<I, T>,
|
||||
|
|
|
@ -43,8 +43,6 @@ impl<'tcx> rustc_next_trait_solver::delegate::SolverDelegate for SolverDelegate<
|
|||
self.0.tcx
|
||||
}
|
||||
|
||||
type Span = Span;
|
||||
|
||||
fn build_with_canonical<V>(
|
||||
interner: TyCtxt<'tcx>,
|
||||
canonical: &CanonicalQueryInput<'tcx, V>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue