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.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/rust/ast/rust-stmt.h b/gcc/rust/ast/rust-stmt.h
index 61bce4a..942da7f 100644
--- a/gcc/rust/ast/rust-stmt.h
+++ b/gcc/rust/ast/rust-stmt.h
@@ -211,8 +211,9 @@ public:
std::string as_string () const override;
ExprStmtWithoutBlock (std::unique_ptr<ExprWithoutBlock> expr, Location locus)
- : ExprStmt (locus), expr (std::move (expr))
+ : ExprStmt (locus), expr (std::move (expr->to_stmt ()))
{}
+
/*ExprStmtWithoutBlock (std::unique_ptr<Expr> expr, Location locus)
: ExprStmt (locus), expr (std::move (expr))
{}*/
@@ -336,9 +337,6 @@ protected:
}
};
-/* Replaced definition of MacroInvocationSemi with forward decl - defined in
- * rust-macro.h */
-class MacroInvocationSemi;
} // namespace AST
} // namespace Rust