From 9ade15d37ee0b09270fe0d0fbc9b000c943f2614 Mon Sep 17 00:00:00 2001 From: Kushal Pal Date: Mon, 27 May 2024 03:16:03 +0000 Subject: Corrected access specifiers 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 --- gcc/rust/ast/rust-expr.h | 2 +- gcc/rust/hir/tree/rust-hir-expr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index b990358..015680b 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 0e3e909..1a40ea5 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: -- cgit v1.1