aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRyutaro Okada <1015ryu88@gmail.com>2025-06-23 22:28:59 -0700
committerArthur Cohen <arthur.cohen@embecosm.com>2025-08-05 16:36:51 +0200
commit8c05bfc15372f8422203e0f78004055598fc358d (patch)
tree2dabb51221fd3a78db0a204ef7a1bdc3fe4f4238 /gcc
parent5b9ef28055dd47e0895e1e1d52108ea0ed11b124 (diff)
downloadgcc-8c05bfc15372f8422203e0f78004055598fc358d.zip
gcc-8c05bfc15372f8422203e0f78004055598fc358d.tar.gz
gcc-8c05bfc15372f8422203e0f78004055598fc358d.tar.bz2
gccrs: Add getter for non const lifetime object
gcc/rust/ChangeLog: * hir/tree/rust-hir-item.h (SelfParam::get_lifetime): Add getter for non const lifetime object Signed-off-by: Ryutaro Okada <1015ryu88@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/hir/tree/rust-hir-item.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h
index 0f25b37..8cedfe8 100644
--- a/gcc/rust/hir/tree/rust-hir-item.h
+++ b/gcc/rust/hir/tree/rust-hir-item.h
@@ -402,6 +402,8 @@ public:
const Lifetime &get_lifetime () const { return lifetime.value (); }
+ Lifetime &get_lifetime () { return lifetime.value (); }
+
std::string as_string () const;
location_t get_locus () const { return locus; }