diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-16 12:17:53 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-16 12:17:53 +0100 |
commit | 468982e45a035c271c40bea9b17c2c202a7efc75 (patch) | |
tree | 96f00583eaa8659a21960fa5fc4717d4d9bf0962 /crates/ra_hir/src/code_model.rs | |
parent | 8a880230a522b34a0ba7f434f4ad3acdfd3448b1 (diff) | |
parent | b5ce84b17023d27f4e96ec7911aca712db0e000b (diff) |
Merge #5405
5405: Align CallableDefId naming with other ids r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 42c9ca189..9891b0785 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -40,7 +40,7 @@ use stdx::impl_from; | |||
40 | use crate::{ | 40 | use crate::{ |
41 | db::{DefDatabase, HirDatabase}, | 41 | db::{DefDatabase, HirDatabase}, |
42 | has_source::HasSource, | 42 | has_source::HasSource, |
43 | CallableDef, HirDisplay, InFile, Name, | 43 | CallableDefId, HirDisplay, InFile, Name, |
44 | }; | 44 | }; |
45 | 45 | ||
46 | /// hir::Crate describes a single crate. It's the main interface with which | 46 | /// hir::Crate describes a single crate. It's the main interface with which |
@@ -1226,7 +1226,7 @@ impl Type { | |||
1226 | } | 1226 | } |
1227 | 1227 | ||
1228 | // FIXME: this method is broken, as it doesn't take closures into account. | 1228 | // FIXME: this method is broken, as it doesn't take closures into account. |
1229 | pub fn as_callable(&self) -> Option<CallableDef> { | 1229 | pub fn as_callable(&self) -> Option<CallableDefId> { |
1230 | Some(self.ty.value.as_callable()?.0) | 1230 | Some(self.ty.value.as_callable()?.0) |
1231 | } | 1231 | } |
1232 | 1232 | ||