-
- Downloads
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.
Showing
- gcc/rust/backend/rust-compile-expr.cc 69 additions, 47 deletionsgcc/rust/backend/rust-compile-expr.cc
- gcc/rust/backend/rust-compile-expr.h 3 additions, 0 deletionsgcc/rust/backend/rust-compile-expr.h
- gcc/testsuite/rust/execute/torture/closure2.rs 32 additions, 0 deletionsgcc/testsuite/rust/execute/torture/closure2.rs
Loading
Please register or sign in to comment