Skip to content

Commit 6fb4871

Browse files
committed
Add note
1 parent 6560e4f commit 6fb4871

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/ra_hir_def/src/resolver.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ pub enum TypeNs {
6161
GenericParam(u32),
6262
AdtId(AdtId),
6363
AdtSelfType(AdtId),
64+
// Yup, enum variants are added to the types ns, but any usage of variant as
65+
// type is an error.
6466
EnumVariantId(EnumVariantId),
6567
TypeAliasId(TypeAliasId),
6668
BuiltinType(BuiltinType),

0 commit comments

Comments
 (0)