aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-stmt.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/ast/rust-stmt.h')
-rw-r--r--gcc/rust/ast/rust-stmt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-stmt.h b/gcc/rust/ast/rust-stmt.h
index f7c47d7..0bb1021 100644
--- a/gcc/rust/ast/rust-stmt.h
+++ b/gcc/rust/ast/rust-stmt.h
@@ -160,7 +160,6 @@ protected:
* difficulties, can only be guaranteed to hold an expression). */
class ExprStmtWithoutBlock : public ExprStmt
{
-public:
// TODO: ensure that this works
std::unique_ptr<ExprWithoutBlock> expr;
/* HACK: cannot ensure type safety of ExprWithoutBlock due to Pratt parsing,
@@ -168,6 +167,7 @@ public:
* or redesign AST. */
// std::unique_ptr<Expr> expr;
+public:
std::string as_string () const override;
ExprStmtWithoutBlock (std::unique_ptr<ExprWithoutBlock> expr, Location locus)
@@ -232,9 +232,9 @@ protected:
// Statement containing an expression with a block
class ExprStmtWithBlock : public ExprStmt
{
-public:
std::unique_ptr<ExprWithBlock> expr;
+public:
std::string as_string () const override;
std::vector<LetStmt *> locals;