diff options
Diffstat (limited to 'crates/ra_hir/src/ty.rs')
-rw-r--r-- | crates/ra_hir/src/ty.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs index cd2ac0e8b..6f24cfad6 100644 --- a/crates/ra_hir/src/ty.rs +++ b/crates/ra_hir/src/ty.rs | |||
@@ -17,8 +17,11 @@ use std::sync::Arc; | |||
17 | use std::{fmt, iter, mem}; | 17 | use std::{fmt, iter, mem}; |
18 | 18 | ||
19 | use crate::{ | 19 | use crate::{ |
20 | db::HirDatabase, expr::ExprId, util::make_mut_slice, Adt, Crate, DefWithBody, GenericParams, | 20 | db::HirDatabase, |
21 | HasGenericParams, Mutability, Name, Trait, TypeAlias, | 21 | expr::ExprId, |
22 | generics::{GenericParams, HasGenericParams}, | ||
23 | util::make_mut_slice, | ||
24 | Adt, Crate, DefWithBody, Mutability, Name, Trait, TypeAlias, | ||
22 | }; | 25 | }; |
23 | use display::{HirDisplay, HirFormatter}; | 26 | use display::{HirDisplay, HirFormatter}; |
24 | 27 | ||
@@ -342,10 +345,7 @@ impl Substs { | |||
342 | ) | 345 | ) |
343 | } | 346 | } |
344 | 347 | ||
345 | pub fn build_for_def( | 348 | pub fn build_for_def(db: &impl HirDatabase, def: impl HasGenericParams) -> SubstsBuilder { |
346 | db: &impl HirDatabase, | ||
347 | def: impl crate::HasGenericParams, | ||
348 | ) -> SubstsBuilder { | ||
349 | let params = def.generic_params(db); | 349 | let params = def.generic_params(db); |
350 | let param_count = params.count_params_including_parent(); | 350 | let param_count = params.count_params_including_parent(); |
351 | Substs::builder(param_count) | 351 | Substs::builder(param_count) |