diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-12 22:35:28 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-12 22:35:28 +0100 |
commit | 1adf0519bcc8286c06e12aa7e5b16298addfea4a (patch) | |
tree | 3fe7cb05dc4d92d19ecbb87bfafc4a9ff202153e /crates/ra_hir/src/lang_item.rs | |
parent | d8b621cf26b59ff5ae9379b50fc822590b6a3a4e (diff) | |
parent | 114a1b878e95c20490af574550ea0825b7a8f9d1 (diff) |
Merge #1835
1835: rename AdtDef -> Adt 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 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/ra_hir/src/lang_item.rs b/crates/ra_hir/src/lang_item.rs index 832fdf1f5..e3b71cec3 100644 --- a/crates/ra_hir/src/lang_item.rs +++ b/crates/ra_hir/src/lang_item.rs | |||
@@ -5,7 +5,7 @@ use ra_syntax::{ast::AttrsOwner, SmolStr}; | |||
5 | 5 | ||
6 | use crate::{ | 6 | use crate::{ |
7 | db::{AstDatabase, DefDatabase, HirDatabase}, | 7 | db::{AstDatabase, DefDatabase, HirDatabase}, |
8 | Crate, Enum, Function, HasSource, ImplBlock, Module, ModuleDef, Static, Struct, Trait, | 8 | Adt, Crate, Enum, Function, HasSource, ImplBlock, Module, ModuleDef, Static, Struct, Trait, |
9 | }; | 9 | }; |
10 | 10 | ||
11 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 11 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
@@ -107,8 +107,10 @@ impl LangItems { | |||
107 | ModuleDef::Trait(trait_) => { | 107 | ModuleDef::Trait(trait_) => { |
108 | self.collect_lang_item(db, trait_, LangItemTarget::Trait) | 108 | self.collect_lang_item(db, trait_, LangItemTarget::Trait) |
109 | } | 109 | } |
110 | ModuleDef::Enum(e) => self.collect_lang_item(db, e, LangItemTarget::Enum), | 110 | ModuleDef::Adt(Adt::Enum(e)) => self.collect_lang_item(db, e, LangItemTarget::Enum), |
111 | ModuleDef::Struct(s) => self.collect_lang_item(db, s, LangItemTarget::Struct), | 111 | ModuleDef::Adt(Adt::Struct(s)) => { |
112 | self.collect_lang_item(db, s, LangItemTarget::Struct) | ||
113 | } | ||
112 | ModuleDef::Function(f) => self.collect_lang_item(db, f, LangItemTarget::Function), | 114 | ModuleDef::Function(f) => self.collect_lang_item(db, f, LangItemTarget::Function), |
113 | ModuleDef::Static(s) => self.collect_lang_item(db, s, LangItemTarget::Static), | 115 | ModuleDef::Static(s) => self.collect_lang_item(db, s, LangItemTarget::Static), |
114 | _ => {} | 116 | _ => {} |