aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/item_tree
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-05-24 14:35:46 +0100
committerJonas Schievink <[email protected]>2021-05-24 14:35:46 +0100
commit533e9207d39c27dc22de2645fc65891189a71739 (patch)
treeaeb89306e864bff3fc612d26ab6242a75b3e3885 /crates/hir_def/src/item_tree
parent8ebb8d29e18d7cb18bd2b57b004dcecd65a96232 (diff)
Intern `GenericArgs`
This shaves off another ~4 mb or so
Diffstat (limited to 'crates/hir_def/src/item_tree')
-rw-r--r--crates/hir_def/src/item_tree/lower.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs
index 1a0e54413..b4389371f 100644
--- a/crates/hir_def/src/item_tree/lower.rs
+++ b/crates/hir_def/src/item_tree/lower.rs
@@ -811,7 +811,7 @@ fn desugar_future_path(orig: TypeRef) -> Path {
811 let binding = 811 let binding =
812 AssociatedTypeBinding { name: name![Output], type_ref: Some(orig), bounds: Vec::new() }; 812 AssociatedTypeBinding { name: name![Output], type_ref: Some(orig), bounds: Vec::new() };
813 last.bindings.push(binding); 813 last.bindings.push(binding);
814 generic_args.push(Some(Arc::new(last))); 814 generic_args.push(Some(Interned::new(last)));
815 815
816 Path::from_known_path(path, generic_args) 816 Path::from_known_path(path, generic_args)
817} 817}