aboutsummaryrefslogtreecommitdiff
path: root/src/ast_render.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-04-22 12:19:20 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-04-22 12:19:20 -0400
commitaafb0b90822e55135e1c50962768e54e6c62b164 (patch)
treea67fa2d4c85969c526eab919e0d9f99bd4dc0586 /src/ast_render.cpp
parent1a0081b763d145de8a89ab94aca400daa5666dac (diff)
downloadzig-aafb0b90822e55135e1c50962768e54e6c62b164.tar.gz
zig-aafb0b90822e55135e1c50962768e54e6c62b164.zip
slicing now returns correct const-ness
also remove the ability to override constness when slicing closes #334
Diffstat (limited to 'src/ast_render.cpp')
-rw-r--r--src/ast_render.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ast_render.cpp b/src/ast_render.cpp
index 36ce69387b..3e939c43e5 100644
--- a/src/ast_render.cpp
+++ b/src/ast_render.cpp
@@ -894,8 +894,6 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
if (node->data.slice_expr.end)
render_node_grouped(ar, node->data.slice_expr.end);
fprintf(ar->f, "]");
- if (node->data.slice_expr.is_const)
- fprintf(ar->f, "const");
break;
}
case NodeTypeUnwrapErrorExpr: