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!
This commit is contained in:
Aleksey Kladov 2020-12-17 14:36:15 +03:00
parent d641bccb0f
commit 2ae31e34b1
12 changed files with 31 additions and 31 deletions

View file

@ -1,4 +1,4 @@
use hir::{Crate, ImplDef, Semantics};
use hir::{Crate, Impl, Semantics};
use ide_db::RootDatabase;
use syntax::{algo::find_node_at_offset, ast, AstNode};
@ -49,7 +49,7 @@ fn impls_for_def(
ast::AdtDef::Union(def) => sema.to_def(def)?.ty(sema.db),
};
let impls = ImplDef::all_in_crate(sema.db, krate);
let impls = Impl::all_in_crate(sema.db, krate);
Some(
impls
@ -67,7 +67,7 @@ fn impls_for_trait(
) -> Option<Vec<NavigationTarget>> {
let tr = sema.to_def(node)?;
let impls = ImplDef::for_trait(sema.db, krate, tr);
let impls = Impl::for_trait(sema.db, krate, tr);
Some(impls.into_iter().map(|imp| imp.to_nav(sema.db)).collect())
}