Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/semantics.rs')
| -rw-r--r-- | crates/hir/src/semantics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir/src/semantics.rs b/crates/hir/src/semantics.rs index 0e5da85606..48191d15b2 100644 --- a/crates/hir/src/semantics.rs +++ b/crates/hir/src/semantics.rs @@ -2058,7 +2058,7 @@ impl SemanticsScope<'_> { ast::PathSegmentKind::Name(name_ref) => segments.push(name_ref.as_name()), ast::PathSegmentKind::Type { .. } => continue, ast::PathSegmentKind::SelfTypeKw => { - segments.push(Name::new_symbol_root(sym::Self_.clone())) + segments.push(Name::new_symbol_root(sym::Self_)) } ast::PathSegmentKind::SelfKw => kind = PathKind::Super(0), ast::PathSegmentKind::SuperKw => match kind { |