aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2020-05-17 17:55:05 +0100
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 21:13:13 +0000
commite8cff6a9da47a189b1e40f4e728fd29bb3af1e7b (patch)
treed69d6015e0f0b22c3fb90b4e0551451e34924629
parentae07b534e2e4da55734a4577b0176f623e5b1362 (diff)
downloadgcc-e8cff6a9da47a189b1e40f4e728fd29bb3af1e7b.zip
gcc-e8cff6a9da47a189b1e40f4e728fd29bb3af1e7b.tar.gz
gcc-e8cff6a9da47a189b1e40f4e728fd29bb3af1e7b.tar.bz2
Need public access to Expr locus and rhs
-rw-r--r--gcc/rust/ast/rust-expr.h3
1 files changed, 1 insertions, 2 deletions
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<Expr> right_expr;
-public:
/*~AssignmentExpr() {
delete right_expr;
}*/