aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-item.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/ast/rust-item.h')
-rw-r--r--gcc/rust/ast/rust-item.h7
1 files changed, 4 insertions, 3 deletions
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> lifetime_bounds; // inlined lifetime bounds
- // should this store location info?
+ Location locus;
public:
LifetimeWhereClauseItem (Lifetime lifetime,
- std::vector<Lifetime> lifetime_bounds)
+ std::vector<Lifetime> 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;