[INFO] fetching crate xu 0.2.3... [INFO] testing xu-0.2.3 against master#ff2c56344c764af598ad33027e9c7a48881808ef for pr-118825 [INFO] extracting crate xu 0.2.3 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate xu 0.2.3 on toolchain ff2c56344c764af598ad33027e9c7a48881808ef [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate xu 0.2.3 [INFO] finished tweaking crates.io crate xu 0.2.3 [INFO] tweaked toml for crates.io crate xu 0.2.3 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate crates.io crate xu 0.2.3 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.89 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 923f8893e87f4e93475c3af35340b15660fa52051add38dadf1b3b33f31e6de3 [INFO] running `Command { std: "docker" "start" "-a" "923f8893e87f4e93475c3af35340b15660fa52051add38dadf1b3b33f31e6de3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "923f8893e87f4e93475c3af35340b15660fa52051add38dadf1b3b33f31e6de3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "923f8893e87f4e93475c3af35340b15660fa52051add38dadf1b3b33f31e6de3", kill_on_drop: false }` [INFO] [stdout] 923f8893e87f4e93475c3af35340b15660fa52051add38dadf1b3b33f31e6de3 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 98b11b3d3cf123bd52a29eba1e919d7e45d547f395acf601e84d9bb76c04a8ae [INFO] running `Command { std: "docker" "start" "-a" "98b11b3d3cf123bd52a29eba1e919d7e45d547f395acf601e84d9bb76c04a8ae", kill_on_drop: false }` [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling libc v0.2.89 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling xu v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:152:26 [INFO] [stdout] | [INFO] [stdout] 152 | score_provider: &mut ScoreProvider [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 152 | score_provider: &mut dyn ScoreProvider [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:174:26 [INFO] [stdout] | [INFO] [stdout] 174 | score_provider: &mut ScoreProvider [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 174 | score_provider: &mut dyn ScoreProvider [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:230:26 [INFO] [stdout] | [INFO] [stdout] 230 | score_provider: &mut ScoreProvider, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 230 | score_provider: &mut dyn ScoreProvider, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:138:88 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn run (&self, population: Population, data: &Data, score_provider: &mut ScoreProvider) -> Population [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | pub fn run (&self, population: Population, data: &Data, score_provider: &mut dyn ScoreProvider) -> Population [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/operations.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | for (_, mut agent) in agents { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.54s [INFO] running `Command { std: "docker" "inspect" "98b11b3d3cf123bd52a29eba1e919d7e45d547f395acf601e84d9bb76c04a8ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98b11b3d3cf123bd52a29eba1e919d7e45d547f395acf601e84d9bb76c04a8ae", kill_on_drop: false }` [INFO] [stdout] 98b11b3d3cf123bd52a29eba1e919d7e45d547f395acf601e84d9bb76c04a8ae [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0715867aeddf35db2aeffcad5b4ec26ed6b7c2d998bde0e8f0dbea2ecfd1404d [INFO] running `Command { std: "docker" "start" "-a" "0715867aeddf35db2aeffcad5b4ec26ed6b7c2d998bde0e8f0dbea2ecfd1404d", kill_on_drop: false }` [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:152:26 [INFO] [stdout] | [INFO] [stdout] 152 | score_provider: &mut ScoreProvider [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 152 | score_provider: &mut dyn ScoreProvider [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:174:26 [INFO] [stdout] | [INFO] [stdout] 174 | score_provider: &mut ScoreProvider [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 174 | score_provider: &mut dyn ScoreProvider [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:230:26 [INFO] [stdout] | [INFO] [stdout] 230 | score_provider: &mut ScoreProvider, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 230 | score_provider: &mut dyn ScoreProvider, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:138:88 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn run (&self, population: Population, data: &Data, score_provider: &mut ScoreProvider) -> Population [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | pub fn run (&self, population: Population, data: &Data, score_provider: &mut dyn ScoreProvider) -> Population [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling xu v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/operations.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | for (_, mut agent) in agents { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:152:26 [INFO] [stdout] | [INFO] [stdout] 152 | score_provider: &mut ScoreProvider [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 152 | score_provider: &mut dyn ScoreProvider [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:174:26 [INFO] [stdout] | [INFO] [stdout] 174 | score_provider: &mut ScoreProvider [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 174 | score_provider: &mut dyn ScoreProvider [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:230:26 [INFO] [stdout] | [INFO] [stdout] 230 | score_provider: &mut ScoreProvider, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 230 | score_provider: &mut dyn ScoreProvider, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations.rs:138:88 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn run (&self, population: Population, data: &Data, score_provider: &mut ScoreProvider) -> Population [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | pub fn run (&self, population: Population, data: &Data, score_provider: &mut dyn ScoreProvider) -> Population [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/operations.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | for (_, mut agent) in agents { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.02s [INFO] running `Command { std: "docker" "inspect" "0715867aeddf35db2aeffcad5b4ec26ed6b7c2d998bde0e8f0dbea2ecfd1404d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0715867aeddf35db2aeffcad5b4ec26ed6b7c2d998bde0e8f0dbea2ecfd1404d", kill_on_drop: false }` [INFO] [stdout] 0715867aeddf35db2aeffcad5b4ec26ed6b7c2d998bde0e8f0dbea2ecfd1404d [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a43fa023457b8212f621a24949414fcc80a21021cfba02920f14edb42b80dc61 [INFO] running `Command { std: "docker" "start" "-a" "a43fa023457b8212f621a24949414fcc80a21021cfba02920f14edb42b80dc61", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/operations.rs:152:26 [INFO] [stderr] | [INFO] [stderr] 152 | score_provider: &mut ScoreProvider [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 152 | score_provider: &mut dyn ScoreProvider [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/operations.rs:174:26 [INFO] [stderr] | [INFO] [stderr] 174 | score_provider: &mut ScoreProvider [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 174 | score_provider: &mut dyn ScoreProvider [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/operations.rs:230:26 [INFO] [stderr] | [INFO] [stderr] 230 | score_provider: &mut ScoreProvider, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 230 | score_provider: &mut dyn ScoreProvider, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/operations.rs:138:88 [INFO] [stderr] | [INFO] [stderr] 138 | pub fn run (&self, population: Population, data: &Data, score_provider: &mut ScoreProvider) -> Population [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 138 | pub fn run (&self, population: Population, data: &Data, score_provider: &mut dyn ScoreProvider) -> Population [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/operations.rs:219:13 [INFO] [stderr] | [INFO] [stderr] 219 | for (_, mut agent) in agents { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `xu` (lib) generated 5 warnings (run `cargo fix --lib -p xu` to apply 5 suggestions) [INFO] [stderr] warning: `xu` (lib test) generated 5 warnings (5 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/xu-011f17d5c9f69c33) [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test agent::tests::crossover_some_genes_longer_other ... ok [INFO] [stdout] test agent::tests::new_no_genes ... ok [INFO] [stdout] test agent::tests::crossover_parents ... ok [INFO] [stdout] test operations::tests::rate_to_number_full_proportion ... ok [INFO] [stdout] test agent::tests::mutate ... ok [INFO] [stdout] test operations::tests::rate_to_number_minimum_preference_greater_than_population ... ok [INFO] [stdout] test operations::tests::rate_to_number_population_is_zero ... ok [INFO] [stdout] test operations::tests::rate_to_number_minimum_preference_less_than_proportion ... ok [INFO] [stdout] test operations::tests::rate_to_number_standard_proportion ... ok [INFO] [stdout] test operations::tests::selection_highest_score_returns_highest ... ok [INFO] [stdout] test operations::tests::selection_lowest_score_returns_lowest ... ok [INFO] [stdout] test agent::tests::crossover_some_genes_shorter_other ... ok [INFO] [stdout] test operations::tests::rate_to_number_minimum_preference_greater_than_proportion ... ok [INFO] [stdout] test operations::tests::rate_to_number_rounds_down ... ok [INFO] [stdout] test evolution::tests::run_iterations_nothing_to_do ... ok [INFO] [stdout] test agent::tests::crossover_some_genes_same_length_other ... ok [INFO] [stdout] test agent::tests::new_with_genes ... ok [INFO] [stdout] test population::tests::new_with_false_unique ... ok [INFO] [stdout] test population::tests::new_empty ... ok [INFO] [stdout] test population::tests::new_with_true_unique ... ok [INFO] [stdout] test population::tests::cull_all_below ... ok [INFO] [stdout] test operations::tests::selection_random_any_returns_correct_proportion ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- operations::tests::selection_random_any_returns_correct_proportion stdout ---- [INFO] [stdout] thread 'operations::tests::selection_random_any_returns_correct_proportion' panicked at src/operations.rs:391:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: 2 [INFO] [stdout] right: 1 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55a1e34b158c - std::backtrace_rs::backtrace::libunwind::trace::h03859d238dbdd93c [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 [INFO] [stdout] 1: 0x55a1e34b158c - std::backtrace_rs::backtrace::trace_unsynchronized::h2e251246e2581a42 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55a1e34b158c - std::sys_common::backtrace::_print_fmt::h5baa2f175792666a [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stdout] 3: 0x55a1e34b158c - ::fmt::h00d759009813d8ca [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] 4: 0x55a1e34db1c0 - core::fmt::rt::Argument::fmt::hcd158635f297e549 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/core/src/fmt/rt.rs:142:9 [INFO] [stdout] 5: 0x55a1e34db1c0 - core::fmt::write::h9c5087e04fe38018 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/core/src/fmt/mod.rs:1120:17 [INFO] [stdout] 6: 0x55a1e34aefcf - std::io::Write::write_fmt::h34541c3dfc0362f2 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/io/mod.rs:1810:15 [INFO] [stdout] 7: 0x55a1e34b1374 - std::sys_common::backtrace::_print::h25969b404f42f4bb [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] 8: 0x55a1e34b1374 - std::sys_common::backtrace::print::h68d3414e8c63fb83 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] 9: 0x55a1e34b30a7 - std::panicking::default_hook::{{closure}}::hccfef51edabebb9a [INFO] [stdout] 10: 0x55a1e34b2d93 - std::panicking::default_hook::hdec7a4759fa427e8 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/panicking.rs:289:9 [INFO] [stdout] 11: 0x55a1e345ae17 - as core::ops::function::Fn>::call::h6770dc7dbbc843da [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/alloc/src/boxed.rs:2029:9 [INFO] [stdout] 12: 0x55a1e345ae17 - test::test_main::{{closure}}::h037f0e9a244755ad [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/test/src/lib.rs:138:21 [INFO] [stdout] 13: 0x55a1e34b36b8 - as core::ops::function::Fn>::call::h284e61fdb096ca02 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/alloc/src/boxed.rs:2029:9 [INFO] [stdout] 14: 0x55a1e34b36b8 - std::panicking::rust_panic_with_hook::h9d502a4da1912fba [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/panicking.rs:783:13 [INFO] [stdout] 15: 0x55a1e34b340e - std::panicking::begin_panic_handler::{{closure}}::h3a68181f2e6a785b [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/panicking.rs:657:13 [INFO] [stdout] 16: 0x55a1e34b1a56 - std::sys_common::backtrace::__rust_end_short_backtrace::hc1d088e8c1328911 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/sys_common/backtrace.rs:171:18 [INFO] [stdout] 17: 0x55a1e34b3172 - rust_begin_unwind [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/panicking.rs:645:5 [INFO] [stdout] 18: 0x55a1e33e8d85 - core::panicking::panic_fmt::h15511a438b78bb2f [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/core/src/panicking.rs:72:14 [INFO] [stdout] 19: 0x55a1e33e90cb - core::panicking::assert_failed_inner::hc4a5497346231c8a [INFO] [stdout] 20: 0x55a1e348210e - core::panicking::assert_failed::h27fda33ed904b8e8 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/core/src/panicking.rs:297:5 [INFO] [stdout] 21: 0x55a1e341b559 - xu::operations::tests::selection_random_any_returns_correct_proportion::h4e3b7b55e6d620ce [INFO] [stdout] at /opt/rustwide/workdir/src/operations.rs:391:9 [INFO] [stdout] 22: 0x55a1e341b387 - xu::operations::tests::selection_random_any_returns_correct_proportion::{{closure}}::h084b2a85b034530d [INFO] [stdout] at /opt/rustwide/workdir/src/operations.rs:385:57 [INFO] [stdout] 23: 0x55a1e341ce06 - core::ops::function::FnOnce::call_once::h883d334300b6ffe4 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x55a1e346050f - core::ops::function::FnOnce::call_once::h0dce7fb8ca7c533f [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x55a1e346050f - test::__rust_begin_short_backtrace::h75b023f3061039b8 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/test/src/lib.rs:627:18 [INFO] [stdout] 26: 0x55a1e345f485 - test::run_test_in_process::{{closure}}::hb995e3036449b1d2 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/test/src/lib.rs:650:60 [INFO] [stdout] 27: 0x55a1e345f485 - as core::ops::function::FnOnce<()>>::call_once::h63d3d9d9e7447cac [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x55a1e345f485 - std::panicking::try::do_call::hf358e48b8451abe8 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/panicking.rs:552:40 [INFO] [stdout] 29: 0x55a1e345f485 - std::panicking::try::hdfb727124dd74530 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/panicking.rs:516:19 [INFO] [stdout] 30: 0x55a1e345f485 - std::panic::catch_unwind::h384458a7c85f353a [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/panic.rs:142:14 [INFO] [stdout] 31: 0x55a1e345f485 - test::run_test_in_process::h2b217e4014561d06 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/test/src/lib.rs:650:27 [INFO] [stdout] 32: 0x55a1e345f485 - test::run_test::{{closure}}::h2b7f88f2ebf46b48 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/test/src/lib.rs:573:43 [INFO] [stdout] 33: 0x55a1e34276c6 - test::run_test::{{closure}}::h320ebf4a972a385e [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/test/src/lib.rs:601:41 [INFO] [stdout] 34: 0x55a1e34276c6 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3ed64afcc71df931 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/sys_common/backtrace.rs:155:18 [INFO] [stdout] 35: 0x55a1e342c8a7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hb4c68cb7b0f88b9d [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/thread/mod.rs:529:17 [INFO] [stdout] 36: 0x55a1e342c8a7 - as core::ops::function::FnOnce<()>>::call_once::h2a26cae7fae50093 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x55a1e342c8a7 - std::panicking::try::do_call::h24f674b7fb619491 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/panicking.rs:552:40 [INFO] [stdout] 38: 0x55a1e342c8a7 - std::panicking::try::h7f5877eebc0c4325 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/panicking.rs:516:19 [INFO] [stdout] 39: 0x55a1e342c8a7 - std::panic::catch_unwind::h91815042a13af893 [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/panic.rs:142:14 [INFO] [stdout] 40: 0x55a1e342c8a7 - std::thread::Builder::spawn_unchecked_::{{closure}}::h5f5155c83af4a50e [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/thread/mod.rs:528:30 [INFO] [stdout] 41: 0x55a1e342c8a7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h5d62a6061c9ba69b [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x55a1e34b8125 - as core::ops::function::FnOnce>::call_once::h861fc3b698de2ffb [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/alloc/src/boxed.rs:2015:9 [INFO] [stdout] 43: 0x55a1e34b8125 - as core::ops::function::FnOnce>::call_once::hc66d40344bf1789e [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/alloc/src/boxed.rs:2015:9 [INFO] [stdout] 44: 0x55a1e34b8125 - std::sys::unix::thread::Thread::new::thread_start::h425b008cdc0113be [INFO] [stdout] at /rustc/ff2c56344c764af598ad33027e9c7a48881808ef/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 45: 0x7f65645feac3 - [INFO] [stdout] 46: 0x7f656468fbf4 - __clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] operations::tests::selection_random_any_returns_correct_proportion [INFO] [stdout] [INFO] [stdout] test result: FAILED. 21 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "a43fa023457b8212f621a24949414fcc80a21021cfba02920f14edb42b80dc61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a43fa023457b8212f621a24949414fcc80a21021cfba02920f14edb42b80dc61", kill_on_drop: false }` [INFO] [stdout] a43fa023457b8212f621a24949414fcc80a21021cfba02920f14edb42b80dc61