-
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
warn(must_not_suspend) started being raised incorrectly when moving from stable to nightly #90459
Comments
Bisection seems to point to commit 598d89b searched nightlies: from nightly-2021-01-01 to nightly-2021-10-29 bisected with cargo-bisect-rustc v0.6.0Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2021-01-01 --end=2021-10-29 --script=./script.sh |
Regression is actually in 1.57 based on that bisection, but we're planning to switch the lint to allow by default for now regardless. |
This issue is marked with the 1.58.0 milestone, but beta is currently 1.57.0, so should the milestone be updated? |
Yeah, I think I misclicked. |
#89826 has landed on master now (not beta yet). |
PR #89826 is in beta now. Closing as fixed. |
Code
I tried this code:
Note: The
if let Some(_) = borrow.as_ref() { }
block is not necessary to reproduce (only its contents are needed), but this is how my actual code is structured, so I want to ensure it is consideredPlayground link: here
I expected to see this compile without errors.
Instead, this happened:
Version it worked on
It most recently worked on: 1.56.0 stable
Version with regression
rustc --version --verbose
:@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
The text was updated successfully, but these errors were encountered: