aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-03-16 15:49:26 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-03-16 15:49:26 +0000
commit21cf0e67a6f748525ca79e8d9aa59c94bef13519 (patch)
treec10c5d7846ba195c75c9bef99ab6e07e442a63b0
parent7ac9a76c8983df0d5a30b1c2fafbff58d7cb7e52 (diff)
downloadgcc-21cf0e67a6f748525ca79e8d9aa59c94bef13519.zip
gcc-21cf0e67a6f748525ca79e8d9aa59c94bef13519.tar.gz
gcc-21cf0e67a6f748525ca79e8d9aa59c94bef13519.tar.bz2
Add missing location info on GenericArgs
-rw-r--r--gcc/rust/hir/tree/rust-hir-path.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-path.h b/gcc/rust/hir/tree/rust-hir-path.h
index 9858ba3..99f4f0b 100644
--- a/gcc/rust/hir/tree/rust-hir-path.h
+++ b/gcc/rust/hir/tree/rust-hir-path.h
@@ -133,8 +133,7 @@ public:
GenericArgs (std::vector<Lifetime> lifetime_args,
std::vector<std::unique_ptr<Type> > type_args,
- std::vector<GenericArgsBinding> binding_args,
- Location locus = Location ())
+ std::vector<GenericArgsBinding> binding_args, Location locus)
: lifetime_args (std::move (lifetime_args)),
type_args (std::move (type_args)),
binding_args (std::move (binding_args)), locus (locus)
@@ -471,7 +470,7 @@ public:
has_separating_scope_resolution, locus),
generic_args (GenericArgs (std::move (lifetime_args),
std::move (type_args),
- std::move (binding_args)))
+ std::move (binding_args), locus))
{}
std::string as_string () const override;