mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
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:
parent
d641bccb0f
commit
2ae31e34b1
12 changed files with 31 additions and 31 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue