diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-30 10:14:18 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-30 10:14:18 +0000 |
commit | f996b6019bd2f388bd9994ea83f25487eb111560 (patch) | |
tree | 4662b1c76bed5e830c1dae9ee5dbf47520f41e1e /crates/ra_hir/src/lang_item.rs | |
parent | 8046f5b24a316a50e109fe484cde4c128293fa97 (diff) | |
parent | c9cd6aa370667783292de3bc580e0503a409e453 (diff) |
Merge #2126
2126: Move ids to hir_def crate r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/lang_item.rs')
-rw-r--r-- | crates/ra_hir/src/lang_item.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/ra_hir/src/lang_item.rs b/crates/ra_hir/src/lang_item.rs index 6c4e8ffbd..e1780ed38 100644 --- a/crates/ra_hir/src/lang_item.rs +++ b/crates/ra_hir/src/lang_item.rs | |||
@@ -22,14 +22,14 @@ pub enum LangItemTarget { | |||
22 | 22 | ||
23 | impl LangItemTarget { | 23 | impl LangItemTarget { |
24 | pub(crate) fn krate(&self, db: &impl HirDatabase) -> Option<Crate> { | 24 | pub(crate) fn krate(&self, db: &impl HirDatabase) -> Option<Crate> { |
25 | match self { | 25 | Some(match self { |
26 | LangItemTarget::Enum(e) => e.module(db).krate(db), | 26 | LangItemTarget::Enum(e) => e.module(db).krate(), |
27 | LangItemTarget::Function(f) => f.module(db).krate(db), | 27 | LangItemTarget::Function(f) => f.module(db).krate(), |
28 | LangItemTarget::ImplBlock(i) => i.module().krate(db), | 28 | LangItemTarget::ImplBlock(i) => i.module().krate(), |
29 | LangItemTarget::Static(s) => s.module(db).krate(db), | 29 | LangItemTarget::Static(s) => s.module(db).krate(), |
30 | LangItemTarget::Struct(s) => s.module(db).krate(db), | 30 | LangItemTarget::Struct(s) => s.module(db).krate(), |
31 | LangItemTarget::Trait(t) => t.module(db).krate(db), | 31 | LangItemTarget::Trait(t) => t.module(db).krate(), |
32 | } | 32 | }) |
33 | } | 33 | } |
34 | } | 34 | } |
35 | 35 | ||