From fe9dd83b41346fa667c693e5dd10dc9fe80e93b3 Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Sat, 14 Aug 2021 21:38:35 +0100 Subject: ProjectionType this is a special TyTy initial boiler plate This is a special type in the rust implementation which contains all the info to generate the relevant declarations to compile trait items which might be fully optional. --- gcc/rust/backend/rust-compile-context.h | 2 ++ gcc/rust/backend/rust-compile-tyty.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'gcc/rust/backend') diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h index 8007c2f..8a3d413 100644 --- a/gcc/rust/backend/rust-compile-context.h +++ b/gcc/rust/backend/rust-compile-context.h @@ -338,6 +338,8 @@ public: void visit (TyTy::PlaceholderType &) override { gcc_unreachable (); } + void visit (TyTy::ProjectionType &) override { gcc_unreachable (); } + void visit (TyTy::ParamType ¶m) override { param.resolve ()->accept_vis (*this); diff --git a/gcc/rust/backend/rust-compile-tyty.h b/gcc/rust/backend/rust-compile-tyty.h index 3ddc29a..1a5747a 100644 --- a/gcc/rust/backend/rust-compile-tyty.h +++ b/gcc/rust/backend/rust-compile-tyty.h @@ -50,6 +50,8 @@ public: void visit (TyTy::PlaceholderType &) override { gcc_unreachable (); } + void visit (TyTy::ProjectionType &) override { gcc_unreachable (); } + void visit (TyTy::TupleType &type) override { if (type.num_fields () == 0) -- cgit v1.1