From: Philip Herron <[email protected]>

gcc/rust/ChangeLog:

        * typecheck/rust-tyty-bounds.cc 
(TypeBoundPredicate::TypeBoundPredicate): missing argument
        (TypeBoundPredicate::operator=): likewise

Signed-off-by: Philip Herron <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/c4fee437c9dda0e42a6d5d13ebde0f6dba18b47c

The commit has NOT been mentioned in any issue.

The commit has been mentioned in the following pull-request(s):
 - https://github.com/Rust-GCC/gccrs/pull/4594

 gcc/rust/typecheck/rust-tyty-bounds.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gcc/rust/typecheck/rust-tyty-bounds.cc 
b/gcc/rust/typecheck/rust-tyty-bounds.cc
index 70e46f3f4..79798c7b2 100644
--- a/gcc/rust/typecheck/rust-tyty-bounds.cc
+++ b/gcc/rust/typecheck/rust-tyty-bounds.cc
@@ -426,7 +426,8 @@ TypeBoundPredicate::TypeBoundPredicate (const 
TypeBoundPredicate &other)
     }
 
   used_arguments
-    = SubstitutionArgumentMappings (copied_arg_mappings, {},
+    = SubstitutionArgumentMappings (copied_arg_mappings,
+                                   other.used_arguments.get_binding_args (),
                                    other.used_arguments.get_regions (),
                                    other.used_arguments.get_locus ());
 }
@@ -467,7 +468,8 @@ TypeBoundPredicate::operator= (const TypeBoundPredicate 
&other)
     }
 
   used_arguments
-    = SubstitutionArgumentMappings (copied_arg_mappings, {},
+    = SubstitutionArgumentMappings (copied_arg_mappings,
+                                   other.used_arguments.get_binding_args (),
                                    other.used_arguments.get_regions (),
                                    other.used_arguments.get_locus ());
   super_traits = other.super_traits;
-- 
2.54.0

Reply via email to