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.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/hir-expand/src/mod_path.rs b/crates/hir-expand/src/mod_path.rs
index 7ecf521987..876919f3ed 100644
--- a/crates/hir-expand/src/mod_path.rs
+++ b/crates/hir-expand/src/mod_path.rs
@@ -273,10 +273,9 @@ fn convert_path(
res
}
}
- ast::PathSegmentKind::SelfTypeKw => ModPath::from_segments(
- PathKind::Plain,
- Some(Name::new_symbol(sym::Self_.clone(), SyntaxContextId::ROOT)),
- ),
+ ast::PathSegmentKind::SelfTypeKw => {
+ ModPath::from_segments(PathKind::Plain, Some(Name::new_symbol_root(sym::Self_.clone())))
+ }
ast::PathSegmentKind::CrateKw => ModPath::from_segments(PathKind::Crate, iter::empty()),
ast::PathSegmentKind::SelfKw => handle_super_kw(0)?,
ast::PathSegmentKind::SuperKw => handle_super_kw(1)?,