mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Align CallableDefId naming with other ids
This commit is contained in:
parent
b598ab8be4
commit
b5ce84b170
14 changed files with 59 additions and 57 deletions
|
@ -40,7 +40,7 @@ use stdx::impl_from;
|
|||
use crate::{
|
||||
db::{DefDatabase, HirDatabase},
|
||||
has_source::HasSource,
|
||||
CallableDef, HirDisplay, InFile, Name,
|
||||
CallableDefId, HirDisplay, InFile, Name,
|
||||
};
|
||||
|
||||
/// hir::Crate describes a single crate. It's the main interface with which
|
||||
|
@ -1226,7 +1226,7 @@ impl Type {
|
|||
}
|
||||
|
||||
// FIXME: this method is broken, as it doesn't take closures into account.
|
||||
pub fn as_callable(&self) -> Option<CallableDef> {
|
||||
pub fn as_callable(&self) -> Option<CallableDefId> {
|
||||
Some(self.ty.value.as_callable()?.0)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue