This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,6 @@ pub type ConstrainedSubst = chalk_ir::ConstrainedSubst<Interner>;
124124pub type Guidance = chalk_solve:: Guidance < Interner > ;
125125pub type WhereClause = chalk_ir:: WhereClause < Interner > ;
126126
127- // FIXME: get rid of this
128- pub fn subst_prefix ( s : & Substitution , n : usize ) -> Substitution {
129- Substitution :: from_iter (
130- Interner ,
131- s. as_slice ( Interner ) [ ..std:: cmp:: min ( s. len ( Interner ) , n) ] . iter ( ) . cloned ( ) ,
132- )
133- }
134-
135127/// Return an index of a parameter in the generic type parameter list by it's id.
136128pub fn param_idx ( db : & dyn HirDatabase , id : TypeOrConstParamId ) -> Option < usize > {
137129 generics ( db. upcast ( ) , id. parent ) . param_idx ( id)
@@ -382,7 +374,6 @@ pub(crate) fn fold_tys_and_consts<T: HasInterner<Interner = Interner> + TypeFold
382374pub fn replace_errors_with_variables < T > ( t : & T ) -> Canonical < T >
383375where
384376 T : HasInterner < Interner = Interner > + TypeFoldable < Interner > + Clone ,
385- T : HasInterner < Interner = Interner > ,
386377{
387378 use chalk_ir:: {
388379 fold:: { FallibleTypeFolder , TypeSuperFoldable } ,
You can’t perform that action at this time.
0 commit comments