diff options
Diffstat (limited to 'crates/ra_hir_def/src/item_tree/lower.rs')
-rw-r--r-- | crates/ra_hir_def/src/item_tree/lower.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir_def/src/item_tree/lower.rs b/crates/ra_hir_def/src/item_tree/lower.rs index 2764d8674..4cfc68f53 100644 --- a/crates/ra_hir_def/src/item_tree/lower.rs +++ b/crates/ra_hir_def/src/item_tree/lower.rs | |||
@@ -79,7 +79,7 @@ impl Ctx { | |||
79 | | ast::Item::UnionDef(_) | 79 | | ast::Item::UnionDef(_) |
80 | | ast::Item::EnumDef(_) | 80 | | ast::Item::EnumDef(_) |
81 | | ast::Item::Fn(_) | 81 | | ast::Item::Fn(_) |
82 | | ast::Item::TypeAliasDef(_) | 82 | | ast::Item::TypeAlias(_) |
83 | | ast::Item::ConstDef(_) | 83 | | ast::Item::ConstDef(_) |
84 | | ast::Item::StaticDef(_) | 84 | | ast::Item::StaticDef(_) |
85 | | ast::Item::MacroCall(_) => { | 85 | | ast::Item::MacroCall(_) => { |
@@ -104,7 +104,7 @@ impl Ctx { | |||
104 | ast::Item::UnionDef(ast) => self.lower_union(ast).map(Into::into), | 104 | ast::Item::UnionDef(ast) => self.lower_union(ast).map(Into::into), |
105 | ast::Item::EnumDef(ast) => self.lower_enum(ast).map(Into::into), | 105 | ast::Item::EnumDef(ast) => self.lower_enum(ast).map(Into::into), |
106 | ast::Item::Fn(ast) => self.lower_function(ast).map(Into::into), | 106 | ast::Item::Fn(ast) => self.lower_function(ast).map(Into::into), |
107 | ast::Item::TypeAliasDef(ast) => self.lower_type_alias(ast).map(Into::into), | 107 | ast::Item::TypeAlias(ast) => self.lower_type_alias(ast).map(Into::into), |
108 | ast::Item::StaticDef(ast) => self.lower_static(ast).map(Into::into), | 108 | ast::Item::StaticDef(ast) => self.lower_static(ast).map(Into::into), |
109 | ast::Item::ConstDef(ast) => Some(self.lower_const(ast).into()), | 109 | ast::Item::ConstDef(ast) => Some(self.lower_const(ast).into()), |
110 | ast::Item::Module(ast) => self.lower_module(ast).map(Into::into), | 110 | ast::Item::Module(ast) => self.lower_module(ast).map(Into::into), |
@@ -156,7 +156,7 @@ impl Ctx { | |||
156 | fn lower_assoc_item(&mut self, item: &ast::AssocItem) -> Option<AssocItem> { | 156 | fn lower_assoc_item(&mut self, item: &ast::AssocItem) -> Option<AssocItem> { |
157 | match item { | 157 | match item { |
158 | ast::AssocItem::Fn(ast) => self.lower_function(ast).map(Into::into), | 158 | ast::AssocItem::Fn(ast) => self.lower_function(ast).map(Into::into), |
159 | ast::AssocItem::TypeAliasDef(ast) => self.lower_type_alias(ast).map(Into::into), | 159 | ast::AssocItem::TypeAlias(ast) => self.lower_type_alias(ast).map(Into::into), |
160 | ast::AssocItem::ConstDef(ast) => Some(self.lower_const(ast).into()), | 160 | ast::AssocItem::ConstDef(ast) => Some(self.lower_const(ast).into()), |
161 | ast::AssocItem::MacroCall(ast) => self.lower_macro_call(ast).map(Into::into), | 161 | ast::AssocItem::MacroCall(ast) => self.lower_macro_call(ast).map(Into::into), |
162 | } | 162 | } |
@@ -348,7 +348,7 @@ impl Ctx { | |||
348 | 348 | ||
349 | fn lower_type_alias( | 349 | fn lower_type_alias( |
350 | &mut self, | 350 | &mut self, |
351 | type_alias: &ast::TypeAliasDef, | 351 | type_alias: &ast::TypeAlias, |
352 | ) -> Option<FileItemTreeId<TypeAlias>> { | 352 | ) -> Option<FileItemTreeId<TypeAlias>> { |
353 | let name = type_alias.name()?.as_name(); | 353 | let name = type_alias.name()?.as_name(); |
354 | let type_ref = type_alias.type_ref().map(|it| self.lower_type_ref(&it)); | 354 | let type_ref = type_alias.type_ref().map(|it| self.lower_type_ref(&it)); |