]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Fix missing copy constructor arguments
authorPhilip Herron <herron.philip@googlemail.com>
Sat, 18 Apr 2026 20:49:40 +0000 (21:49 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 8 Jul 2026 15:22:43 +0000 (17:22 +0200)
gcc/rust/ChangeLog:

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

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/typecheck/rust-tyty-bounds.cc

index 70e46f3f44bb02178797c042271de7662efafdd8..79798c7b2420a2264a9dcb6d927dc9cbb6efe44a 100644 (file)
@@ -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;