diff options
Diffstat (limited to 'crates/ra_hir/src/generics.rs')
-rw-r--r-- | crates/ra_hir/src/generics.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir/src/generics.rs b/crates/ra_hir/src/generics.rs index 521e47090..3ad2c551a 100644 --- a/crates/ra_hir/src/generics.rs +++ b/crates/ra_hir/src/generics.rs | |||
@@ -9,6 +9,7 @@ use ra_syntax::ast::{self, DefaultTypeParamOwner, NameOwner, TypeBoundsOwner, Ty | |||
9 | 9 | ||
10 | use crate::{ | 10 | use crate::{ |
11 | db::{AstDatabase, DefDatabase, HirDatabase}, | 11 | db::{AstDatabase, DefDatabase, HirDatabase}, |
12 | name::SELF_TYPE, | ||
12 | path::Path, | 13 | path::Path, |
13 | type_ref::TypeRef, | 14 | type_ref::TypeRef, |
14 | AdtDef, AsName, Container, Enum, EnumVariant, Function, HasSource, ImplBlock, Name, Struct, | 15 | AdtDef, AsName, Container, Enum, EnumVariant, Function, HasSource, ImplBlock, Name, Struct, |
@@ -83,7 +84,7 @@ impl GenericParams { | |||
83 | // traits get the Self type as an implicit first type parameter | 84 | // traits get the Self type as an implicit first type parameter |
84 | generics.params.push(GenericParam { | 85 | generics.params.push(GenericParam { |
85 | idx: start, | 86 | idx: start, |
86 | name: Name::self_type(), | 87 | name: SELF_TYPE, |
87 | default: None, | 88 | default: None, |
88 | }); | 89 | }); |
89 | generics.fill(&*it.source(db).ast, start + 1); | 90 | generics.fill(&*it.source(db).ast, start + 1); |