aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/builder.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2021-04-04 12:16:16 +0100
committerFlorian Diebold <[email protected]>2021-04-04 12:16:39 +0100
commitebdfc932e74ff11c8c14c513614212b7c07bf400 (patch)
tree85263e70c101206330ed95c00ce226a61c098c0c /crates/hir_ty/src/builder.rs
parenta4d7bdf1c884a9f3dd415a882fa56422adae89bf (diff)
Replace Substitution::type_params
Diffstat (limited to 'crates/hir_ty/src/builder.rs')
-rw-r--r--crates/hir_ty/src/builder.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/hir_ty/src/builder.rs b/crates/hir_ty/src/builder.rs
index ba158a749..4d3b4eade 100644
--- a/crates/hir_ty/src/builder.rs
+++ b/crates/hir_ty/src/builder.rs
@@ -99,6 +99,11 @@ impl TyBuilder<()> {
99 } 99 }
100 } 100 }
101 101
102 pub fn type_params_subst(db: &dyn HirDatabase, def: impl Into<GenericDefId>) -> Substitution {
103 let params = generics(db.upcast(), def.into());
104 params.type_params_subst(db)
105 }
106
102 pub fn subst_for_def(db: &dyn HirDatabase, def: impl Into<GenericDefId>) -> TyBuilder<()> { 107 pub fn subst_for_def(db: &dyn HirDatabase, def: impl Into<GenericDefId>) -> TyBuilder<()> {
103 let def = def.into(); 108 let def = def.into();
104 let params = generics(db.upcast(), def); 109 let params = generics(db.upcast(), def);