Skip to content
Snippets Groups Projects
Commit 21d19d2c authored by Philip Herron's avatar Philip Herron Committed by Arthur Cohen
Browse files

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.
parent 51d180fc
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment