-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Compiler hangs during execution #139197
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
Comments
marginally smaller: trait Trait {}
struct W<T>(T);
impl<T, U> Trait for W<()>
where
W<T>: Trait,
W<U>: Trait,
{
}
fn impls<T: Trait>() {}
fn main() {
impls::<W<_>>();
} bisection
Backtraces from the live process: backtrace1
backtrace 2
backtrace 3
Might be worth noting that the compiler memory keeps steadily and rather rapidly increasing while it's working. @rustbot label: +I-hang +T-compiler +T-types +regression-from-stable-to-stable |
Correction: The bisection above is only valid for the original code ( The latter bisects to nightly-2024-03-08 ( cargo-bisect-rustc output
Also, I want to point out that while this is technically a "regression", the code never compiled, even prior to 1.78. @rustbot label: +S-has-bisection +S-has-mcve -needs-triage +A-trait-system +A-coherence |
I bisected the first reproducible again and I got:
I am not sure I fully grasp the opening comment for #132090 but I think it's related to the hanging, maybe cc @compiler-errors ? @rustbot label -I-prioritize +P-medium |
I tried this code:
I expected to see this happen:
The compilation process should complete successfully, and any errors in the code should be reported with diagnostic messages.
Instead, this happened:
The compiler hangs indefinitely and appears to never terminate.
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: