From ec9ead44a40ee68de7fc39e32a47662c44281deb Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Thu, 25 Feb 2021 15:21:34 +0000 Subject: Adds the same support from generic structs in #235 onto tuple structs Type binding still not supported here but the same generic support is added to tuples. Fixes #236 --- gcc/rust/backend/rust-compile-resolve-path.h | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'gcc/rust/backend/rust-compile-resolve-path.h') diff --git a/gcc/rust/backend/rust-compile-resolve-path.h b/gcc/rust/backend/rust-compile-resolve-path.h index 2f3cb68..ae469e6 100644 --- a/gcc/rust/backend/rust-compile-resolve-path.h +++ b/gcc/rust/backend/rust-compile-resolve-path.h @@ -35,7 +35,7 @@ public: return resolver.resolved; } - void visit (HIR::PathInExpression &expr); + void visit (HIR::PathInExpression &expr) override; private: ResolvePathRef (Context *ctx) : HIRCompileBase (ctx), resolved (nullptr) {} @@ -43,24 +43,6 @@ private: Bexpression *resolved; }; -class ResolvePathType : public HIRCompileBase -{ -public: - static Btype *Compile (HIR::Expr *expr, Context *ctx) - { - ResolvePathType resolver (ctx); - expr->accept_vis (resolver); - return resolver.resolved; - } - - void visit (HIR::PathInExpression &expr); - -private: - ResolvePathType (Context *ctx) : HIRCompileBase (ctx), resolved (nullptr) {} - - Btype *resolved; -}; - } // namespace Compile } // namespace Rust -- cgit v1.1