Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_def/src/path/lower.rs')
| -rw-r--r-- | crates/hir_def/src/path/lower.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/path/lower.rs b/crates/hir_def/src/path/lower.rs index f99b97178b..550f12dabd 100644 --- a/crates/hir_def/src/path/lower.rs +++ b/crates/hir_def/src/path/lower.rs @@ -3,7 +3,7 @@ use crate::intern::Interned; use either::Either; -use hir_expand::name::{known, name, AsName}; +use hir_expand::name::{name, AsName}; use syntax::ast::{self, AstNode, HasTypeBounds}; use super::AssociatedTypeBinding; @@ -54,7 +54,7 @@ pub(super) fn lower_path(mut path: ast::Path, ctx: &LowerCtx) -> Option<Path> { } } ast::PathSegmentKind::SelfTypeKw => { - segments.push(known::SELF_TYPE); + segments.push(name![Self]); generic_args.push(None) } ast::PathSegmentKind::Type { type_ref, trait_ref } => { |