-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator Resume Arguments #68524
Generator Resume Arguments #68524
Commits on Feb 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 044fe0f - Browse repository at this point
Copy the full SHA 044fe0fView commit details -
Add a resume type param to the generator substs
...and unify it with `()` for now
Configuration menu - View commit details
-
Copy full SHA for 0117033 - Browse repository at this point
Copy the full SHA 0117033View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25af2f6 - Browse repository at this point
Copy the full SHA 25af2f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a1227a - Browse repository at this point
Copy the full SHA 8a1227aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32005fe - Browse repository at this point
Copy the full SHA 32005feView commit details -
Adjust tests to type inference changes
This makes some error messages ungreat, but those seem to be preexisting bugs that also apply to closures / return position `impl Trait` in general.
Configuration menu - View commit details
-
Copy full SHA for 2101a1f - Browse repository at this point
Copy the full SHA 2101a1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f2c1468 - Browse repository at this point
Copy the full SHA f2c1468View commit details -
Change MIR building to fill in the resume place
This changes `Yield` from `as_rvalue` to `into` lowering, which could have a possible performance impact. I could imagine special-casing some resume types here to use a simpler lowering for them, but it's unclear if that makes sense at this stage.
Configuration menu - View commit details
-
Copy full SHA for 3c069a0 - Browse repository at this point
Copy the full SHA 3c069a0View commit details -
Make generator transform move resume arg around
The resume arg is passed as argument `_2` and needs to be moved to the `Yield`s target `Place`
Configuration menu - View commit details
-
Copy full SHA for 3c22e51 - Browse repository at this point
Copy the full SHA 3c22e51View commit details -
Fix error message on type mismatch in generator
Instead of "closure is expected to take 0 arguments" we now get the expected type mismatch error.
Configuration menu - View commit details
-
Copy full SHA for 5b2059b - Browse repository at this point
Copy the full SHA 5b2059bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fca614e - Browse repository at this point
Copy the full SHA fca614eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ee857c - Browse repository at this point
Copy the full SHA 4ee857cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a9709b - Browse repository at this point
Copy the full SHA 7a9709bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bb8ecb - Browse repository at this point
Copy the full SHA 3bb8ecbView commit details -
Configuration menu - View commit details
-
Copy full SHA for aae0f54 - Browse repository at this point
Copy the full SHA aae0f54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fa46fe - Browse repository at this point
Copy the full SHA 9fa46feView commit details
Commits on Feb 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 392e595 - Browse repository at this point
Copy the full SHA 392e595View commit details
Commits on Feb 4, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 341eaf5 - Browse repository at this point
Copy the full SHA 341eaf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc66d29 - Browse repository at this point
Copy the full SHA cc66d29View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72776e6 - Browse repository at this point
Copy the full SHA 72776e6View commit details -
Take resume argument from the right generator type
I suppose we could also just put `tcx.mk_unit()` here, but this works too
Configuration menu - View commit details
-
Copy full SHA for 895aab2 - Browse repository at this point
Copy the full SHA 895aab2View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb66b9e - Browse repository at this point
Copy the full SHA fb66b9eView commit details
Commits on Feb 6, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 84dd07a - Browse repository at this point
Copy the full SHA 84dd07aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 732913a - Browse repository at this point
Copy the full SHA 732913aView commit details -
Ignore panic-drops-resume.rs on wasm/emscripten
It does not have unwinding support
Configuration menu - View commit details
-
Copy full SHA for 9d7b214 - Browse repository at this point
Copy the full SHA 9d7b214View commit details