Closed dtolnay closed 5 years ago
https://github.com/rust-lang/rust/issues/57500 is similar, so this might be a duplicate
Same as https://github.com/rust-lang/rust/issues/55779, most probably.
Thanks, closing as a duplicate of #57500. #55779 seems somewhat different because it manifests as a compile time stack overflow rather than hang, but it is possible they will be addressed by the same fix.
Compiling the following pair of crates hangs and chews up memory.
src/main.rs
dep/src/lib.rs
Repro script:
Mentioning @petrochenkov and @nikomatsakis who worked on #45477. Mentioning @nrc who hit this in a real project.