Repository navigation
Tracking issue for enabling -Zdrop-tracking by default #97331
Description
Activity
@rustbot label +A-async-await +AsyncAwait-Triaged
- addedA-async-awaitArea: Async & AwaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.
on May 23, 2022 @rustbot claim
The last two issues have both been fixed :) and the first has been mitigated (it doesn't have the same error as it used to, but the new error is much more readable than previously).
Let me know if there's any way I can help with the must_not_suspend lint.I suspect the first issue can be marked as fixed too. I'll double check that it still looks okay and if so go ahead and close the issue.
For
must_not_suspend, if we're lucky this may just need someone to try it out, since it seems like #98754 might have fixed that as well.For must_not_suspend, if we're lucky this may just need someone to try it out, since it seems like #98754 might have fixed that as well.
Would it be helpful if
tracingadded#[must_not_suspend]behind anRUSTFLAGS? I can then try enabling it at work's monorepo and see what breaks. I'm not sure if we have #98754, but I can double-check.I think all of these have been fixed :) @eholk what are the next steps? Another Crater run?
Bummer, looks like there's another test that broke in the meantime: #97334 (comment)
Shouldn't this issue be closed now that everything in it is done?
Yes!
Reacted by waffle and Jiahao XUI realize it may not be that useful, but I've stumbled upon https://users.rust-lang.org/t/future-is-not-send-as-this-value-is-used-across-an-await/92580/3, and in my case the
future is not 'Send' as this value is used across an awaitproblem is indeed fixed by wrapping the offending code in a block instead of explicitlydrop-ping atokio::sync::Mutexlock.It seems like
dropis still "ignored" by the compiler. Unfortunately I can not share my code, as it's kinda complex, but I can say that I haverustc 1.86.0-nightly (4a4309466 2025-02-02)on MacOS 15. The issue may therefore be still relevant.
We tried to do this a while ago (#91032) but discovered a number of regressions soon afterwards so it was disabled (#93165). This issue tracks known regressions and their fixes. Note that many regressions have been fixed but are not listed here since they were done before I filed this bug.
issue-70935-complex-spans.rs#97332must_not_suspendlint regression with-Zdrop-tracking#97333-Zdrop-tracking) #102383-Zdrop-trackingby default #97334