From e8cff6a9da47a189b1e40f4e728fd29bb3af1e7b Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Sun, 17 May 2020 17:55:05 +0100 Subject: Need public access to Expr locus and rhs --- gcc/rust/ast/rust-expr.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/rust') diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index 9da2e8c..e0f9536 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -568,7 +568,6 @@ public: RIGHT_SHIFT // std::ops::Shr }; -private: // Note: overloading trait specified in comments ExprType expr_type; @@ -880,10 +879,10 @@ protected: // Binary assignment expression. class AssignmentExpr : public OperatorExpr { +public: // Expr* right_expr; ::std::unique_ptr right_expr; -public: /*~AssignmentExpr() { delete right_expr; }*/ -- cgit v1.1