aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-desugar-apit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/ast/rust-desugar-apit.cc')
-rw-r--r--gcc/rust/ast/rust-desugar-apit.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-desugar-apit.cc b/gcc/rust/ast/rust-desugar-apit.cc
index 2f31bcf..5b9486e 100644
--- a/gcc/rust/ast/rust-desugar-apit.cc
+++ b/gcc/rust/ast/rust-desugar-apit.cc
@@ -203,7 +203,8 @@ public:
// Create the new generic parameter
auto generic_param = std::unique_ptr<TypeParam> (
- new TypeParam (ident, type.get_locus (), std::move (bounds)));
+ new TypeParam (ident, type.get_locus (), std::move (bounds), nullptr, {},
+ true /*from impl trait*/));
// Store the generic parameter to be added to the function signature
implicit_generic_params.push_back (std::move (generic_param));
@@ -241,7 +242,8 @@ public:
// Create the new generic parameter
auto generic_param = std::unique_ptr<TypeParam> (
- new TypeParam (ident, type.get_locus (), std::move (bounds)));
+ new TypeParam (ident, type.get_locus (), std::move (bounds), nullptr, {},
+ true /*from impl trait*/));
// Store the generic parameter to be added to the function signature
implicit_generic_params.push_back (std::move (generic_param));