aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-01-18 16:57:17 +0000
committerGitHub <[email protected]>2021-01-18 16:57:17 +0000
commitc72d3a7c0989e63a9b063fed445cbbaf3e40a29f (patch)
tree17cf18031eeed0e8990c439e8d47a758ad778ae3 /crates/hir_def
parent9daba961f236750c3a5d831c9775606271b37eff (diff)
parent872bf09381751600de8e58aab65b1d2511c33223 (diff)
Merge #7324
7324: Add `MacroType` r=jonas-schievink a=jonas-schievink Adds syntax-level support for macros in type position. Based on https://github.com/rust-analyzer/rust-analyzer/pull/7291 due to the ungrammar update Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_def')
-rw-r--r--crates/hir_def/src/type_ref.rs2
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