diff options
Diffstat (limited to 'gcc/rust/ast/rust-path.h')
-rw-r--r-- | gcc/rust/ast/rust-path.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h index 4e26b2f..b7eba44 100644 --- a/gcc/rust/ast/rust-path.h +++ b/gcc/rust/ast/rust-path.h @@ -850,6 +850,11 @@ public: Pattern::Kind get_pattern_kind () override { return Pattern::Kind::Path; } + Expr::Kind get_expr_kind () const override + { + return Expr::Kind::PathInExpression; + } + protected: PathInExpression (std::vector<Attribute> &&outer_attrs, bool has_opening_scope_resolution, location_t locus, @@ -1516,6 +1521,11 @@ public: rust_unreachable (); } + Expr::Kind get_expr_kind () const override + { + return Expr::Kind::QualifiedPathInExpression; + } + protected: /* Use covariance to implement clone function as returning this object * rather than base */ |