Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/mod_path.rs')
-rw-r--r--crates/hir-expand/src/mod_path.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/hir-expand/src/mod_path.rs b/crates/hir-expand/src/mod_path.rs
index 0cf1fadec9..ae10ad2f80 100644
--- a/crates/hir-expand/src/mod_path.rs
+++ b/crates/hir-expand/src/mod_path.rs
@@ -144,6 +144,12 @@ impl ModPath {
}
}
+impl Extend<Name> for ModPath {
+ fn extend<T: IntoIterator<Item = Name>>(&mut self, iter: T) {
+ self.segments.extend(iter);
+ }
+}
+
struct Display<'a> {
db: &'a dyn ExpandDatabase,
path: &'a ModPath,