aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
authorDawer <[email protected]>2021-05-10 12:55:00 +0100
committerDawer <[email protected]>2021-05-31 20:08:27 +0100
commit466345ca81c9f8a17347671ca27856eb963858f4 (patch)
tree8327771c3d67f7c4509b373e8ad7075f5cfd5ac6 /crates/hir_def
parent49e016169fc8413e2734a655cbd55ebba2907b76 (diff)
Clean up, more docs.
Diffstat (limited to 'crates/hir_def')
-rw-r--r--crates/hir_def/src/path.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/hir_def/src/path.rs b/crates/hir_def/src/path.rs
index 4cdb5913d..f98622faa 100644
--- a/crates/hir_def/src/path.rs
+++ b/crates/hir_def/src/path.rs
@@ -166,10 +166,7 @@ impl Path {
166 } 166 }
167 167
168 /// Converts a known mod path to `Path`. 168 /// Converts a known mod path to `Path`.
169 pub fn from_known_path( 169 pub fn from_known_path(path: ModPath, generic_args: Vec<Option<Interned<GenericArgs>>>) -> Path {
170 path: ModPath,
171 generic_args: Vec<Option<Interned<GenericArgs>>>,
172 ) -> Path {
173 Path { type_anchor: None, mod_path: Interned::new(path), generic_args } 170 Path { type_anchor: None, mod_path: Interned::new(path), generic_args }
174 } 171 }
175 172