diff options
author | Jonas Schievink <[email protected]> | 2020-08-24 21:02:55 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-08-24 21:02:55 +0100 |
commit | f3ac19e8cd8be78f1eb96893482edac038739bb1 (patch) | |
tree | 8a2cdf4db86466eca026b32a52822092248e95ba /crates/hir_def/src/item_tree | |
parent | ed09bd3cc6a37d7d22038adf7ff815f0188a9949 (diff) |
Support extern types
Diffstat (limited to 'crates/hir_def/src/item_tree')
-rw-r--r-- | crates/hir_def/src/item_tree/lower.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs index 391ab5d39..6a503d785 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs | |||
@@ -557,6 +557,10 @@ impl Ctx { | |||
557 | let statik = self.lower_static(&ast)?; | 557 | let statik = self.lower_static(&ast)?; |
558 | statik.into() | 558 | statik.into() |
559 | } | 559 | } |
560 | ast::ExternItem::TypeAlias(ty) => { | ||
561 | let id = self.lower_type_alias(&ty)?; | ||
562 | id.into() | ||
563 | } | ||
560 | ast::ExternItem::MacroCall(_) => return None, | 564 | ast::ExternItem::MacroCall(_) => return None, |
561 | }; | 565 | }; |
562 | self.add_attrs(id.into(), attrs); | 566 | self.add_attrs(id.into(), attrs); |