From 6fb4871f3149ab32e50052eb6a3bb29f852e6a6b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 26 Nov 2019 19:30:57 +0300 Subject: Add note --- crates/ra_hir_def/src/resolver.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ra_hir_def/src/resolver.rs b/crates/ra_hir_def/src/resolver.rs index 95b3c926d..c40f41717 100644 --- a/crates/ra_hir_def/src/resolver.rs +++ b/crates/ra_hir_def/src/resolver.rs @@ -61,6 +61,8 @@ pub enum TypeNs { GenericParam(u32), AdtId(AdtId), AdtSelfType(AdtId), + // Yup, enum variants are added to the types ns, but any usage of variant as + // type is an error. EnumVariantId(EnumVariantId), TypeAliasId(TypeAliasId), BuiltinType(BuiltinType), -- cgit v1.2.3