]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add missing param subst callback
authorPhilip Herron <herron.philip@googlemail.com>
Fri, 27 Jan 2023 18:49:53 +0000 (18:49 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 6 Apr 2023 08:47:21 +0000 (10:47 +0200)
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/ChangeLog:

* typecheck/rust-tyty-subst.cc: add missing callback

gcc/rust/typecheck/rust-tyty-subst.cc

index 0e181efb359e64479ef83238351823e50a3b4c1d..7f5bb22687d5c20be211c2f0407dabcf78f07dad 100644 (file)
@@ -141,6 +141,7 @@ SubstitutionParamMapping::fill_param_ty (
        bound.handle_substitions (subst_mappings);
 
       param->set_ty_ref (type.get_ref ());
+      subst_mappings.on_param_subst (*param, arg);
     }
 
   return true;