diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-09-28 21:59:36 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-09-28 21:59:36 +0800 |
commit | cd1ff0bc296f9192c33b494421e4a86d532ceb70 (patch) | |
tree | 52b6c8381ac3098e820176affe1b0c148d5dbbf1 | |
parent | cb8dcf8cac7ac9ac74b2d6d5c38e9eedf5f2fd6b (diff) | |
download | mrust-cd1ff0bc296f9192c33b494421e4a86d532ceb70.tar.gz |
HIR Lower - (minor) Add TODO on repr for enums
-rw-r--r-- | src/hir/from_ast.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index 1f5c473b..0f29f9b5 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -897,10 +897,12 @@ namespace { ) } + auto repr = ::HIR::Enum::Repr::Rust; + // TODO: Get repr from attributes + return ::HIR::Enum { LowerHIR_GenericParams(f.params(), nullptr), - // TODO: Get repr from attributes - ::HIR::Enum::Repr::Rust, + repr, mv$(variants) }; } |