Closed
Description
Build Error
on Sentry, Rust 1.46:
elpiel@kracho:~/PROJECTS/AdEx/rust-adex-validator-stack$ cargo build -p sentry
Compiling primitives v0.1.0 (/home/elpiel/PROJECTS/AdEx/rust-adex-validator-stack/primitives)
Compiling adapter v0.1.0 (/home/elpiel/PROJECTS/AdEx/rust-adex-validator-stack/adapter)
Compiling sentry v0.1.0 (/home/elpiel/PROJECTS/AdEx/rust-adex-validator-stack/sentry)
error: reached the type-length limit while instantiating `std::future::from_generator::<[s...pter::DummyAdapter>]>>, ()}]>}]>`
--> /home/elpiel/.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="1269353"]` attribute to your crate
error: aborting due to previous error
error: could not compile `sentry`.
To learn more, run the command again with --verbose.
✔️ Revert it Rust 1.45
For now the solution is to revert Rust version to 1.45.2
and upgrade later
- PR Hotfix for issue #330 - Revert Rust to 1.45.2 #331 -
rust-toolchain
locked to 1.45.2
TODO: Update to 1.48 when released and see this issue is fixed
Related merged PR: rust-lang/rust#78410