diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-08-17 17:28:15 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-08-19 15:39:21 +0100 |
commit | 1dc718474044149ec1aa6bee9ea8e83d778f17f2 (patch) | |
tree | 688bcd5d3a550681afaa87b90c848f365d425bcb /gcc/rust/backend/rust-compile-context.h | |
parent | c25cdc84600e81bfd4d1ae104ff9eb524f7c49f0 (diff) | |
download | gcc-1dc718474044149ec1aa6bee9ea8e83d778f17f2.zip gcc-1dc718474044149ec1aa6bee9ea8e83d778f17f2.tar.gz gcc-1dc718474044149ec1aa6bee9ea8e83d778f17f2.tar.bz2 |
optional trait item with associated types
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-context.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h index 8a3d413..6356ccc 100644 --- a/gcc/rust/backend/rust-compile-context.h +++ b/gcc/rust/backend/rust-compile-context.h @@ -336,10 +336,13 @@ public: void visit (TyTy::InferType &) override { gcc_unreachable (); } - void visit (TyTy::PlaceholderType &) override { gcc_unreachable (); } - void visit (TyTy::ProjectionType &) override { gcc_unreachable (); } + void visit (TyTy::PlaceholderType &type) override + { + type.resolve ()->accept_vis (*this); + } + void visit (TyTy::ParamType ¶m) override { param.resolve ()->accept_vis (*this); |