https://gcc.gnu.org/g:baa5e752ce291423c4ba3f693e55f138683fa433
commit r17-2224-gbaa5e752ce291423c4ba3f693e55f138683fa433 Author: Philip Herron <[email protected]> Date: Sat Apr 18 21:49:40 2026 +0100 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 <[email protected]> Diff: --- 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 70e46f3f44bb..79798c7b2420 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;
