Repository navigation
Mixing async functions and &mut leads to overflow evaluating requirement #55809
Description
Activity
- addedA-async-awaitArea: Async & AwaitArea: Async & AwaitA-coroutinesArea: CoroutinesArea: Coroutines
on Nov 9, 2018 i have produced the same error in a project:
https://github.com/paracat/reflow/commit/d25aa1f4364c70f512d58cb6946d56faece5b5d8
though i haven't extracted a minimal snippet, the cause of the problem is in the latest commit that only changes several lines
i have also found the code that produces the DeBruijn error. It's the commit before this one. It seems whether
?is used for error handling mattersapart from the two last commits that produce these two different errors, previous commits compile fine
i believe this is related to #53989
Maybe related to #55809 ?
@nikomatsakis that link is just back to this same issue. What issue did you actually mean to link?
- addedAsyncAwait-PolishAsync-await issues that are part of the "polish" areaAsync-await issues that are part of the "polish" area
on Mar 5, 2019 @eminence good point, I don't remember anymore =)
Marking as blocking -- we should be trying to figure out what is happening here, at least, and deciding whether to block on it.
Assigning to myself to try and do some investigation.
- added a commit that references this issue
on Mar 13, 2019 This code compiles successfully when I check locally against nightly and a build of master, I've submitted #59156 with a regression test.
- addedE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
on Mar 13, 2019 - added a commit that references this issue
on Mar 16, 2019
Code:
Playground.
This fails to compile:
This might be related to #50674, except that the code that triggers it seems more likely to be valid. I ran into this bug when trying to use
tokioto read data and pass it off toserde. At the very least, the error message is extremely confusing.Slightly modifying this code will occasionally trigger another compiler error (something about DeBruijn indices) but I have lost the exact code that triggers it.