From 263401bf751c66fadd4e9a46cce29dd724cc0985 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 15 Jan 2020 17:44:12 +0100 Subject: Rename --- crates/ra_hir_def/src/path/lower/lower_use.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_hir_def/src/path') diff --git a/crates/ra_hir_def/src/path/lower/lower_use.rs b/crates/ra_hir_def/src/path/lower/lower_use.rs index 3218eaf0a..531878174 100644 --- a/crates/ra_hir_def/src/path/lower/lower_use.rs +++ b/crates/ra_hir_def/src/path/lower/lower_use.rs @@ -84,7 +84,7 @@ fn convert_path(prefix: Option, path: ast::Path, hygiene: &Hygiene) -> res } Either::Right(crate_id) => { - return Some(ModPath::from_simple_segments( + return Some(ModPath::from_segments( PathKind::DollarCrate(crate_id), iter::empty(), )) @@ -95,19 +95,19 @@ fn convert_path(prefix: Option, path: ast::Path, hygiene: &Hygiene) -> if prefix.is_some() { return None; } - ModPath::from_simple_segments(PathKind::Crate, iter::empty()) + ModPath::from_segments(PathKind::Crate, iter::empty()) } ast::PathSegmentKind::SelfKw => { if prefix.is_some() { return None; } - ModPath::from_simple_segments(PathKind::Super(0), iter::empty()) + ModPath::from_segments(PathKind::Super(0), iter::empty()) } ast::PathSegmentKind::SuperKw => { if prefix.is_some() { return None; } - ModPath::from_simple_segments(PathKind::Super(1), iter::empty()) + ModPath::from_segments(PathKind::Super(1), iter::empty()) } ast::PathSegmentKind::Type { .. } => { // not allowed in imports -- cgit v1.2.3