diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-03-10 18:13:01 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:21:11 +0100 |
commit | 7ec57f2e7c79a5a99bef7613e6c9b957711a887e (patch) | |
tree | ad9a1bb1818f016afe264ab100e641550b368b42 /gcc/rust/backend/rust-compile-expr.cc | |
parent | 599d5d9f833a2b9dd88e34a77fdb3e43b146a50a (diff) | |
download | gcc-7ec57f2e7c79a5a99bef7613e6c9b957711a887e.zip gcc-7ec57f2e7c79a5a99bef7613e6c9b957711a887e.tar.gz gcc-7ec57f2e7c79a5a99bef7613e6c9b957711a887e.tar.bz2 |
gccrs: tyty get rid of useless virtuals
This removes can_substitute and contains_type_parameters which were
confusing interfaces to act as a proxy to the SubstitionRef types. This
replaces them with a single base implementation which is much easier to
debug and follow.
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::visit): update to use new interface
(TypeCheckExpr::resolve_root_path): likewise
(TypeCheckExpr::resolve_segments): likewise
* typecheck/rust-hir-type-check-type.cc (TypeCheckType::visit): likewise
(TypeCheckType::resolve_root_path): likewise
* typecheck/rust-tyty-subst.cc (SubstitutionRef::get_mappings_from_generic_args): likewise
* typecheck/rust-tyty.cc (BaseType::supports_substitutions): likewise
(BaseType::can_substitute): remove
(BaseType::contains_type_parameters): remove
(handle_substitions): cleanup
(TupleType::handle_substitions): update
(FnType::handle_substitions): update
(ProjectionType::supports_substitutions): update
* typecheck/rust-tyty.h: update header
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.cc')
0 files changed, 0 insertions, 0 deletions