aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-10-25 17:34:21 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-10-27 10:18:33 +0100
commit1a9746032345e1bffeb9ff2c92473bf90f843379 (patch)
treedd88e4e97bcdc94943fc75309c51e6ecb9926d69 /gcc/rust/ast
parentb01e62c136b1ebf27894c68669e265e67b941300 (diff)
downloadgcc-1a9746032345e1bffeb9ff2c92473bf90f843379.zip
gcc-1a9746032345e1bffeb9ff2c92473bf90f843379.tar.gz
gcc-1a9746032345e1bffeb9ff2c92473bf90f843379.tar.bz2
Add HIR lowering for where clause items
Diffstat (limited to 'gcc/rust/ast')
-rw-r--r--gcc/rust/ast/rust-item.h3
1 files changed, 2 insertions, 1 deletions
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> lifetime_bounds;
Location locus;
NodeId node_id;
@@ -212,6 +211,8 @@ public:
std::vector<Lifetime> &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