aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/display.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2021-04-04 12:07:06 +0100
committerFlorian Diebold <[email protected]>2021-04-04 12:16:39 +0100
commita4d7bdf1c884a9f3dd415a882fa56422adae89bf (patch)
tree8b5d2db036649ddc15c587a03e1684b3314be50b /crates/hir_ty/src/display.rs
parent715c178f0b52117c4c689c39a0921012bfbb2386 (diff)
Replace Substitution::bound_vars and ::type_params_for_generics
Diffstat (limited to 'crates/hir_ty/src/display.rs')
-rw-r--r--crates/hir_ty/src/display.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/display.rs b/crates/hir_ty/src/display.rs
index eb82e1a11..39e0b328d 100644
--- a/crates/hir_ty/src/display.rs
+++ b/crates/hir_ty/src/display.rs
@@ -19,7 +19,7 @@ use crate::{
19 db::HirDatabase, from_assoc_type_id, from_foreign_def_id, from_placeholder_idx, primitive, 19 db::HirDatabase, from_assoc_type_id, from_foreign_def_id, from_placeholder_idx, primitive,
20 to_assoc_type_id, traits::chalk::from_chalk, utils::generics, AdtId, AliasEq, AliasTy, 20 to_assoc_type_id, traits::chalk::from_chalk, utils::generics, AdtId, AliasEq, AliasTy,
21 CallableDefId, CallableSig, DomainGoal, GenericArg, ImplTraitId, Interner, Lifetime, OpaqueTy, 21 CallableDefId, CallableSig, DomainGoal, GenericArg, ImplTraitId, Interner, Lifetime, OpaqueTy,
22 ProjectionTy, QuantifiedWhereClause, Scalar, Substitution, TraitRef, Ty, TyExt, TyKind, 22 ProjectionTy, QuantifiedWhereClause, Scalar, TraitRef, Ty, TyExt, TyKind,
23 WhereClause, 23 WhereClause,
24}; 24};
25 25
@@ -592,7 +592,7 @@ impl HirDisplay for Ty {
592 write!(f, "{}", param_data.name.clone().unwrap_or_else(Name::missing))? 592 write!(f, "{}", param_data.name.clone().unwrap_or_else(Name::missing))?
593 } 593 }
594 TypeParamProvenance::ArgumentImplTrait => { 594 TypeParamProvenance::ArgumentImplTrait => {
595 let substs = Substitution::type_params_for_generics(f.db, &generics); 595 let substs = generics.type_params_subst(f.db);
596 let bounds = f 596 let bounds = f
597 .db 597 .db
598 .generic_predicates(id.parent) 598 .generic_predicates(id.parent)