aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/item_tree.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def/src/item_tree.rs')
-rw-r--r--crates/hir_def/src/item_tree.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir_def/src/item_tree.rs b/crates/hir_def/src/item_tree.rs
index 508736885..c960f66d6 100644
--- a/crates/hir_def/src/item_tree.rs
+++ b/crates/hir_def/src/item_tree.rs
@@ -543,18 +543,18 @@ pub enum UseTreeKind {
543 /// use path::to::Item as Renamed; 543 /// use path::to::Item as Renamed;
544 /// use path::to::Trait as _; 544 /// use path::to::Trait as _;
545 /// ``` 545 /// ```
546 Single { path: ModPath, alias: Option<ImportAlias> }, 546 Single { path: Interned<ModPath>, alias: Option<ImportAlias> },
547 547
548 /// ```ignore 548 /// ```ignore
549 /// use *; // (invalid, but can occur in nested tree) 549 /// use *; // (invalid, but can occur in nested tree)
550 /// use path::*; 550 /// use path::*;
551 /// ``` 551 /// ```
552 Glob { path: Option<ModPath> }, 552 Glob { path: Option<Interned<ModPath>> },
553 553
554 /// ```ignore 554 /// ```ignore
555 /// use prefix::{self, Item, ...}; 555 /// use prefix::{self, Item, ...};
556 /// ``` 556 /// ```
557 Prefixed { prefix: Option<ModPath>, list: Vec<UseTree> }, 557 Prefixed { prefix: Option<Interned<ModPath>>, list: Box<[UseTree]> },
558} 558}
559 559
560#[derive(Debug, Clone, Eq, PartialEq)] 560#[derive(Debug, Clone, Eq, PartialEq)]
@@ -811,7 +811,7 @@ impl UseTree {
811 }, 811 },
812 None => prefix, 812 None => prefix,
813 }; 813 };
814 for tree in list { 814 for tree in &**list {
815 tree.expand_impl(prefix.clone(), cb); 815 tree.expand_impl(prefix.clone(), cb);
816 } 816 }
817 } 817 }