aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-path.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/ast/rust-path.h')
-rw-r--r--gcc/rust/ast/rust-path.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h
index 4c437cc..f4f1624 100644
--- a/gcc/rust/ast/rust-path.h
+++ b/gcc/rust/ast/rust-path.h
@@ -380,6 +380,8 @@ public:
outer_attrs = std::move (new_attrs);
}
+ NodeId get_pattern_node_id () const override final { return get_node_id (); }
+
protected:
/* Use covariance to implement clone function as returning this object rather
* than base */
@@ -902,6 +904,8 @@ public:
NodeId get_node_id () const override { return _node_id; }
+ NodeId get_pattern_node_id () const override final { return get_node_id (); }
+
protected:
/* Use covariance to implement clone function as returning this object rather
* than base */