]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Corrected access specifiers
authorKushal Pal <kushalpal109@gmail.com>
Mon, 27 May 2024 03:16:03 +0000 (03:16 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 17 Mar 2025 15:35:29 +0000 (16:35 +0100)
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>
gcc/rust/ast/rust-expr.h
gcc/rust/hir/tree/rust-hir-expr.h

index b990358df299cfae15428d32c650708b91563afc..015680b2af4690a85a766b21ab37c640ae734766 100644 (file)
@@ -302,7 +302,7 @@ protected:
 class OperatorExpr : public ExprWithoutBlock
 {
   // TODO: create binary and unary operator subclasses?
-public:
+private:
   location_t locus;
 
 protected:
index ad0cdd47dfc92dfa2e993c0ec488c25b325eeae9..11b1c4c295f6632b564bd397826347f1d448f1da 100644 (file)
@@ -160,7 +160,7 @@ protected:
 class OperatorExpr : public ExprWithoutBlock
 {
   // TODO: create binary and unary operator subclasses?
-public:
+private:
   location_t locus;
 
 protected: