aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse-impl.h
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2021-10-25 10:10:48 -0400
committerBen Boeckel <mathstuf@gmail.com>2021-10-25 12:45:25 -0400
commit7661713e0795d37f7ce2d06d44d728b4b47fd2e3 (patch)
tree7e61d897c8844c6f54807b80ff3de38646fd55d8 /gcc/rust/parse/rust-parse-impl.h
parent868d3125d326a6800376411fb6699d984cfa7101 (diff)
downloadgcc-7661713e0795d37f7ce2d06d44d728b4b47fd2e3.zip
gcc-7661713e0795d37f7ce2d06d44d728b4b47fd2e3.tar.gz
gcc-7661713e0795d37f7ce2d06d44d728b4b47fd2e3.tar.bz2
LifetimeWhereClauseItem: store the location of the item
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
-rw-r--r--gcc/rust/parse/rust-parse-impl.h4
1 files changed, 3 insertions, 1 deletions
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<ManagedTokenSource>::parse_lifetime_where_clause_item ()
std::vector<AST::Lifetime> lifetime_bounds = parse_lifetime_bounds ();
// TODO: have end token passed in?
+ Location locus = lifetime.get_locus ();
+
return std::unique_ptr<AST::LifetimeWhereClauseItem> (
new AST::LifetimeWhereClauseItem (std::move (lifetime),
- std::move (lifetime_bounds)));
+ std::move (lifetime_bounds), locus));
}
// Parses a type bound where clause item.