From: Ryutaro Okada <1015ryu88@gmail.com> Date: Tue, 24 Jun 2025 05:25:57 +0000 (-0700) Subject: gccrs: Add getter for outer attributions X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b9ef28055dd47e0895e1e1d52108ea0ed11b124;p=thirdparty%2Fgcc.git gccrs: Add getter for outer attributions gcc/rust/ChangeLog: * hir/tree/rust-hir-expr.h (MatchArm::get_outer_attrs): Add getter for outer attributions Signed-off-by: Ryutaro Okada <1015ryu88@gmail.com> --- 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