diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index b990358df299..015680b2af46 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -302,7 +302,7 @@ class MetaItemPathLit : public MetaItem 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 0e3e909e15ce..1a40ea537721 100644 --- a/gcc/rust/hir/tree/rust-hir-expr.h +++ b/gcc/rust/hir/tree/rust-hir-expr.h @@ -160,7 +160,7 @@ class LiteralExpr : public ExprWithoutBlock class OperatorExpr : public ExprWithoutBlock { // TODO: create binary and unary operator subclasses? -public: +private: location_t locus; protected: