aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-constexpr.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-10-20 18:31:02 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-02-21 12:36:41 +0100
commit21d19d2cf606bc8133574b49013d9bac47bdce20 (patch)
tree06d8487b47862cce2b7f3832379c7a4ef36fff71 /gcc/rust/backend/rust-constexpr.cc
parent51d180fcd7e6bce5093978e1a8ff64ac6e7624c7 (diff)
downloadgcc-21d19d2cf606bc8133574b49013d9bac47bdce20.zip
gcc-21d19d2cf606bc8133574b49013d9bac47bdce20.tar.gz
gcc-21d19d2cf606bc8133574b49013d9bac47bdce20.tar.bz2
gccrs: Support Closure calls as generic trait bounds
gcc/rust/ChangeLog: * backend/rust-compile-expr.cc (CompileExpr::visit): Refactor checking of closures. (CompileExpr::generate_possible_fn_trait_call): New function. * backend/rust-compile-expr.h: Declare `generate_possible_fn_trait_call`. gcc/testsuite/ChangeLog: * rust/execute/torture/closure2.rs: New test.
Diffstat (limited to 'gcc/rust/backend/rust-constexpr.cc')
0 files changed, 0 insertions, 0 deletions