From: Ryutaro Okada <[email protected]>
gcc/rust/ChangeLog:
* hir/tree/rust-hir-expr.h (MatchArm::get_outer_attrs): Add getter for
outer attributions
Signed-off-by: Ryutaro Okada <[email protected]>
---
gcc/rust/hir/tree/rust-hir-expr.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/rust/hir/tree/rust-hir-expr.h
b/gcc/rust/hir/tree/rust-hir-expr.h
index bf278d68b31..fcb4744fef4 100644
--- a/gcc/rust/hir/tree/rust-hir-expr.h
+++ b/gcc/rust/hir/tree/rust-hir-expr.h
@@ -2698,6 +2698,8 @@ public:
Expr &get_guard_expr () { return *guard_expr; }
location_t get_locus () const { return locus; }
+
+ AST::AttrVec &get_outer_attrs () { return outer_attrs; }
};
/* A "match case" - a correlated match arm and resulting expression. Not
--
2.49.0