From: Ryutaro Okada <1015ryu88@gmail.com> Date: Tue, 24 Jun 2025 05:28:59 +0000 (-0700) Subject: gccrs: Add getter for non const lifetime object X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c05bfc15372f8422203e0f78004055598fc358d;p=thirdparty%2Fgcc.git 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> --- diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h index 0f25b379dfa..8cedfe8647d 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; }