diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-01-27 18:28:06 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2023-02-05 00:10:48 +0000 |
commit | 50856ddba4689710dd53865e96cc7da9885b7b51 (patch) | |
tree | aa526c7db7997bd14ace13ea00d60b4875fb49e2 /gcc/function-tests.cc | |
parent | 82d0550253b5524f0e612c4b576bf5889bbd2bb5 (diff) | |
download | gcc-50856ddba4689710dd53865e96cc7da9885b7b51.zip gcc-50856ddba4689710dd53865e96cc7da9885b7b51.tar.gz gcc-50856ddba4689710dd53865e96cc7da9885b7b51.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/function-tests.cc')
0 files changed, 0 insertions, 0 deletions