From: Philip Herron Date: Thu, 20 Apr 2023 08:59:47 +0000 (+0100) Subject: gccrs: Add missing TypeBoundWhereClauseItem::get_locus X-Git-Tag: basepoints/gcc-15~2607 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bee0c8a1d4263754feb2271f50bbb7a5819ae4ff;p=thirdparty%2Fgcc.git gccrs: Add missing TypeBoundWhereClauseItem::get_locus gcc/rust/ChangeLog: * hir/tree/rust-hir-item.h: add get_locus() const Signed-off-by: Philip Herron --- diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h index 2145f98fd155..adb5ef6cedd2 100644 --- a/gcc/rust/hir/tree/rust-hir-item.h +++ b/gcc/rust/hir/tree/rust-hir-item.h @@ -273,6 +273,8 @@ public: TypeBoundWhereClauseItem &operator= (TypeBoundWhereClauseItem &&other) = default; + Location get_locus () const { return locus; } + std::string as_string () const override; void accept_vis (HIRFullVisitor &vis) override;