diff options
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
-rw-r--r-- | gcc/rust/parse/rust-parse-impl.h | 4 |
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 8bddfcd..52aba4f 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -3612,10 +3612,12 @@ Parser<ManagedTokenSource>::parse_type_bound_where_clause_item () std::vector<std::unique_ptr<AST::TypeParamBound>> type_param_bounds = parse_type_param_bounds (); + Location locus = lexer.peek_token ()->get_locus (); + return std::unique_ptr<AST::TypeBoundWhereClauseItem> ( new AST::TypeBoundWhereClauseItem (std::move (for_lifetimes), std::move (type), - std::move (type_param_bounds))); + std::move (type_param_bounds), locus)); } // Parses a for lifetimes clause, including the for keyword and angle brackets. |