From 7661713e0795d37f7ce2d06d44d728b4b47fd2e3 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 25 Oct 2021 10:10:48 -0400 Subject: LifetimeWhereClauseItem: store the location of the item Signed-off-by: Ben Boeckel --- gcc/rust/ast/rust-item.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/rust/ast') diff --git a/gcc/rust/ast/rust-item.h b/gcc/rust/ast/rust-item.h index fb1cb09..d075a57 100644 --- a/gcc/rust/ast/rust-item.h +++ b/gcc/rust/ast/rust-item.h @@ -190,13 +190,14 @@ class LifetimeWhereClauseItem : public WhereClauseItem // LifetimeBounds lifetime_bounds; std::vector lifetime_bounds; // inlined lifetime bounds - // should this store location info? + Location locus; public: LifetimeWhereClauseItem (Lifetime lifetime, - std::vector lifetime_bounds) + std::vector lifetime_bounds, + Location locus) : lifetime (std::move (lifetime)), - lifetime_bounds (std::move (lifetime_bounds)) + lifetime_bounds (std::move (lifetime_bounds)), locus (locus) {} std::string as_string () const override; -- cgit v1.1