aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-10-20 18:31:02 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-10-20 18:31:24 +0100
commit05bd0555fa398c171acc22b6cfa1d5974202a5c7 (patch)
tree5e79f9053d69d1bc3e03d015aa156d3209c33890 /gcc/rust/backend/rust-compile-expr.h
parentf6f87dead4bf2da20bc3a22dc6ca7a373c9ed05c (diff)
downloadgcc-05bd0555fa398c171acc22b6cfa1d5974202a5c7.zip
gcc-05bd0555fa398c171acc22b6cfa1d5974202a5c7.tar.gz
gcc-05bd0555fa398c171acc22b6cfa1d5974202a5c7.tar.bz2
Support Closure calls as generic trait bounds
Addresses #195
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
-rw-r--r--gcc/rust/backend/rust-compile-expr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h
index 6938c93..a259daf 100644
--- a/gcc/rust/backend/rust-compile-expr.h
+++ b/gcc/rust/backend/rust-compile-expr.h
@@ -152,6 +152,9 @@ protected:
tree compiled_closure_tyty,
TyTy::FnType **fn_tyty);
+ bool generate_possible_fn_trait_call (HIR::CallExpr &expr, tree receiver,
+ tree *result);
+
private:
CompileExpr (Context *ctx);