[INFO] fetching crate mapreduce 0.1.0... [INFO] checking mapreduce-0.1.0 against c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4 for pr-161358 [INFO] extracting crate mapreduce 0.1.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate mapreduce 0.1.0 [INFO] finished tweaking crates.io crate mapreduce 0.1.0 [INFO] tweaked toml for crates.io crate mapreduce 0.1.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate mapreduce 0.1.0 on toolchain c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4" "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" "+c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] dd03ac8a7584dc45c7b48b5b0f5122ce3884f1ef1028aad411580289f3d1dd80 [INFO] running `Command { std: "docker" "start" "dd03ac8a7584dc45c7b48b5b0f5122ce3884f1ef1028aad411580289f3d1dd80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd03ac8a7584dc45c7b48b5b0f5122ce3884f1ef1028aad411580289f3d1dd80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "dd03ac8a7584dc45c7b48b5b0f5122ce3884f1ef1028aad411580289f3d1dd80" "/opt/rustwide/cargo-home/bin/cargo" "+c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd03ac8a7584dc45c7b48b5b0f5122ce3884f1ef1028aad411580289f3d1dd80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "dd03ac8a7584dc45c7b48b5b0f5122ce3884f1ef1028aad411580289f3d1dd80" "/opt/rustwide/cargo-home/bin/cargo" "+c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking mapreduce v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapreduce.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | pub type MapFunc = fn(item: T, writer: Writer); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub type MapFunc = fn(item: T, writer: dyn Writer); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Writer` is not dyn compatible [INFO] [stdout] --> src/mapreduce.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub type MapFunc = fn(item: T, writer: Writer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `Writer` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/mapreduce.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Writer { [INFO] [stdout] | ------ this trait is not dyn compatible... [INFO] [stdout] 19 | fn write(&self, v: T); [INFO] [stdout] | ^^^^^ ...because method `write` has generic type parameters [INFO] [stdout] = help: consider moving `write` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapreduce.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | pub type MapperFunc = fn(item: T, writer: Writer, cancel: fn(Error)); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub type MapperFunc = fn(item: T, writer: dyn Writer, cancel: fn(Error)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Writer` is not dyn compatible [INFO] [stdout] --> src/mapreduce.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub type MapperFunc = fn(item: T, writer: Writer, cancel: fn(Error)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `Writer` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/mapreduce.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Writer { [INFO] [stdout] | ------ this trait is not dyn compatible... [INFO] [stdout] 19 | fn write(&self, v: T); [INFO] [stdout] | ^^^^^ ...because method `write` has generic type parameters [INFO] [stdout] = help: consider moving `write` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapreduce.rs:14:55 [INFO] [stdout] | [INFO] [stdout] 14 | pub type ReducerFunc = fn(pipe: Sender, writer: Writer, cancel: fn(Error)); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | pub type ReducerFunc = fn(pipe: Sender, writer: dyn Writer, cancel: fn(Error)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Writer` is not dyn compatible [INFO] [stdout] --> src/mapreduce.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub type ReducerFunc = fn(pipe: Sender, writer: Writer, cancel: fn(Error)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `Writer` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/mapreduce.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Writer { [INFO] [stdout] | ------ this trait is not dyn compatible... [INFO] [stdout] 19 | fn write(&self, v: T); [INFO] [stdout] | ^^^^^ ...because method `write` has generic type parameters [INFO] [stdout] = help: consider moving `write` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/mapreduce.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | fn drain(ch:Receiver){ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mapreduce` (lib) due to 3 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapreduce.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | pub type MapFunc = fn(item: T, writer: Writer); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub type MapFunc = fn(item: T, writer: dyn Writer); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Writer` is not dyn compatible [INFO] [stdout] --> src/mapreduce.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub type MapFunc = fn(item: T, writer: Writer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `Writer` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/mapreduce.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Writer { [INFO] [stdout] | ------ this trait is not dyn compatible... [INFO] [stdout] 19 | fn write(&self, v: T); [INFO] [stdout] | ^^^^^ ...because method `write` has generic type parameters [INFO] [stdout] = help: consider moving `write` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapreduce.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | pub type MapperFunc = fn(item: T, writer: Writer, cancel: fn(Error)); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub type MapperFunc = fn(item: T, writer: dyn Writer, cancel: fn(Error)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Writer` is not dyn compatible [INFO] [stdout] --> src/mapreduce.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub type MapperFunc = fn(item: T, writer: Writer, cancel: fn(Error)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `Writer` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/mapreduce.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Writer { [INFO] [stdout] | ------ this trait is not dyn compatible... [INFO] [stdout] 19 | fn write(&self, v: T); [INFO] [stdout] | ^^^^^ ...because method `write` has generic type parameters [INFO] [stdout] = help: consider moving `write` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapreduce.rs:14:55 [INFO] [stdout] | [INFO] [stdout] 14 | pub type ReducerFunc = fn(pipe: Sender, writer: Writer, cancel: fn(Error)); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | pub type ReducerFunc = fn(pipe: Sender, writer: dyn Writer, cancel: fn(Error)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Writer` is not dyn compatible [INFO] [stdout] --> src/mapreduce.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub type ReducerFunc = fn(pipe: Sender, writer: Writer, cancel: fn(Error)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `Writer` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/mapreduce.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait Writer { [INFO] [stdout] | ------ this trait is not dyn compatible... [INFO] [stdout] 19 | fn write(&self, v: T); [INFO] [stdout] | ^^^^^ ...because method `write` has generic type parameters [INFO] [stdout] = help: consider moving `write` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/mapreduce.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | fn drain(ch:Receiver){ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mapreduce` (lib test) due to 3 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "dd03ac8a7584dc45c7b48b5b0f5122ce3884f1ef1028aad411580289f3d1dd80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd03ac8a7584dc45c7b48b5b0f5122ce3884f1ef1028aad411580289f3d1dd80", kill_on_drop: false }` [INFO] [stdout] dd03ac8a7584dc45c7b48b5b0f5122ce3884f1ef1028aad411580289f3d1dd80