summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-09-28 21:59:36 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-09-28 21:59:36 +0800
commitcd1ff0bc296f9192c33b494421e4a86d532ceb70 (patch)
tree52b6c8381ac3098e820176affe1b0c148d5dbbf1 /src
parentcb8dcf8cac7ac9ac74b2d6d5c38e9eedf5f2fd6b (diff)
downloadmrust-cd1ff0bc296f9192c33b494421e4a86d532ceb70.tar.gz
HIR Lower - (minor) Add TODO on repr for enums
Diffstat (limited to 'src')
-rw-r--r--src/hir/from_ast.cpp6
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)
};
}