Cannot build kitchen_sink and front_end: type-length limit reached
Errors caused by cargo build
for server
:
Error for kitchen_sink
:
error: reached the type-length limit while instantiating `std::future::from_generator::<[s...0, ()>}]>, ()}]>>, ()}]>>, ()}]>`
--> /home/robin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/future/mod.rs:59:1
|
59 | / pub const fn from_generator<T>(gen: T) -> impl Future<Output = T::Return>
60 | | where
61 | | T: Generator<ResumeTy, Yield = ()>,
62 | | {
... |
85 | | GenFuture(gen)
86 | | }
| |_^
|
= note: consider adding a `#![type_length_limit="29758492"]` attribute to your crate
Error for front_end
after adding the suggested attribute for kitchen_sink
:
error: reached the type-length limit while instantiating `std::future::from_generator::<[s...nk::RichCrateVersion>, u32)>>}]>`
--> /home/robin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/future/mod.rs:59:1
|
59 | / pub const fn from_generator<T>(gen: T) -> impl Future<Output = T::Return>
60 | | where
61 | | T: Generator<ResumeTy, Yield = ()>,
62 | | {
... |
85 | | GenFuture(gen)
86 | | }
| |_^
|
= note: consider adding a `#![type_length_limit="5071825"]` attribute to your crate
Error for front_end
after adding the suggested attribute for front_end
:
error: reached the type-length limit while instantiating `std::future::from_generator::<[s...eVersion>, f32, f32)>>, ()}]>}]>`
--> /home/robin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/future/mod.rs:59:1
|
59 | / pub const fn from_generator<T>(gen: T) -> impl Future<Output = T::Return>
60 | | where
61 | | T: Generator<ResumeTy, Yield = ()>,
62 | | {
... |
85 | | GenFuture(gen)
86 | | }
| |_^
|
= note: consider adding a `#![type_length_limit="89496185"]` attribute to your crate
Error for front_end
after updating the suggested attribute for front_end
:
error: reached the type-length limit while instantiating `<std::iter::Map<std::vec::IntoIt...()>}]>, ()}]>, ()}]>>::Future}]>`
--> /home/robin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/iter/adapters/mod.rs:869:5
|
869 | / fn fold<Acc, G>(self, init: Acc, g: G) -> Acc
870 | | where
871 | | G: FnMut(Acc, Self::Item) -> Acc,
872 | | {
873 | | self.iter.fold(init, map_fold(self.f, g))
874 | | }
| |_____^
|
= note: consider adding a `#![type_length_limit="153752515"]` attribute to your crate
Error for front_end
after updating the suggested attribute for front_end
:
error: reached the type-length limit while instantiating `<std::vec::IntoIter<home_page::H...14 self:&&home_page::HomePage]]>`
--> /home/robin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/iter/traits/iterator.rs:2015:5
|
2015 | / fn fold<B, F>(mut self, init: B, mut f: F) -> B
2016 | | where
2017 | | Self: Sized,
2018 | | F: FnMut(B, Self::Item) -> B,
... |
2024 | | accum
2025 | | }
| |_____^
|
= note: consider adding a `#![type_length_limit="302545283"]` attribute to your crate
That鈥檚 where I gave up.
$ git describe --always
4ab52f3
$ rustc --version
rustc 1.46.0 (04488afe3 2020-08-24)