We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5794a09 commit dc0b581Copy full SHA for dc0b581
crates/hir_ty/src/lib.rs
@@ -110,7 +110,10 @@ pub type WhereClause = chalk_ir::WhereClause<Interner>;
110
111
// FIXME: get rid of this
112
pub fn subst_prefix(s: &Substitution, n: usize) -> Substitution {
113
- Substitution::intern(s.interned()[..std::cmp::min(s.len(&Interner), n)].into())
+ Substitution::from_iter(
114
+ &Interner,
115
+ s.interned()[..std::cmp::min(s.len(&Interner), n)].iter().cloned(),
116
+ )
117
}
118
119
/// Return an index of a parameter in the generic type parameter list by it's id.
0 commit comments