From 1a9746032345e1bffeb9ff2c92473bf90f843379 Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Mon, 25 Oct 2021 17:34:21 +0100 Subject: Add HIR lowering for where clause items --- gcc/rust/ast/rust-item.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/rust/ast') diff --git a/gcc/rust/ast/rust-item.h b/gcc/rust/ast/rust-item.h index a5d9a0a..fb7cc17 100644 --- a/gcc/rust/ast/rust-item.h +++ b/gcc/rust/ast/rust-item.h @@ -188,7 +188,6 @@ protected: class LifetimeWhereClauseItem : public WhereClauseItem { Lifetime lifetime; - std::vector lifetime_bounds; Location locus; NodeId node_id; @@ -212,6 +211,8 @@ public: std::vector &get_lifetime_bounds () { return lifetime_bounds; } + Location get_locus () const { return locus; } + protected: // Clone function implementation as (not pure) virtual method LifetimeWhereClauseItem *clone_where_clause_item_impl () const override -- cgit v1.1