aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-08-19 21:12:31 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-08-20 13:32:14 +0100
commit048261647afd1a08f681b78c90c58a9baaeef76d (patch)
tree47dc551f706c4015c017a299a4054cb7db460857 /gcc/rust/backend/rust-compile-expr.h
parent1dc718474044149ec1aa6bee9ea8e83d778f17f2 (diff)
downloadgcc-048261647afd1a08f681b78c90c58a9baaeef76d.zip
gcc-048261647afd1a08f681b78c90c58a9baaeef76d.tar.gz
gcc-048261647afd1a08f681b78c90c58a9baaeef76d.tar.bz2
Add qualified path support
Qualified paths need to lookup the associated trait item and mangle the names apropriatly.
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
-rw-r--r--gcc/rust/backend/rust-compile-expr.h5
1 files changed, 5 insertions, 0 deletions
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);