]> gcc.gnu.org Git - gcc.git/commit
gccrs: Clear the substitution callbacks when copying ArgumentMappings
authorPhilip Herron <herron.philip@googlemail.com>
Fri, 27 Jan 2023 18:31:11 +0000 (18:31 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 6 Apr 2023 08:47:21 +0000 (10:47 +0200)
commit2f228578d56dd9a13111bd6a22df808b5da205e3
tree682af01734217312bbbc38366405c54f8e015945
parentdcb2e571ac6a142ce80bc5e1956008eae232cd12
gccrs: Clear the substitution callbacks when copying ArgumentMappings

When we set the callback on substitutions this is not safe to be copied
around since we store the used argument mappings and can reuse them in
different contexts. This clears the callback on copy's to make it safer.

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/ChangeLog:

* typecheck/rust-tyty-subst.cc: update copy constructors
gcc/rust/typecheck/rust-tyty-subst.cc
This page took 0.057379 seconds and 5 git commands to generate.