diff --git a/crates/hir_def/src/path.rs b/crates/hir_def/src/path.rs
index f98622faac..4cdb5913de 100644
--- a/crates/hir_def/src/path.rs
+++ b/crates/hir_def/src/path.rs
@@ -166,7 +166,10 @@ impl Path {
}
/// Converts a known mod path to `Path`.
- pub fn from_known_path(path: ModPath, generic_args: Vec