[gcc/devel/rust/master] gccrs: Add missing param subst callback

Thomas Schwinge tschwinge@gcc.gnu.org
Tue Feb 7 17:56:01 GMT 2023


https://gcc.gnu.org/g:b5719d74b349bf96735851844158ea9b5d65db85

commit b5719d74b349bf96735851844158ea9b5d65db85
Author: Philip Herron <herron.philip@googlemail.com>
Date:   Fri Jan 27 18:49:53 2023 +0000

    gccrs: Add missing param subst callback
    
    Signed-off-by: Philip Herron <herron.philip@googlemail.com>
    
    gcc/rust/ChangeLog:
    
            * typecheck/rust-tyty-subst.cc: add missing callback

Diff:
---
 gcc/rust/typecheck/rust-tyty-subst.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/rust/typecheck/rust-tyty-subst.cc b/gcc/rust/typecheck/rust-tyty-subst.cc
index 0e181efb359..7f5bb22687d 100644
--- a/gcc/rust/typecheck/rust-tyty-subst.cc
+++ b/gcc/rust/typecheck/rust-tyty-subst.cc
@@ -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;


More information about the Gcc-cvs mailing list