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/parse/rust-parse-impl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/rust/parse') diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index c2d3720..14e4e80 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -3579,9 +3579,11 @@ Parser::parse_lifetime_where_clause_item () std::vector lifetime_bounds = parse_lifetime_bounds (); // TODO: have end token passed in? + Location locus = lifetime.get_locus (); + return std::unique_ptr ( new AST::LifetimeWhereClauseItem (std::move (lifetime), - std::move (lifetime_bounds))); + std::move (lifetime_bounds), locus)); } // Parses a type bound where clause item. -- cgit v1.1