Uh oh!
There was an error while loading. Please reload this page.
Improve async-await/generator obligation errors in some cases - #70679
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nikomatsakis
left a comment
There was a problem hiding this comment.
Generally looks good. Left some thoughts.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
davidtwco
commented
Apr 8, 2020
tmandry
commented
Apr 8, 2020
@nikomatsakis I updated the wording, what do you think? It's a little repetitive in some places, but by and large I think it's for the best. |
nikomatsakis
left a comment
There was a problem hiding this comment.
I think these are looking much better, yes.
| = help: the trait `std::marker::Sync` is not implemented for `std::cell::RefCell<i32>` | ||
| = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Arc<std::cell::RefCell<i32>>` | ||
| = note: required because it appears within the type `[generator@$DIR/issue-68112.rs:38:5: 41:6 t:std::sync::Arc<std::cell::RefCell<i32>> {()}]` | ||
| = note: required because it appears within the type `impl std::ops::Generator` |
There was a problem hiding this comment.
this backtrace is confusing, but that's a separate issue I think =)
| ... | ||
| LL | spawn(async { | ||
| | ^^^^^ future is not `Send` | ||
| | ^^^^^ future created by async block is not `Send` |
nikomatsakis
commented
Apr 10, 2020
@bors r+ |
bors
commented
Apr 10, 2020
📌 Commit 889cfe1 has been approved by |
Improve async-await/generator obligation errors in some cases Fixesrust-lang#68112. This change is best read one commit at a time (I add a test at the beginning and update it in each change after). The `test2` function is a case I found while writing the test that we don't handle with this code yet. I don't attempt to fix it in this PR, but it's a good candidate for future work. r? @davidtwco, @nikomatsakis
bors
commented
Apr 12, 2020
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message |
bors
commented
Apr 12, 2020
☔ The latest upstream changes (presumably #69707) made this pull request unmergeable. Please resolve the merge conflicts. |
I personally find this clearer.
tmandry
commented
Apr 14, 2020
@bors r=nikomatsakis |
bors
commented
Apr 14, 2020
📌 Commit 4326d95 has been approved by |
bors
commented
Apr 14, 2020
bors
commented
Apr 14, 2020
☀️ Test successful - checks-azure |
Fixes#68112.
This change is best read one commit at a time (I add a test at the beginning and update it in each change after).
The
test2function is a case I found while writing the test that we don't handle with this code yet. I don't attempt to fix it in this PR, but it's a good candidate for future work.r? @davidtwco, @nikomatsakis