From 2ae31e34b1a345ceea23198a7e9e32e557cdbb4d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 17 Dec 2020 14:36:15 +0300 Subject: Rename ImplDef -> Impl We used to have `Def` suffix for all symbols, but we moved off from that. `FunctionDef` isn't better than `Function`. Looks like we've forgot to change `Impl` though! --- crates/ide_db/src/defs.rs | 4 ++-- crates/ide_db/src/search.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ide_db') diff --git a/crates/ide_db/src/defs.rs b/crates/ide_db/src/defs.rs index f2d1e4c39..bd2afc887 100644 --- a/crates/ide_db/src/defs.rs +++ b/crates/ide_db/src/defs.rs @@ -6,7 +6,7 @@ // FIXME: this badly needs rename/rewrite (matklad, 2020-02-06). use hir::{ - db::HirDatabase, Crate, Field, HasVisibility, ImplDef, LifetimeParam, Local, MacroDef, Module, + db::HirDatabase, Crate, Field, HasVisibility, Impl, LifetimeParam, Local, MacroDef, Module, ModuleDef, Name, PathResolution, Semantics, TypeParam, Visibility, }; use syntax::{ @@ -22,7 +22,7 @@ pub enum Definition { Macro(MacroDef), Field(Field), ModuleDef(ModuleDef), - SelfType(ImplDef), + SelfType(Impl), Local(Local), TypeParam(TypeParam), LifetimeParam(LifetimeParam), diff --git a/crates/ide_db/src/search.rs b/crates/ide_db/src/search.rs index 5b3997bcf..525c8a41f 100644 --- a/crates/ide_db/src/search.rs +++ b/crates/ide_db/src/search.rs @@ -140,7 +140,7 @@ impl Definition { }, hir::GenericDef::Trait(it) => it.source(db).value.syntax().text_range(), hir::GenericDef::TypeAlias(it) => it.source(db).value.syntax().text_range(), - hir::GenericDef::ImplDef(it) => it.source(db).value.syntax().text_range(), + hir::GenericDef::Impl(it) => it.source(db).value.syntax().text_range(), hir::GenericDef::EnumVariant(it) => it.source(db).value.syntax().text_range(), hir::GenericDef::Const(it) => it.source(db).value.syntax().text_range(), }; -- cgit v1.2.3