]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Refactor TyVar and TypeBoundPredicates
authorPhilip Herron <herron.philip@googlemail.com>
Thu, 12 Jan 2023 18:00:52 +0000 (18:00 +0000)
committerPhilip Herron <herron.philip@googlemail.com>
Sun, 5 Feb 2023 00:06:43 +0000 (00:06 +0000)
commit1fbf184bb9221f91a8c921ab868d8e1e5d2b56c3
treee9099119e944a2ec4143539cea671bd870bc217b
parent8e9f9807f35aeb63a21fc49c0fa55a76a6d3107e
gccrs: Refactor TyVar and TypeBoundPredicates

This extract these helpers into seperate files

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

* Make-lang.in: update makefile
* typecheck/rust-tyty.cc (TyVar::TyVar): move to new file
(TyVar::get_tyty): likewise
(TyVar::get_implicit_infer_var): likewise
(TyVar::subst_covariant_var): likewise
(TyVar::clone): likewise
(TyVar::monomorphized_clone): likewise
(TyWithLocation::TyWithLocation): likewise
* typecheck/rust-tyty.h (class BaseType): cleanup
(class TypeBoundPredicate): move to its own file
(class TypeBoundPredicateItem): likewise
(class TypeBoundsMappings): likewise
(class TyVar): likewise
(class TyWithLocation): likewise
* typecheck/rust-tyty-bounds.h: New file.
* typecheck/rust-tyty-util.cc: New file.
* typecheck/rust-tyty-util.h: New file.
gcc/rust/Make-lang.in
gcc/rust/typecheck/rust-tyty-bounds.h [new file with mode: 0644]
gcc/rust/typecheck/rust-tyty-util.cc [new file with mode: 0644]
gcc/rust/typecheck/rust-tyty-util.h [new file with mode: 0644]
gcc/rust/typecheck/rust-tyty.cc
gcc/rust/typecheck/rust-tyty.h