Remove span from delegate

This commit is contained in:
Michael Goulet
2025-01-29 23:31:31 +00:00
parent 820bfffc25
commit fd1110ce6a
3 changed files with 2 additions and 6 deletions

View File

@@ -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.