diff options
author | Kushal Pal <kushalpal109@gmail.com> | 2024-05-27 03:16:03 +0000 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-05-28 11:08:52 +0000 |
commit | 9ade15d37ee0b09270fe0d0fbc9b000c943f2614 (patch) | |
tree | d0c1a2303744bae2bfc55b8c249511631a3a96ec | |
parent | 84666c6eecc0d32019f03169b2ba242ead1e2d49 (diff) | |
download | gcc-9ade15d37ee0b09270fe0d0fbc9b000c943f2614.zip gcc-9ade15d37ee0b09270fe0d0fbc9b000c943f2614.tar.gz gcc-9ade15d37ee0b09270fe0d0fbc9b000c943f2614.tar.bz2 |
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 <kushalpal109@gmail.com>
-rw-r--r-- | gcc/rust/ast/rust-expr.h | 2 | ||||
-rw-r--r-- | 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 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: |