diff options
author | Jonas Schievink <[email protected]> | 2021-01-18 15:58:43 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-01-18 16:56:35 +0000 |
commit | 872bf09381751600de8e58aab65b1d2511c33223 (patch) | |
tree | 17cf18031eeed0e8990c439e8d47a758ad778ae3 /crates/hir_def/src | |
parent | 9daba961f236750c3a5d831c9775606271b37eff (diff) |
Add `MacroType` syntax
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r-- | crates/hir_def/src/type_ref.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_def/src/type_ref.rs b/crates/hir_def/src/type_ref.rs index ae93d0d10..049b2e462 100644 --- a/crates/hir_def/src/type_ref.rs +++ b/crates/hir_def/src/type_ref.rs | |||
@@ -159,6 +159,8 @@ impl TypeRef { | |||
159 | ast::Type::DynTraitType(inner) => { | 159 | ast::Type::DynTraitType(inner) => { |
160 | TypeRef::DynTrait(type_bounds_from_ast(ctx, inner.type_bound_list())) | 160 | TypeRef::DynTrait(type_bounds_from_ast(ctx, inner.type_bound_list())) |
161 | } | 161 | } |
162 | // FIXME: Macros in type position are not yet supported. | ||
163 | ast::Type::MacroType(_) => TypeRef::Error, | ||
162 | } | 164 | } |
163 | } | 165 | } |
164 | 166 | ||