diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-26 16:31:20 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-26 16:31:20 +0000 |
commit | 3b0fc8ac6224e8ab8848de791011add6a149b9d4 (patch) | |
tree | 5e3b314dc4c78c42fc64b571461606e85e136b8d | |
parent | 6560e4ff2eae4e54384896d6ae100f1d2df20518 (diff) | |
parent | 6fb4871f3149ab32e50052eb6a3bb29f852e6a6b (diff) |
Merge #2415
2415: Add note r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
-rw-r--r-- | crates/ra_hir_def/src/resolver.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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 { | |||
61 | GenericParam(u32), | 61 | GenericParam(u32), |
62 | AdtId(AdtId), | 62 | AdtId(AdtId), |
63 | AdtSelfType(AdtId), | 63 | AdtSelfType(AdtId), |
64 | // Yup, enum variants are added to the types ns, but any usage of variant as | ||
65 | // type is an error. | ||
64 | EnumVariantId(EnumVariantId), | 66 | EnumVariantId(EnumVariantId), |
65 | TypeAliasId(TypeAliasId), | 67 | TypeAliasId(TypeAliasId), |
66 | BuiltinType(BuiltinType), | 68 | BuiltinType(BuiltinType), |