aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-04-20 09:59:47 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:34:14 +0100
commitbee0c8a1d4263754feb2271f50bbb7a5819ae4ff (patch)
tree28da0cafde352f36aefd162bf5a941075d19fd02 /gcc
parent829785bb69adf0993f516cc6cdbcd066f7ca130b (diff)
downloadgcc-bee0c8a1d4263754feb2271f50bbb7a5819ae4ff.zip
gcc-bee0c8a1d4263754feb2271f50bbb7a5819ae4ff.tar.gz
gcc-bee0c8a1d4263754feb2271f50bbb7a5819ae4ff.tar.bz2
gccrs: Add missing TypeBoundWhereClauseItem::get_locus
gcc/rust/ChangeLog: * hir/tree/rust-hir-item.h: add get_locus() const Signed-off-by: Philip Herron <herron.philip@googlemail.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 2145f98..adb5ef6 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;