]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Corrected access specifiers
authorKushal Pal <kushalpal109@gmail.com>
Mon, 27 May 2024 03:16:03 +0000 (03:16 +0000)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Tue, 28 May 2024 11:08:52 +0000 (11:08 +0000)
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 0e3e909e15ce3d3991e3b8aad96df6dfcee9af31..1a40ea537721effda299436e220455a65453a8eb 100644 (file)
@@ -160,7 +160,7 @@ protected:
 class OperatorExpr : public ExprWithoutBlock
 {
   // TODO: create binary and unary operator subclasses?
-public:
+private:
   location_t locus;
 
 protected: