-
Notifications
You must be signed in to change notification settings - Fork 117
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" error while compiling zebrad with nightly rust #923
Comments
We didn't catch this bug in our CI, because we don't run a nightly compile job. I opened #924 to see if that's worthwhile. |
I'm going to need help to:
@dconnolly or @yaahc, can you help me report a bug in rustc? |
I've created a rust zulip thread to get help. |
I bisected Zebra, the first bad commit is 6aeefce, which adds extra tracing and metrics. |
Looks like the instrument proc macro is responsible for this issue. |
When I build zebrad with rust nightly 2020-08-18, I see the following error:
I see similar errors for other types, it seems like the maximum size is around 2MB.
The first bad Zebra commit is 6aeefce, which adds extra tracing and metrics.
The first bad rustc commit is rust-lang/rust@0a49057 which changes how types are normalised. It seems to interact badly with a known issue with exponential blowouts in nested types.
As far as rustc goes, I get this error on:
But not on:
Some related rustc tickets are:
reached the type-length limit
error in previously working code rust-lang/rust#67757 (fixed)It seems to be caused by futures, tracing has also had similar issues:
The text was updated successfully, but these errors were encountered: