about summary refs log tree commit diff
path: root/src/test/ui/async-await/partial-drop-partial-reinit.rs
AgeCommit message (Collapse)AuthorLines
2022-09-13Update partial-drop-partial-reinit.rsEric Holk-4/+7
2022-06-21Address review comments from #98259Joshua Nelson-1/+1
It got merged so fast I didn't have time to make changes xD
2022-06-19Greatly improve error reporting for futures and generators in ↵Joshua Nelson-0/+8
`note_obligation_cause_code` Most futures don't go through this code path, because they're caught by `maybe_note_obligation_cause_for_async_await`. But all generators do, and `maybe_note` is imperfect and doesn't catch all futures. Improve the error message for those it misses. At some point, we may want to consider unifying this with the code for `maybe_note_async_await`, so that `async_await` notes all parent constraints, and `note_obligation` can point to yield points. But both functions are quite complicated, and it's not clear to me how to combine them; this seems like a good incremental improvement.
2022-01-18Safely handle partial dropsEric Holk-0/+29
We previously weren't tracking partial re-inits while being too aggressive around partial drops. With this change, we simply ignore partial drops, which is the safer, more conservative choice.