]> 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)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 6 Apr 2023 08:47:20 +0000 (10:47 +0200)
commit688fccb5227d78240735433b51fa27642f81415a
treefb21d70ec069de6aa632af2589adbe8cd3e7974f
parentc1b1bbbc64524b508c0150c66163b27be508dbcf
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