aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-context.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-08-14 21:38:35 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-08-19 15:36:37 +0100
commitfe9dd83b41346fa667c693e5dd10dc9fe80e93b3 (patch)
tree713b4c1681cc29a49ad43935b597d05629fc6e40 /gcc/rust/backend/rust-compile-context.h
parent1e74f08c141eca935005d45840f2b77acbf63531 (diff)
downloadgcc-fe9dd83b41346fa667c693e5dd10dc9fe80e93b3.zip
gcc-fe9dd83b41346fa667c693e5dd10dc9fe80e93b3.tar.gz
gcc-fe9dd83b41346fa667c693e5dd10dc9fe80e93b3.tar.bz2
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.
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
-rw-r--r--gcc/rust/backend/rust-compile-context.h2
1 files changed, 2 insertions, 0 deletions
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 &param) override
{
param.resolve ()->accept_vis (*this);