]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add missing TypeBoundWhereClauseItem::get_locus
authorPhilip Herron <herron.philip@googlemail.com>
Thu, 20 Apr 2023 08:59:47 +0000 (09:59 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:34:14 +0000 (18:34 +0100)
gcc/rust/ChangeLog:

* hir/tree/rust-hir-item.h: add get_locus() const

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/hir/tree/rust-hir-item.h

index 2145f98fd15574252fcffffea0e2d40f9672640a..adb5ef6cedd226d0b79f630c34c8a01bf7d30d5d 100644 (file)
@@ -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;