summaryrefslogtreecommitdiff
path: root/src/hir_conv/constant_evaluation.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-06-04 12:33:35 +0800
committerJohn Hodge <tpg@mutabah.net>2016-06-04 12:33:35 +0800
commite33d210a4a85e91abe04f1874f460b6e60c6b5e0 (patch)
tree96668e07ac5972f3f25b1a5369831a0edea3ea35 /src/hir_conv/constant_evaluation.cpp
parentef9d2edb3752a19b827240e91ef3fea7bc354586 (diff)
downloadmrust-e33d210a4a85e91abe04f1874f460b6e60c6b5e0.tar.gz
Byte string literals in AST, infrastructure for coercions
Diffstat (limited to 'src/hir_conv/constant_evaluation.cpp')
-rw-r--r--src/hir_conv/constant_evaluation.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hir_conv/constant_evaluation.cpp b/src/hir_conv/constant_evaluation.cpp
index e64dd289..06abe38a 100644
--- a/src/hir_conv/constant_evaluation.cpp
+++ b/src/hir_conv/constant_evaluation.cpp
@@ -406,8 +406,7 @@ namespace {
m_rv = ::HIR::Literal(e);
),
(ByteString,
- TODO(node.span(), "Byte literal in constant");
- //m_rv = ::HIR::Literal::make_String(e);
+ m_rv = ::HIR::Literal::make_String({e.begin(), e.end()});
)
)
}