Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/lower/path.rs')
-rw-r--r--crates/hir-ty/src/lower/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/lower/path.rs b/crates/hir-ty/src/lower/path.rs
index 49b45a40e6..27d52881c6 100644
--- a/crates/hir-ty/src/lower/path.rs
+++ b/crates/hir-ty/src/lower/path.rs
@@ -1191,7 +1191,7 @@ pub(crate) fn substs_from_args_and_bindings<'db>(
ctx,
);
- let mut substs = Vec::with_capacity(def_generics.len());
+ let mut substs = Vec::with_capacity(def_generics.len(true));
substs.extend(
def_generics.iter_parent_id().enumerate().map(|(idx, id)| ctx.parent_arg(idx as u32, id)),