From 048261647afd1a08f681b78c90c58a9baaeef76d Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Thu, 19 Aug 2021 21:12:31 +0100 Subject: Add qualified path support Qualified paths need to lookup the associated trait item and mangle the names apropriatly. --- gcc/rust/backend/rust-compile-expr.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/rust/backend/rust-compile-expr.h') diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h index 4658295..80cdc5e 100644 --- a/gcc/rust/backend/rust-compile-expr.h +++ b/gcc/rust/backend/rust-compile-expr.h @@ -629,6 +629,11 @@ public: expr.get_locus ()); } + void visit (HIR::QualifiedPathInExpression &expr) override + { + translated = ResolvePathRef::Compile (expr, ctx); + } + void visit (HIR::PathInExpression &expr) override { translated = ResolvePathRef::Compile (expr, ctx); -- cgit v1.1