-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Feature gate the must_not_suspend
lint
#89798
Comments
Instructions:
|
must_not_suspend
lintmust_not_suspend
lint
I have a pr ready for this, but are we sure we want to? Having people get a lint for mutexguard use across await downstream, but only allowing nightly to annotate new types seems useful to me? |
oh wait, the lint still triggers, its just the feature gate on the using lint directives! seems fine to me! |
The lint should likely be allow by default unless users can disable it somehow in a stable way (otherwise it's a real annoyance, needing e.g. allow(warnings) to get rid of it). The main reason to feature gate + allow by default it initially is to make sure the decision to stabilize surface area is intentional, whereas it sounds like here we did so more or less by accident. |
@Mark-Simulacrum that is covered by this pr: #89787 I believe both landing is what we want for now! |
@rustbot label +AsyncAwait-triaged |
Re-opening to track beta-backport. |
Backported in #90938. |
Feature-gate the
must_not_suspend
lint (the attribute is already feature-gated) as#![feature(must_not_suspend_lint)]
. This will have to be done before 1.57.0 is released (since that's when the lint will land).cc #83310 (comment)
The text was updated successfully, but these errors were encountered: