https://pantsbuild.org/ logo
#development
Title
# development
f

fast-nail-55400

07/16/2020, 4:15 PM
error: reached the type-length limit while instantiating
std::pin::Pin::<&mut std::future...::Future>::poll::{{closure}}#0]>
— any advice on dealing with errors like that?
w

witty-crayon-22786

07/16/2020, 4:20 PM
increase the type length limit
f

fast-nail-55400

07/16/2020, 4:26 PM
I saw that suggestion. That is okay to do?
and now I’m not seeing that error after doing
./pants --version
for the side effect of building the engine
w

witty-crayon-22786

07/16/2020, 4:27 PM
it shouldn’t be affected by sideeffects, but it might be context specific
f

fast-nail-55400

07/16/2020, 4:28 PM
never mind, this recompile is where I boxed the stream in question
so type length limited again
w

witty-crayon-22786

07/16/2020, 4:28 PM
afaict, large types are an unsolved problem in the ecosystem. there are some changes to the compiler to make them smaller, and some folks introduce boxes to shrink things
f

fast-nail-55400

07/16/2020, 4:28 PM
ugh but
cargo build
when run from under src/rust/engine has the type-length issue