]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add getter for outer attributions
authorRyutaro Okada <1015ryu88@gmail.com>
Tue, 24 Jun 2025 05:25:57 +0000 (22:25 -0700)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:51 +0000 (16:36 +0200)
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>
gcc/rust/hir/tree/rust-hir-expr.h

index bf278d68b31ec869c2608d266641c54b28749300..fcb4744fef4cf6adfa7a6e62f73b2683857d6525 100644 (file)
@@ -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