Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/generics.rs')
| -rw-r--r-- | crates/hir-def/src/generics.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/hir-def/src/generics.rs b/crates/hir-def/src/generics.rs index 04b77894ae..f54f084ec3 100644 --- a/crates/hir-def/src/generics.rs +++ b/crates/hir-def/src/generics.rs @@ -133,14 +133,6 @@ pub enum WherePredicateTypeTarget { } impl GenericParams { - // FIXME: almost every usecase of this function is wrong. every one should check - // const generics - pub fn type_iter<'a>( - &'a self, - ) -> impl Iterator<Item = (Idx<TypeOrConstParamData>, &TypeParamData)> { - self.type_or_consts.iter().filter_map(|x| x.1.type_param().map(|y| (x.0, y))) - } - /// Iterator of type_or_consts field pub fn iter<'a>( &'a self, |