diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-06-24 17:04:13 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:04 +0100 |
commit | 21d5cef96adfb26ea67d03bdfaacbd1fe8742d6e (patch) | |
tree | b321a07ed3007b909062476ff8c29e9e2b4b0880 /gcc | |
parent | b4e8bc15f597e1f0e1a5dfae8081f37efaabb88c (diff) | |
download | gcc-21d5cef96adfb26ea67d03bdfaacbd1fe8742d6e.zip gcc-21d5cef96adfb26ea67d03bdfaacbd1fe8742d6e.tar.gz gcc-21d5cef96adfb26ea67d03bdfaacbd1fe8742d6e.tar.bz2 |
gccrs: ast: Remove PathExpr abstract class
Inherit directly from ExprWithoutBlock instead.
gcc/rust/ChangeLog:
* ast/rust-ast.h (class PathExpr): Remove class.
* ast/rust-path.h (class PathInExpression): Inherit from ExprWithoutBlock.
(class QualifiedPathInExpression): Likewise.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 5 | ||||
-rw-r--r-- | gcc/rust/ast/rust-path.h | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index 4f40eff..f5a2e77 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -2048,11 +2048,6 @@ public: } }; -// Base path expression AST node - abstract -class PathExpr : public ExprWithoutBlock -{ -}; - } // namespace AST } // namespace Rust diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h index 53ccf1d..bf75801 100644 --- a/gcc/rust/ast/rust-path.h +++ b/gcc/rust/ast/rust-path.h @@ -597,7 +597,7 @@ public: /* AST node representing a path-in-expression pattern (path that allows * generic arguments) */ -class PathInExpression : public PathPattern, public PathExpr +class PathInExpression : public PathPattern, public ExprWithoutBlock { std::vector<Attribute> outer_attrs; bool has_opening_scope_resolution; @@ -1221,7 +1221,7 @@ public: /* AST node representing a qualified path-in-expression pattern (path that * allows specifying trait functions) */ -class QualifiedPathInExpression : public PathPattern, public PathExpr +class QualifiedPathInExpression : public PathPattern, public ExprWithoutBlock { std::vector<Attribute> outer_attrs; QualifiedPathType path_type; |