mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Binders::subst -> substitute
This commit is contained in:
parent
ad20f00844
commit
05eba0db3d
14 changed files with 39 additions and 39 deletions
|
@ -139,7 +139,7 @@ impl TyBuilder<hir_def::AdtId> {
|
|||
} else {
|
||||
// each default can depend on the previous parameters
|
||||
let subst_so_far = Substitution::intern(self.vec.clone());
|
||||
self.vec.push(default_ty.clone().subst(&subst_so_far).cast(&Interner));
|
||||
self.vec.push(default_ty.clone().substitute(&subst_so_far).cast(&Interner));
|
||||
}
|
||||
}
|
||||
self
|
||||
|
@ -200,7 +200,7 @@ impl<T: TypeWalk + HasInterner<Interner = Interner>> TyBuilder<Binders<T>> {
|
|||
|
||||
pub fn build(self) -> T {
|
||||
let (b, subst) = self.build_internal();
|
||||
b.subst(&subst)
|
||||
b.substitute(&subst)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue