-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
reached the type-length limit while instantiating std::thread::LocalKey::<std::syn...e, ()}]>>]], std::vec::Vec<i32>>
#64496
Comments
Still failing on rustc 1.40.0-nightly (22bc9e1 2019-09-30) |
1.39.0-beta.5 is affected too |
@kpp : Do you know about a workaround for this issue? |
Sorry, no. You may add |
Unfortunately I believe that this bug has just landed on stable (rustc 1.39.0 (4560ea7 2019-11-04)). |
I just ran into this. I have an integration test that runs fine on tokio runtime, and when I switch it to async-std I get this error. |
I can't reproduce this on rustc 1.43.0-nightly (c20d7ee 2020-03-11) anymore. Stable 1.42 still has the issue... |
I can't reproduce this on rustc 1.43.0-nightly (564758c 2020-03-08) either. |
I got error like
I don't believe adding type_length_limit helps, since I added a super big limit in
BTW, my code is aysnc / await heavy.
to
Fixed the problem for me. |
I have just started hitting this when I upgraded to 1.46.0 today. Several crates in a large workspace (with heavy use of async/await) started failing to compile with this error (which I've never seen before), usually referring to The value it suggests for the |
I'm also getting this issue, but with
|
Related issue: #54540 |
Can confirm this bug on stable 1.46.0, reverting to 1.45.2 fixed the issue. How did this get past crater and into stable? Similarly to @helinwang applying the compiler-suggested fix only increases the suggested |
We've seen a further and more recent regression on nightly on Fuchsia, but we should bisect them separately. |
@rustbot ping cleanup We need to bisect to figure out where this regression occurred. |
Hey Cleanup Crew ICE-breakers! This bug has been identified as a good cc @AminArria @camelid @chrissimpkins @contrun @DutchGhost @elshize @ethanboxx @h-michael @HallerPatrick @hdhoang @hellow554 @imtsuki @kanru @KarlK90 @LeSeulArtichaut @MAdrianMattocks @matheus-consoli @mental32 @nmccarty @Noah-Kennedy @pard68 @PeytonT @pierreN @Redblueflame @RobbieClarken @RobertoSnap @robjtede @SarthakSingh31 @senden9 @shekohex @sinato @spastorino @turboladen @woshilapin @yerke |
I've found that it does eventually reach a |
Bisected the issue on Fuchsia to #75443, which was backported to appear in 1.46 and is likely the cause for all the recent regressions people are noticing. |
As noted above, @eddyb has said we should just get rid of this check. @nikomatsakis I'm curious to hear your thoughts on that. For reference, here's a change to raise all the limits we needed to in Fuchsia. Some of the limits are quite high (the highest I see is over 18 million). I will say that all of these are in related parts of the code, which tells me there might be a common denominator. I'm not aware of an easy way of finding it if there is, though. And people working in that part of the code will be left with juggling these arbitrary-seeming limits. The compile fails immediately on hitting one of these errors, and the offending type may not be the biggest one in the compile, creating the really unfortunate experience of updating the limit only to have it fail again. At one point I just started increasing it myself by arbitrary amounts over what the compiler suggested. |
Can we close either this or #54540, please? It looks like a bunch of work was done here that was already done for the other one. Should just close one of them to prevent further bifurcation. |
This change should be reverted if/when the underlying issue is fixed in rustc. related: rust-lang/rust#64496
Good point. I'll close this one in favor of #54540, which came first. |
Code
https://github.com/kpp/futures-async-combinators/blob/master/examples/stream.rs
On master (commit 4f0ca7b4afec)
Error
Fails with
And later (2019-09-10, 2019-09-12, 2019-09-13, 2019-09-14)
Works with
How to reproduce
The text was updated successfully, but these errors were encountered: