From: Philip Herron Date: Sat, 18 Apr 2026 20:49:40 +0000 (+0100) Subject: gccrs: Fix missing copy constructor arguments X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=baa5e752ce291423c4ba3f693e55f138683fa433;p=thirdparty%2Fgcc.git gccrs: Fix missing copy constructor arguments gcc/rust/ChangeLog: * typecheck/rust-tyty-bounds.cc (TypeBoundPredicate::TypeBoundPredicate): missing argument (TypeBoundPredicate::operator=): likewise Signed-off-by: Philip Herron --- diff --git a/gcc/rust/typecheck/rust-tyty-bounds.cc b/gcc/rust/typecheck/rust-tyty-bounds.cc index 70e46f3f44b..79798c7b242 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;