Skip to content

Commit

Permalink
Corrected access specifiers
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
braw-lee authored and P-E-P committed May 28, 2024
1 parent 84666c6 commit 9ade15d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gcc/rust/ast/rust-expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class MetaItemPathLit : public MetaItem
class OperatorExpr : public ExprWithoutBlock
{
// TODO: create binary and unary operator subclasses?
public:
private:
location_t locus;

protected:
Expand Down
2 changes: 1 addition & 1 deletion gcc/rust/hir/tree/rust-hir-expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class LiteralExpr : public ExprWithoutBlock
class OperatorExpr : public ExprWithoutBlock
{
// TODO: create binary and unary operator subclasses?
public:
private:
location_t locus;

protected:
Expand Down

0 comments on commit 9ade15d

Please sign in to comment.