From 389d9a6c2d297d838b4cfa754565b6bea5f8c757 Mon Sep 17 00:00:00 2001 From: Charles Lew Date: Wed, 16 Sep 2020 20:57:14 +0800 Subject: Lower extern type alias as foreign opaque type. --- crates/hir_def/src/data.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/hir_def/src/data.rs') diff --git a/crates/hir_def/src/data.rs b/crates/hir_def/src/data.rs index 9a8eb4ede..6190906da 100644 --- a/crates/hir_def/src/data.rs +++ b/crates/hir_def/src/data.rs @@ -54,6 +54,7 @@ pub struct TypeAliasData { pub name: Name, pub type_ref: Option, pub visibility: RawVisibility, + pub is_extern: bool, /// Bounds restricting the type alias itself (eg. `type Ty: Bound;` in a trait or impl). pub bounds: Vec, } @@ -71,6 +72,7 @@ impl TypeAliasData { name: typ.name.clone(), type_ref: typ.type_ref.clone(), visibility: item_tree[typ.visibility].clone(), + is_extern: typ.is_extern, bounds: typ.bounds.to_vec(), }) } -- cgit v1.2.3