aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-01-27 18:28:06 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2023-04-06 10:47:20 +0200
commitdcb2e571ac6a142ce80bc5e1956008eae232cd12 (patch)
treec0244f48fb49bc81a2d4fa79800f3bf69cbc6190 /gcc/rust/resolve
parent1019fd6337b32394c016cb23d722eb1f514a66e5 (diff)
downloadgcc-dcb2e571ac6a142ce80bc5e1956008eae232cd12.zip
gcc-dcb2e571ac6a142ce80bc5e1956008eae232cd12.tar.gz
gcc-dcb2e571ac6a142ce80bc5e1956008eae232cd12.tar.bz2
gccrs: Refactor handle_substitutions to take a reference
This patch changes the recusive substitution code to take a reference instead of a copy. This is important as the callback field is going to be made non-copyable in a future patch and this pipeline is for recursive substitutions so its ok to reuse the same mappings here. Signed-off-by: Philip Herron <herron.philip@googlemail.com> gcc/rust/ChangeLog: * typecheck/rust-tyty-bounds.cc: refactor to take a reference * typecheck/rust-tyty-subst.cc: likewise (SubstitutionRef::get_substitution_arguments): likewise (SubstitutionRef::infer_substitions): likewise * typecheck/rust-tyty-subst.h: likewise * typecheck/rust-tyty.cc (ADTType::handle_substitions): likewise (TupleType::handle_substitions): likewise (FnType::handle_substitions): likewise (ClosureType::handle_substitions): likewise (ArrayType::handle_substitions): likewise (SliceType::handle_substitions): likewise (ReferenceType::handle_substitions): likewise (PointerType::handle_substitions): likewise (ParamType::handle_substitions): likewise (ProjectionType::handle_substitions): likewise * typecheck/rust-tyty.h: likewise
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions