aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src/path.rs')
-rw-r--r--crates/ra_hir_def/src/path.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/crates/ra_hir_def/src/path.rs b/crates/ra_hir_def/src/path.rs
index 8d57e7761..d0b842a6b 100644
--- a/crates/ra_hir_def/src/path.rs
+++ b/crates/ra_hir_def/src/path.rs
@@ -2,19 +2,17 @@
2 2
3use std::{iter, sync::Arc}; 3use std::{iter, sync::Arc};
4 4
5use hir_expand::either::Either; 5use hir_expand::{
6 either::Either,
7 name::{self, AsName, Name},
8};
6use ra_db::CrateId; 9use ra_db::CrateId;
7use ra_syntax::{ 10use ra_syntax::{
8 ast::{self, NameOwner, TypeAscriptionOwner}, 11 ast::{self, NameOwner, TypeAscriptionOwner},
9 AstNode, 12 AstNode,
10}; 13};
11 14
12use crate::{ 15use crate::{hygiene::Hygiene, type_ref::TypeRef, Source};
13 hygiene::Hygiene,
14 name::{self, AsName, Name},
15 type_ref::TypeRef,
16 Source,
17};
18 16
19#[derive(Debug, Clone, PartialEq, Eq, Hash)] 17#[derive(Debug, Clone, PartialEq, Eq, Hash)]
20pub struct Path { 18pub struct Path {
@@ -392,8 +390,9 @@ fn convert_path(prefix: Option<Path>, path: ast::Path, hygiene: &Hygiene) -> Opt
392} 390}
393 391
394pub mod known { 392pub mod known {
393 use hir_expand::name;
394
395 use super::{Path, PathKind}; 395 use super::{Path, PathKind};
396 use crate::name;
397 396
398 pub fn std_iter_into_iterator() -> Path { 397 pub fn std_iter_into_iterator() -> Path {
399 Path::from_simple_segments( 398 Path::from_simple_segments(