-
Notifications
You must be signed in to change notification settings - Fork 13k
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
error[E0391] cycle detected when computing
when using rust_2021_incompatible_closure_captures
#92725
Comments
Bisects to #90845, CC @JakobDegen. Although this is a regression from stable to beta, there's not enough time for it to get fixed before release. |
Oops. Yeah, i read the error message and immediately knew what was going on. I can hopefully get a patch up for this tomorrow. @rustbot claim |
@rustbot label regression-from-stable-to-stable, -regression-from-stable-to-beta |
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-high |
Summary
Error
error[E0391] cycle detected when computing when
occursBar
has a significant destructorwhen warn/deny
rust_2021_incompatible_closure_captures
lint on rust beta and nightly with a certain code snippet.On rust stable, it compiles without any issues. Looks like an issue of rustc (rust-lang/rust-clippy#8258 (comment)).
Code
I tried this code:
It compiles successfully on stable or with
#![allow(rust_2021_incompatible_closure_captures)]
:But with this lint warned (or denied) it does not compile on rust beta and on rust nightly with error:
Version it worked on
rustc +stable -vV
:Version with regression
rustc +beta --version --verbose
:rustc +nightly --version --verbose
The text was updated successfully, but these errors were encountered: