From: Kushal Pal Date: Mon, 27 May 2024 03:16:03 +0000 (+0000) Subject: gccrs: Corrected access specifiers X-Git-Tag: basepoints/gcc-16~1409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cf827ad4b97aadb2f6730bfc06794ff7a07f9de;p=thirdparty%2Fgcc.git gccrs: 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 --- 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: