Skip to content
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

Compile error "reached the type-length limit while instantiating" #568

Closed
blkhlouf1 opened this issue Aug 27, 2020 · 3 comments
Closed

Compile error "reached the type-length limit while instantiating" #568

blkhlouf1 opened this issue Aug 27, 2020 · 3 comments

Comments

@blkhlouf1
Copy link

Issue found on deploy with Heroku :

Compiling check-if-email-exists-cli v0.8.13 (/tmp/build_092091e8_)
error: reached the type-length limit while instantiating <std::iter::Map<std::iter::Map<s..., ()}]>, ()}]>}]>}]>>::Future}]>
|
= note: consider adding a #![type_length_limit="2016981"] attribute to your crate
error: aborting due to previous error
error: could not compile check-if-email-exists-cli.

@amaury1093
Copy link
Member

I added the following lines, as per the hint (with a much larger number):

https://github.com/amaurymartiny/check-if-email-exists/blob/889e52170ef44aa92cfd8e74b177a41f838b841b/src/main.rs#L17-L18

I'm leaving this issue open, if anyone has ideas.

@amaury1093 amaury1093 reopened this Aug 29, 2020
@amaury1093 amaury1093 changed the title Deploy on heroku failed Compile error "reached the type-length limit while instantiating" Aug 30, 2020
@mre
Copy link
Contributor

mre commented Oct 15, 2020

@amaurymartiny seems like it's an issue with the Rust 1.46 toolchain.
Using a newer version (1.47+) seems to fix it.
See rust-lang/rust#54540 and lycheeverse/lychee#9 for a fix.
Credits go to @xiaochuanyu and @pawroman.

@amaury1093
Copy link
Member

fixed in #665

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants