diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-02-17 15:48:46 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-02-18 09:08:07 +0100 |
commit | 9e524a7f5a5a7abd7aaf3891ea4eca6f0f84fd36 (patch) | |
tree | 2750acaf6188d124a3f4364022e1b587e2dd07bd /gcc/rust/parse/rust-parse-impl.h | |
parent | 63538444fbce73fff2948e3357939b520f59afb8 (diff) | |
download | gcc-9e524a7f5a5a7abd7aaf3891ea4eca6f0f84fd36.zip gcc-9e524a7f5a5a7abd7aaf3891ea4eca6f0f84fd36.tar.gz gcc-9e524a7f5a5a7abd7aaf3891ea4eca6f0f84fd36.tar.bz2 |
closure-arg: Add location info on arg name
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
-rw-r--r-- | gcc/rust/parse/rust-parse-impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index 445acad..6498f3c 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -8895,8 +8895,8 @@ Parser<ManagedTokenSource>::parse_closure_param () } } - return AST::ClosureParam (std::move (pattern), std::move (type), - std::move (outer_attrs)); + return AST::ClosureParam (std::move (pattern), pattern->get_locus (), + std::move (type), std::move (outer_attrs)); } // Parses a grouped or tuple expression (disambiguates). |