aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/lib.rs')
-rw-r--r--crates/hir_ty/src/lib.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/hir_ty/src/lib.rs b/crates/hir_ty/src/lib.rs
index 75bf8bcd9..b37566958 100644
--- a/crates/hir_ty/src/lib.rs
+++ b/crates/hir_ty/src/lib.rs
@@ -493,10 +493,6 @@ impl Substitution {
493 ) 493 )
494 } 494 }
495 495
496 pub(crate) fn build_for_generics(generic_params: &Generics) -> SubstsBuilder {
497 Substitution::builder(generic_params.len())
498 }
499
500 fn builder(param_count: usize) -> SubstsBuilder { 496 fn builder(param_count: usize) -> SubstsBuilder {
501 SubstsBuilder { vec: Vec::with_capacity(param_count), param_count } 497 SubstsBuilder { vec: Vec::with_capacity(param_count), param_count }
502 } 498 }