From cd1ff0bc296f9192c33b494421e4a86d532ceb70 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 28 Sep 2017 21:59:36 +0800 Subject: HIR Lower - (minor) Add TODO on repr for enums --- src/hir/from_ast.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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) }; } -- cgit v1.2.3