rust-lang / chalk

An implementation and definition of the Rust trait system using a PROLOG-like logic solver
https://rust-lang.github.io/chalk/book/
Other
1.81k stars 180 forks source link

Make the Generator trait well-known #723

Closed nrc closed 3 years ago

nrc commented 3 years ago

r? @jackh726 There's quite a lot of cargo culting of code from function trait support which I don't fully understand, so I'd appreciate a close review.

As discussed on Zulip, this adds initial support for the Generator trait as a well-known trait. I'll work on DispatchFromDyn next, but want to check I'm doing the right things first.

jackh726 commented 3 years ago

@bors r+

bors commented 3 years ago

:pushpin: Commit ce31db804dbf9e238865a8420ebdaa8ab6d92b8e has been approved by jackh726

bors commented 3 years ago

:hourglass: Testing commit ce31db804dbf9e238865a8420ebdaa8ab6d92b8e with merge dbe241e18301cb4688c4b9c277d78dae2913073a...

bors commented 3 years ago

:sunny: Test successful - checks-actions Approved by: jackh726 Pushing dbe241e18301cb4688c4b9c277d78dae2913073a to master...