Code
https://github.com/kpp/futures-async-combinators/blob/master/examples/stream.rs
use futures::executor;
use futures_async_combinators::stream::*;
fn main() {
let stream = iter(1..=3);
let stream = map(stream, |x| x + 1);
let stream = map(stream, |x| x * 2);
let collect_future = collect(stream);
let collection: Vec<_> = executor::block_on(collect_future);
assert_eq!(vec![4, 6, 8], collection);
}
On master (commit 4f0ca7b4afec)
Error
error: reached the type-length limit while instantiating `std::thread::LocalKey::<std::syn...e, ()}]>>]], std::vec::Vec<i32>>`
|
= note: consider adding a `#![type_length_limit="1085948"]` attribute to your crate
error: aborting due to previous error
error: Could not compile `futures-async-combinators`.
warning: build failed, waiting for other jobs to finish...
error: build failed
Fails with
$ rustc -vV
rustc 1.39.0-nightly (34e82a7b7 2019-09-10)
binary: rustc
commit-hash: 34e82a7b793a6cdd27df762bf46bab8cdc92b14a
commit-date: 2019-09-10
host: x86_64-unknown-linux-gnu
release: 1.39.0-nightly
LLVM version: 9.0
And later (2019-09-10, 2019-09-12, 2019-09-13, 2019-09-14)
Works with
$ rustc -vV
rustc 1.39.0-nightly (0b36e9dea 2019-09-09)
binary: rustc
commit-hash: 0b36e9dea3f2ff25b1d0df2669836c33cce89ae5
commit-date: 2019-09-09
host: x86_64-unknown-linux-gnu
release: 1.39.0-nightly
LLVM version: 9.0
How to reproduce
cargo build --example stream
Code
https://github.com/kpp/futures-async-combinators/blob/master/examples/stream.rs
On master (commit 4f0ca7b4afec)
Error
Fails with
And later (2019-09-10, 2019-09-12, 2019-09-13, 2019-09-14)
Works with
How to reproduce