gccrs: TyTy: Common interface for fucntion-like types
commit44c58e2972826bd795431a3dada784b65c4d6487
authorJakub Dupak <dev@jakubdupak.com>
Sun, 3 Dec 2023 10:16:59 +0000 (3 11:16 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:50 +0000 (30 12:36 +0100)
tree0bc5392c97fb8902427c32f16a0cec86303a728d
parent7eaef4f5b19a6e5298ce63218a0af791f54f8102
gccrs: TyTy: Common interface for fucntion-like types

gcc/rust/ChangeLog:

* typecheck/rust-tyty.h (class ClosureType): Inherit interface.
(class FnPtr): Inherit interface.
(class FnType): Inherit interface.
(class CallableTypeInterface): New interface.
(BaseType::is): Detect interface members API.

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
gcc/rust/typecheck/rust-tyty.h