Skip to content

Commit 21cf0e6

Browse files
committed
Add missing location info on GenericArgs
1 parent 7ac9a76 commit 21cf0e6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gcc/rust/hir/tree/rust-hir-path.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ struct GenericArgs
133133

134134
GenericArgs (std::vector<Lifetime> lifetime_args,
135135
std::vector<std::unique_ptr<Type> > type_args,
136-
std::vector<GenericArgsBinding> binding_args,
137-
Location locus = Location ())
136+
std::vector<GenericArgsBinding> binding_args, Location locus)
138137
: lifetime_args (std::move (lifetime_args)),
139138
type_args (std::move (type_args)),
140139
binding_args (std::move (binding_args)), locus (locus)
@@ -471,7 +470,7 @@ class TypePathSegmentGeneric : public TypePathSegment
471470
has_separating_scope_resolution, locus),
472471
generic_args (GenericArgs (std::move (lifetime_args),
473472
std::move (type_args),
474-
std::move (binding_args)))
473+
std::move (binding_args), locus))
475474
{}
476475

477476
std::string as_string () const override;

0 commit comments

Comments
 (0)