From: Kushal Pal <kushalpal...@gmail.com> gcc/rust/ChangeLog:
* ast/rust-expr.h (class OperatorExpr): Location should be private. * hir/tree/rust-hir-expr.h (class OperatorExpr): Likewise. Signed-off-by: Kushal Pal <kushalpal...@gmail.com> --- gcc/rust/ast/rust-expr.h | 2 +- gcc/rust/hir/tree/rust-hir-expr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index b990358df29..015680b2af4 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -302,7 +302,7 @@ protected: class OperatorExpr : public ExprWithoutBlock { // TODO: create binary and unary operator subclasses? -public: +private: location_t locus; protected: diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h index ad0cdd47dfc..11b1c4c295f 100644 --- a/gcc/rust/hir/tree/rust-hir-expr.h +++ b/gcc/rust/hir/tree/rust-hir-expr.h @@ -160,7 +160,7 @@ protected: class OperatorExpr : public ExprWithoutBlock { // TODO: create binary and unary operator subclasses? -public: +private: location_t locus; protected: -- 2.45.2