aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/item_tree
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-04-03 19:56:53 +0100
committerJonas Schievink <[email protected]>2021-04-03 19:57:25 +0100
commitf7e6b186e1d2f3a31b8e21d0885e13f12f12d71b (patch)
tree9d7a2c08e173ee9bf20cd09ca068ff3de83489f4 /crates/hir_def/src/item_tree
parente2213a503ec4c602eb976dccb9d34b56d9c6aba3 (diff)
Intern `ModPath` in `Import`
Minor savings only
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 5247379c5..ead7cd7a4 100644
--- a/crates/hir_def/src/item_tree/lower.rs
+++ b/crates/hir_def/src/item_tree/lower.rs
@@ -577,7 +577,7 @@ impl Ctx {
577 &self.hygiene, 577 &self.hygiene,
578 |path, _use_tree, is_glob, alias| { 578 |path, _use_tree, is_glob, alias| {
579 imports.push(id(tree.imports.alloc(Import { 579 imports.push(id(tree.imports.alloc(Import {
580 path, 580 path: Interned::new(path),
581 alias, 581 alias,
582 visibility, 582 visibility,
583 is_glob, 583 is_glob,