Skip to content

Commit 3b0fc8a

Browse files
bors[bot]matklad
andauthored
Merge #2415
2415: Add note r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 6560e4f + 6fb4871 commit 3b0fc8a

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)