[INFO] fetching crate shard-csv 0.1.0...
[INFO] testing shard-csv-0.1.0 against master#1ef7943ee607160a564655b6596f83670ef95df5 for pr-146098-6
[INFO] extracting crate shard-csv 0.1.0 into /workspace/builds/worker-1-tc1/source
[INFO] started tweaking crates.io crate shard-csv 0.1.0
[INFO] finished tweaking crates.io crate shard-csv 0.1.0
[INFO] tweaked toml for crates.io crate shard-csv 0.1.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate shard-csv 0.1.0 on toolchain 1ef7943ee607160a564655b6596f83670ef95df5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 11 packages to latest compatible versions
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a06d5980792563819ec1b0b18a01305fe8ad9c1d2f2e3e7cf8b633daecf5f0c3
[INFO] running `Command { std: "docker" "start" "-a" "a06d5980792563819ec1b0b18a01305fe8ad9c1d2f2e3e7cf8b633daecf5f0c3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a06d5980792563819ec1b0b18a01305fe8ad9c1d2f2e3e7cf8b633daecf5f0c3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a06d5980792563819ec1b0b18a01305fe8ad9c1d2f2e3e7cf8b633daecf5f0c3", kill_on_drop: false }`
[INFO] [stdout] a06d5980792563819ec1b0b18a01305fe8ad9c1d2f2e3e7cf8b633daecf5f0c3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1350aeb75762eee6da3b5391a4bdb41536bd167daadf2fb9c181d2d302756b09
[INFO] running `Command { std: "docker" "start" "-a" "1350aeb75762eee6da3b5391a4bdb41536bd167daadf2fb9c181d2d302756b09", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling memchr v2.7.6
[INFO] [stderr]    Compiling csv-core v0.1.13
[INFO] [stderr]    Compiling csv v1.4.0
[INFO] [stderr]    Compiling shard-csv v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.00s
[INFO] running `Command { std: "docker" "inspect" "1350aeb75762eee6da3b5391a4bdb41536bd167daadf2fb9c181d2d302756b09", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1350aeb75762eee6da3b5391a4bdb41536bd167daadf2fb9c181d2d302756b09", kill_on_drop: false }`
[INFO] [stdout] 1350aeb75762eee6da3b5391a4bdb41536bd167daadf2fb9c181d2d302756b09
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d512f70bbf5fcd1b9a2826dc039956fc3ba48e35e938e5a64ea5f9669f30d61d
[INFO] running `Command { std: "docker" "start" "-a" "d512f70bbf5fcd1b9a2826dc039956fc3ba48e35e938e5a64ea5f9669f30d61d", kill_on_drop: false }`
[INFO] [stderr]    Compiling shard-csv v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.34s
[INFO] running `Command { std: "docker" "inspect" "d512f70bbf5fcd1b9a2826dc039956fc3ba48e35e938e5a64ea5f9669f30d61d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d512f70bbf5fcd1b9a2826dc039956fc3ba48e35e938e5a64ea5f9669f30d61d", kill_on_drop: false }`
[INFO] [stdout] d512f70bbf5fcd1b9a2826dc039956fc3ba48e35e938e5a64ea5f9669f30d61d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 0155abcd4ba012bc8a3aa609daa216aebd0164928c35952c9b8134c8a3d307df
[INFO] running `Command { std: "docker" "start" "-a" "0155abcd4ba012bc8a3aa609daa216aebd0164928c35952c9b8134c8a3d307df", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/shard_csv-d83dc8351b6e90a8)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests shard_csv
[INFO] [stdout] 
[INFO] [stdout] running 11 tests
[INFO] [stdout] test src/lib.rs - (line 46) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 56) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 71) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 27) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 81) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 90) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 110) ... FAILED
[INFO] [stdout] test src/sharded_writer.rs - sharded_writer::ShardedWriter<FKey,FNameFile>::on_create_file (line 187) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 100) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 16) ... FAILED
[INFO] [stdout] test src/sharded_writer.rs - sharded_writer::ShardedWriter<FKey,FNameFile>::with_output_splitting (line 153) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 46) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShardedWriterBuilder`
[INFO] [stdout]  --> src/lib.rs:47:24
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut shard_writer = ShardedWriterBuilder::new_from_csv_reader(&mut csv_reader)
[INFO] [stdout]   |                        ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ShardedWriterBuilder`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use shard_csv::ShardedWriterBuilder;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `csv_reader` in this scope
[INFO] [stdout]  --> src/lib.rs:47:71
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut shard_writer = ShardedWriterBuilder::new_from_csv_reader(&mut csv_reader)
[INFO] [stdout]   |                                                                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 56) stdout ----
[INFO] [stdout] error: expected item, found keyword `let`
[INFO] [stdout]  --> src/lib.rs:57:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | let mut shard_writer = ShardedWriterBuilder::new_from_csv_reader(&mut csv_reader)
[INFO] [stdout]   | ^^^ `let` cannot be used for global variables
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider using `static` and a `Mutex` instead of `let mut`
[INFO] [stdout]   = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 71) stdout ----
[INFO] [stdout] error: expected item, found keyword `let`
[INFO] [stdout]  --> src/lib.rs:72:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | let mut shard_writer = ShardedWriterBuilder::new_from_csv_reader(&mut csv_reader)
[INFO] [stdout]   | ^^^ `let` cannot be used for global variables
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider using `static` and a `Mutex` instead of `let mut`
[INFO] [stdout]   = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 27) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StringRecord`
[INFO] [stdout]  --> src/lib.rs:32:30
[INFO] [stdout]   |
[INFO] [stdout] 7 | let it = data.iter().map(|r| StringRecord::from(&r[..]));
[INFO] [stdout]   |                              ^^^^^^^^^^^^ use of undeclared type `StringRecord`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use csv::StringRecord;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `shard_writer` in this scope
[INFO] [stdout]  --> src/lib.rs:33:1
[INFO] [stdout]   |
[INFO] [stdout] 8 | shard_writer.process_iter(it).ok();
[INFO] [stdout]   | ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 81) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `shard_writer` in this scope
[INFO] [stdout]  --> src/lib.rs:82:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | shard_writer.process_csv(&mut csv_reader).ok();
[INFO] [stdout]   | ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `csv_reader` in this scope
[INFO] [stdout]  --> src/lib.rs:82:31
[INFO] [stdout]   |
[INFO] [stdout] 3 | shard_writer.process_csv(&mut csv_reader).ok();
[INFO] [stdout]   |                               ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 90) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `shard_writer` in this scope
[INFO] [stdout]  --> src/lib.rs:91:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | shard_writer = shard_writer.with_output_splitting(FileSplitting::SplitAfterRows(100));
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: you might have meant to introduce a new binding
[INFO] [stdout]   |
[INFO] [stdout] 3 | let shard_writer = shard_writer.with_output_splitting(FileSplitting::SplitAfterRows(100));
[INFO] [stdout]   | +++
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `shard_writer` in this scope
[INFO] [stdout]  --> src/lib.rs:91:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | shard_writer = shard_writer.with_output_splitting(FileSplitting::SplitAfterRows(100));
[INFO] [stdout]   |                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileSplitting`
[INFO] [stdout]  --> src/lib.rs:91:51
[INFO] [stdout]   |
[INFO] [stdout] 3 | shard_writer = shard_writer.with_output_splitting(FileSplitting::SplitAfterRows(100));
[INFO] [stdout]   |                                                   ^^^^^^^^^^^^^ use of undeclared type `FileSplitting`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use shard_csv::FileSplitting;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 110) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `flate2`
[INFO] [stdout]  --> src/lib.rs:113:14
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let gz = flate2::write::GzEncoder::new(f, flate2::Compression::fast());
[INFO] [stdout]   |              ^^^^^^ use of unresolved module or unlinked crate `flate2`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `flate2`, use `cargo add flate2` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `flate2`
[INFO] [stdout]  --> src/lib.rs:113:47
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let gz = flate2::write::GzEncoder::new(f, flate2::Compression::fast());
[INFO] [stdout]   |                                               ^^^^^^ use of unresolved module or unlinked crate `flate2`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `flate2`, use `cargo add flate2` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `shard_writer` in this scope
[INFO] [stdout]  --> src/lib.rs:111:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | shard_writer = shard_writer.on_create_file(|path| {
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: you might have meant to introduce a new binding
[INFO] [stdout]   |
[INFO] [stdout] 3 | let shard_writer = shard_writer.on_create_file(|path| {
[INFO] [stdout]   | +++
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `shard_writer` in this scope
[INFO] [stdout]  --> src/lib.rs:111:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | shard_writer = shard_writer.on_create_file(|path| {
[INFO] [stdout]   |                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufWriter`
[INFO] [stdout]  --> src/lib.rs:114:15
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let buf = BufWriter::new(gz);
[INFO] [stdout]   |               ^^^^^^^^^ use of undeclared type `BufWriter`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::io::BufWriter;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/sharded_writer.rs - sharded_writer::ShardedWriter<FKey,FNameFile>::on_create_file (line 187) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `my_sharded_writer` in this scope
[INFO] [stdout]  --> src/sharded_writer.rs:188:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | my_sharded_writer.on_create_file(|path| Ok(BufWriter::new(File::create(path)?)));
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufWriter`
[INFO] [stdout]  --> src/sharded_writer.rs:188:44
[INFO] [stdout]   |
[INFO] [stdout] 3 | my_sharded_writer.on_create_file(|path| Ok(BufWriter::new(File::create(path)?)));
[INFO] [stdout]   |                                            ^^^^^^^^^ use of undeclared type `BufWriter`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::io::BufWriter;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File`
[INFO] [stdout]  --> src/sharded_writer.rs:188:59
[INFO] [stdout]   |
[INFO] [stdout] 3 | my_sharded_writer.on_create_file(|path| Ok(BufWriter::new(File::create(path)?)));
[INFO] [stdout]   |                                                           ^^^^ use of undeclared type `File`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::fs::File;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 100) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `shard_writer` in this scope
[INFO] [stdout]  --> src/lib.rs:101:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | shard_writer = shard_writer.on_file_completion(|path, key| {
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: you might have meant to introduce a new binding
[INFO] [stdout]   |
[INFO] [stdout] 3 | let shard_writer = shard_writer.on_file_completion(|path, key| {
[INFO] [stdout]   | +++
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `shard_writer` in this scope
[INFO] [stdout]  --> src/lib.rs:101:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | shard_writer = shard_writer.on_file_completion(|path, key| {
[INFO] [stdout]   |                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]  --> src/lib.rs:101:49
[INFO] [stdout]   |
[INFO] [stdout] 3 | shard_writer = shard_writer.on_file_completion(|path, key| {
[INFO] [stdout]   |                                                 ^^^^
[INFO] [stdout] 4 |     println!("Output file '{}' for key '{}' is complete", path.display(), key);
[INFO] [stdout]   |                                                           ---- type must be known at this point
[INFO] [stdout]   |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]   |
[INFO] [stdout] 3 | shard_writer = shard_writer.on_file_completion(|path: /* Type */, key| {
[INFO] [stdout]   |                                                     ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0425.
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 16) stdout ----
[INFO] [stdout] Test executable failed (exit status: 101).
[INFO] [stdout] 
[INFO] [stdout] stderr:
[INFO] [stdout] 
[INFO] [stdout] thread 'main' (89) panicked at src/lib.rs:9:5:
[INFO] [stdout] Failed to create reader from file: Error(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }))
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x64da186c0bd2 - std::backtrace_rs::backtrace::libunwind::trace::h786de35fecf3582f
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x64da186c0bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h4a7da1a2a64387f1
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x64da186c0bd2 - std::sys::backtrace::_print_fmt::h6bd7d500070c788c
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x64da186c0bd2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h6d82c1afff976903
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x64da186cf82f - core::fmt::rt::Argument::fmt::hc4ce6d643d397690
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/fmt/rt.rs:173:76
[INFO] [stdout]    5:     0x64da186cf82f - core::fmt::write::hb1e7ca88b6a3936e
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/fmt/mod.rs:1469:25
[INFO] [stdout]    6:     0x64da1869f783 - std::io::default_write_fmt::hd5a9ffaa98f14929
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/io/mod.rs:639:11
[INFO] [stdout]    7:     0x64da1869f783 - std::io::Write::write_fmt::hc04a1e5003ed78ae
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/io/mod.rs:1954:13
[INFO] [stdout]    8:     0x64da186a48b2 - std::sys::backtrace::BacktraceLock::print::ha2430613ee79d059
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    9:     0x64da186a60dc - std::panicking::default_hook::{{closure}}::hdbd2db9e5c303cf6
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/panicking.rs:301:27
[INFO] [stdout]   10:     0x64da186a5f36 - std::panicking::default_hook::hed93c70cba5fdcf0
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/panicking.rs:328:9
[INFO] [stdout]   11:     0x64da186a66b5 - std::panicking::panic_with_hook::h3862d766c2cec19b
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/panicking.rs:834:13
[INFO] [stdout]   12:     0x64da186a654a - std::panicking::panic_handler::{{closure}}::hb95eb402b5e28ee1
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/panicking.rs:707:13
[INFO] [stdout]   13:     0x64da186a49e9 - std::sys::backtrace::__rust_end_short_backtrace::hf73a26dc1835d85a
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/sys/backtrace.rs:174:18
[INFO] [stdout]   14:     0x64da1869411d - __rustc[6ed5915ee467787]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/panicking.rs:698:5
[INFO] [stdout]   15:     0x64da186d2da0 - core::panicking::panic_fmt::h3454303eb8e6f7cd
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/panicking.rs:80:14
[INFO] [stdout]   16:     0x64da186d2506 - core::result::unwrap_failed::h2380020e6daeb464
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/result.rs:1862:5
[INFO] [stdout]   17:     0x64da1868e3b9 - core::result::Result<T,E>::expect::h6be2c6a8bd8f7dc7
[INFO] [stdout]   18:     0x64da1868e96e - rust_out::main::_doctest_main_src_lib_rs_16_0::h3e8e61628eb8a0b5
[INFO] [stdout]   19:     0x64da1868e8a6 - rust_out::main::h4033cd6033bd24e0
[INFO] [stdout]   20:     0x64da1868e013 - core::ops::function::FnOnce::call_once::h41347ff1687e6b73
[INFO] [stdout]   21:     0x64da1868dfa6 - std::sys::backtrace::__rust_begin_short_backtrace::h3dc8794c0fbffb60
[INFO] [stdout]   22:     0x64da1868df89 - std::rt::lang_start::{{closure}}::h1efb547a500af631
[INFO] [stdout]   23:     0x64da186a0930 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h3e39d917a8cc5592
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/ops/function.rs:287:21
[INFO] [stdout]   24:     0x64da186a0930 - std::panicking::catch_unwind::do_call::hc1ce44ccb31bb18e
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/panicking.rs:590:40
[INFO] [stdout]   25:     0x64da186a0930 - std::panicking::catch_unwind::ha27d9fd2a77bbb18
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/panicking.rs:553:19
[INFO] [stdout]   26:     0x64da186a0930 - std::panic::catch_unwind::h0b0f1918d1e2eb85
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/panic.rs:359:14
[INFO] [stdout]   27:     0x64da186a0930 - std::rt::lang_start_internal::{{closure}}::heeac2294083edcfe
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/rt.rs:175:24
[INFO] [stdout]   28:     0x64da186a0930 - std::panicking::catch_unwind::do_call::h4bb7d51c3842c367
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/panicking.rs:590:40
[INFO] [stdout]   29:     0x64da186a0930 - std::panicking::catch_unwind::h1d2f2878ba2618c4
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/panicking.rs:553:19
[INFO] [stdout]   30:     0x64da186a0930 - std::panic::catch_unwind::h5070bdf026bf1f78
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/panic.rs:359:14
[INFO] [stdout]   31:     0x64da186a0930 - std::rt::lang_start_internal::h9590fa5449576090
[INFO] [stdout]                                at /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/std/src/rt.rs:171:5
[INFO] [stdout]   32:     0x64da1868df71 - std::rt::lang_start::hb5dea8481070e01f
[INFO] [stdout]   33:     0x64da1868e9e5 - main
[INFO] [stdout]   34:     0x75440cb7f1ca - <unknown>
[INFO] [stdout]   35:     0x75440cb7f28b - __libc_start_main
[INFO] [stdout]   36:     0x64da1868d8e5 - _start
[INFO] [stdout]   37:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] ---- src/sharded_writer.rs - sharded_writer::ShardedWriter<FKey,FNameFile>::with_output_splitting (line 153) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ShardedWriter`
[INFO] [stdout]  --> src/sharded_writer.rs:154:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | let writer = ShardedWriter::new(
[INFO] [stdout]   |              ^^^^^^^^^^^^^ use of undeclared type `ShardedWriter`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use shard_csv::ShardedWriter;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]  --> src/sharded_writer.rs:156:6
[INFO] [stdout]   |
[INFO] [stdout] 5 |     |record| record.get(7).unwrap_or("_unknown").to_string(),
[INFO] [stdout]   |      ^^^^^^  ------ type must be known at this point
[INFO] [stdout]   |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]   |
[INFO] [stdout] 5 |     |record: /* Type */| record.get(7).unwrap_or("_unknown").to_string(),
[INFO] [stdout]   |            ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 100)
[INFO] [stdout]     src/lib.rs - (line 110)
[INFO] [stdout]     src/lib.rs - (line 16)
[INFO] [stdout]     src/lib.rs - (line 27)
[INFO] [stdout]     src/lib.rs - (line 46)
[INFO] [stdout]     src/lib.rs - (line 56)
[INFO] [stdout]     src/lib.rs - (line 71)
[INFO] [stdout]     src/lib.rs - (line 81)
[INFO] [stdout]     src/lib.rs - (line 90)
[INFO] [stdout]     src/sharded_writer.rs - sharded_writer::ShardedWriter<FKey,FNameFile>::on_create_file (line 187)
[INFO] [stdout]     src/sharded_writer.rs - sharded_writer::ShardedWriter<FKey,FNameFile>::with_output_splitting (line 153)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 11 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.51s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "0155abcd4ba012bc8a3aa609daa216aebd0164928c35952c9b8134c8a3d307df", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0155abcd4ba012bc8a3aa609daa216aebd0164928c35952c9b8134c8a3d307df", kill_on_drop: false }`
[INFO] [stdout] 0155abcd4ba012bc8a3aa609daa216aebd0164928c35952c9b8134c8a3d307df
