gccrs: Refactor method call type checking
authorPhilip Herron <philip.herron@embecosm.com>
Wed, 19 Oct 2022 09:59:18 +0000 (10:59 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:39 +0000 (12:36 +0100)
commit4d021d9e019dd2a7b5442653a20e126f37fd8f39
tree20712a4b87e65c15e98505097c4ff247aeaaaf5f
parent977e0e5227d467fcda43edfae72c5251c283d871
gccrs: Refactor method call type checking

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): Simplify method
call type checking  by removing visitor and instead using one static cast. Use the
new interface.
* typecheck/rust-tyty-call.cc (TypeCheckMethodCallExpr::visit): Likewise.
(TypeCheckMethodCallExpr::go): Likewise.
(TypeCheckMethodCallExpr::check): Likewise.
* typecheck/rust-tyty-call.h (class TypeCheckMethodCallExpr): Likewise.
(class Argument): Likewise.
gcc/rust/typecheck/rust-hir-type-check-expr.cc
gcc/rust/typecheck/rust-tyty-call.cc
gcc/rust/typecheck/rust-tyty-call.h