diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-30 18:34:38 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-30 18:34:38 +0800 |
commit | e87f3ee6f2c8bbbfd1e18285528dfa305479b2ee (patch) | |
tree | 186e4c51de05194188a62d75e0e44e1a6007a0e2 /src/hir/hir.hpp | |
parent | 649f9f98efe3f1b138c34f3762a5feba9dde457c (diff) | |
download | mrust-e87f3ee6f2c8bbbfd1e18285528dfa305479b2ee.tar.gz |
HIR+Resolve - Refactor handling of enum variant imports
Diffstat (limited to 'src/hir/hir.hpp')
-rw-r--r-- | src/hir/hir.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hir/hir.hpp b/src/hir/hir.hpp index 6c560510..fed2e577 100644 --- a/src/hir/hir.hpp +++ b/src/hir/hir.hpp @@ -257,7 +257,7 @@ public: // -------------------------------------------------------------------- TAGGED_UNION(TypeItem, Import, - (Import, ::HIR::SimplePath), // `pub use` statements (no globs) + (Import, struct { ::HIR::SimplePath path; bool is_variant; unsigned int idx; }), (Module, Module), (TypeAlias, TypeAlias), // NOTE: These don't introduce new values (Enum, Enum), @@ -265,7 +265,7 @@ TAGGED_UNION(TypeItem, Import, (Trait, Trait) ); TAGGED_UNION(ValueItem, Import, - (Import, ::HIR::SimplePath), + (Import, struct { ::HIR::SimplePath path; bool is_variant; unsigned int idx; }), (Constant, Constant), (Static, Static), (StructConstant, struct { ::HIR::SimplePath ty; }), |