mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Remove our unification code, use Chalk's instead
This commit is contained in:
parent
eb08a27f1b
commit
84074cb185
8 changed files with 125 additions and 438 deletions
|
@ -798,7 +798,8 @@ pub(crate) fn inherent_impl_substs(
|
|||
binders: CanonicalVarKinds::from_iter(&Interner, kinds),
|
||||
value: (self_ty_with_vars, self_ty.value.clone()),
|
||||
};
|
||||
let substs = super::infer::unify(&tys)?;
|
||||
let trait_env = Arc::new(TraitEnvironment::default()); // FIXME
|
||||
let substs = super::infer::unify(db, trait_env, &tys)?;
|
||||
// We only want the substs for the vars we added, not the ones from self_ty.
|
||||
// Also, if any of the vars we added are still in there, we replace them by
|
||||
// Unknown. I think this can only really happen if self_ty contained
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue