-
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
cycle detected when computing the variances of
despite not using inherent assoc. types feature flag
#113265
Comments
What makes you think this is related to inherent associated types? I don't think it has to do with IATs, and it seems to have been failing since 2022. |
It's certainly not ideal that we don't currently issue the feature-gate error for inherent associated types next to the cycle error since I assume it's quite confusing and unhelpful for the uninitiated (in the sense of "what the hell did I do wrong, compiler?!"). Apart from that, the cycle error is already tracked in #108491 and #110106 but you already found these issues :) @rustbot label T-compiler F-inherent_associated_types |
@compiler-errors There's an inherent assoc ty at the very end of the snippet |
Ah, yeah, ok then. @fmease maybe we should just lower IATs to |
Yas, can do that. @rustbot claim |
It was an issue I noticed when I was moving a function from a trait impl to a normal impl and I forgot to remove the associated type, took me a while to identify the issue in my codebase since it was during a design refactor 😅 |
|
Can confirm it's fixed in nightly, tested my project again with |
This is a minimal version of a part from my project (compilable repro here)
Expected compiler error (reported after commenting out the marked part above):
Actual compiler error:
Meta
Bug was initially discovered with a nightly compiler, but I was able to raise it on stable as well. Both versions used from Flatpak's
rust-stable
andrust-nightly
SDKsNightly:
rustc --version --verbose
:Stable:
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: