From 872bf09381751600de8e58aab65b1d2511c33223 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Mon, 18 Jan 2021 16:58:43 +0100 Subject: Add `MacroType` syntax --- crates/hir_def/src/type_ref.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/hir_def') 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 { ast::Type::DynTraitType(inner) => { TypeRef::DynTrait(type_bounds_from_ast(ctx, inner.type_bound_list())) } + // FIXME: Macros in type position are not yet supported. + ast::Type::MacroType(_) => TypeRef::Error, } } -- cgit v1.2.3