[INFO] fetching crate rust-monster 0.1.0... [INFO] testing rust-monster-0.1.0 against 1.60.0 for beta-1.61-1 [INFO] extracting crate rust-monster 0.1.0 into /workspace/builds/worker-36/source [INFO] validating manifest of crates.io crate rust-monster 0.1.0 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rust-monster 0.1.0 [INFO] finished tweaking crates.io crate rust-monster 0.1.0 [INFO] tweaked toml for crates.io crate rust-monster 0.1.0 written to /workspace/builds/worker-36/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitflags v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f7aa7d013554b158e0dfa632200ca2453bddd9b375d50331b08b0675ac17141c [INFO] running `Command { std: "docker" "start" "-a" "f7aa7d013554b158e0dfa632200ca2453bddd9b375d50331b08b0675ac17141c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f7aa7d013554b158e0dfa632200ca2453bddd9b375d50331b08b0675ac17141c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7aa7d013554b158e0dfa632200ca2453bddd9b375d50331b08b0675ac17141c", kill_on_drop: false }` [INFO] [stdout] f7aa7d013554b158e0dfa632200ca2453bddd9b375d50331b08b0675ac17141c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3955c15f11bc19a406122ef28e829336c55e39d514c97e23b7a0bf532b0dc1f7 [INFO] running `Command { std: "docker" "start" "-a" "3955c15f11bc19a406122ef28e829336c55e39d514c97e23b7a0bf532b0dc1f7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling bitflags v0.5.0 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling rust-monster v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/ga/ga_core.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / /// Bit Flags for Genetic Algorithm Configuration [INFO] [stdout] 6 | | /// [INFO] [stdout] 7 | | /// [INFO] [stdout] | |_--^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ga/ga_core.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / bitflags! [INFO] [stdout] 9 | | { [INFO] [stdout] 10 | | pub flags GAFlags: u32 [INFO] [stdout] 11 | | { [INFO] [stdout] 12 | | const DEBUG_FLAG = 0b00000001 [INFO] [stdout] 13 | | } [INFO] [stdout] 14 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ga/ga_core.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / bitflags! [INFO] [stdout] 9 | | { [INFO] [stdout] 10 | | pub flags GAFlags: u32 [INFO] [stdout] 11 | | { [INFO] [stdout] 12 | | const DEBUG_FLAG = 0b00000001 [INFO] [stdout] 13 | | } [INFO] [stdout] 14 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:130:26 [INFO] [stdout] | [INFO] [stdout] 130 | score_selection: &'a GAScoreTypeBasedSelection [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] 130 - score_selection: &'a GAScoreTypeBasedSelection [INFO] [stdout] 130 + score_selection: &'a dyn GAScoreTypeBasedSelection [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:215:26 [INFO] [stdout] | [INFO] [stdout] 215 | score_selection: &'a GAScoreTypeBasedSelection, [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] 215 - score_selection: &'a GAScoreTypeBasedSelection, [INFO] [stdout] 215 + score_selection: &'a dyn GAScoreTypeBasedSelection, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:361:26 [INFO] [stdout] | [INFO] [stdout] 361 | score_selection: &'a GAScoreTypeBasedSelection, [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] 361 - score_selection: &'a GAScoreTypeBasedSelection, [INFO] [stdout] 361 + score_selection: &'a dyn GAScoreTypeBasedSelection, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_core.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | fn config(&mut self) -> &GAConfig; [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] 82 - fn config(&mut self) -> &GAConfig; [INFO] [stdout] 82 + fn config(&mut self) -> &dyn GAConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_simple.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | factory: Option<&mut GAFactory>, [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] 83 - factory: Option<&mut GAFactory>, [INFO] [stdout] 83 + factory: Option<&mut dyn GAFactory>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_simple.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | fn config(&mut self) -> &GAConfig [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] 113 - fn config(&mut self) -> &GAConfig [INFO] [stdout] 113 + fn config(&mut self) -> &dyn GAConfig [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:135:23 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn new(s: &'a GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [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] 135 - pub fn new(s: &'a GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [INFO] [stdout] 135 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:222:23 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [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] 222 - pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [INFO] [stdout] 222 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:367:23 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [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] 367 - pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [INFO] [stdout] 367 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `population` [INFO] [stdout] --> src/ga/ga_selectors.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | fn update(&mut self, population: &mut GAPopulation) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_population` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pMutation` should have a snake case name [INFO] [stdout] --> src/ga/ga_core.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | fn mutate(&mut self, pMutation : f32); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `p_mutation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.47s [INFO] running `Command { std: "docker" "inspect" "3955c15f11bc19a406122ef28e829336c55e39d514c97e23b7a0bf532b0dc1f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3955c15f11bc19a406122ef28e829336c55e39d514c97e23b7a0bf532b0dc1f7", kill_on_drop: false }` [INFO] [stdout] 3955c15f11bc19a406122ef28e829336c55e39d514c97e23b7a0bf532b0dc1f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa87c8aa71bd54ea30bfb11d84dec821b56938cf53c908283e98eb2baf8b8f90 [INFO] running `Command { std: "docker" "start" "-a" "aa87c8aa71bd54ea30bfb11d84dec821b56938cf53c908283e98eb2baf8b8f90", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/ga/ga_core.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / /// Bit Flags for Genetic Algorithm Configuration [INFO] [stdout] 6 | | /// [INFO] [stdout] 7 | | /// [INFO] [stdout] | |_--^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ga/ga_core.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / bitflags! [INFO] [stdout] 9 | | { [INFO] [stdout] 10 | | pub flags GAFlags: u32 [INFO] [stdout] 11 | | { [INFO] [stdout] 12 | | const DEBUG_FLAG = 0b00000001 [INFO] [stdout] 13 | | } [INFO] [stdout] 14 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ga/ga_core.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / bitflags! [INFO] [stdout] 9 | | { [INFO] [stdout] 10 | | pub flags GAFlags: u32 [INFO] [stdout] 11 | | { [INFO] [stdout] 12 | | const DEBUG_FLAG = 0b00000001 [INFO] [stdout] 13 | | } [INFO] [stdout] 14 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:130:26 [INFO] [stdout] | [INFO] [stdout] 130 | score_selection: &'a GAScoreTypeBasedSelection [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] 130 - score_selection: &'a GAScoreTypeBasedSelection [INFO] [stdout] 130 + score_selection: &'a dyn GAScoreTypeBasedSelection [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:215:26 [INFO] [stdout] | [INFO] [stdout] 215 | score_selection: &'a GAScoreTypeBasedSelection, [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] 215 - score_selection: &'a GAScoreTypeBasedSelection, [INFO] [stdout] 215 + score_selection: &'a dyn GAScoreTypeBasedSelection, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:361:26 [INFO] [stdout] | [INFO] [stdout] 361 | score_selection: &'a GAScoreTypeBasedSelection, [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] 361 - score_selection: &'a GAScoreTypeBasedSelection, [INFO] [stdout] 361 + score_selection: &'a dyn GAScoreTypeBasedSelection, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_core.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | fn config(&mut self) -> &GAConfig; [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] 82 - fn config(&mut self) -> &GAConfig; [INFO] [stdout] 82 + fn config(&mut self) -> &dyn GAConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_simple.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | factory: Option<&mut GAFactory>, [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] 83 - factory: Option<&mut GAFactory>, [INFO] [stdout] 83 + factory: Option<&mut dyn GAFactory>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_simple.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | fn config(&mut self) -> &GAConfig [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] 113 - fn config(&mut self) -> &GAConfig [INFO] [stdout] 113 + fn config(&mut self) -> &dyn GAConfig [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:135:23 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn new(s: &'a GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [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] 135 - pub fn new(s: &'a GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [INFO] [stdout] 135 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:222:23 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [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] 222 - pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [INFO] [stdout] 222 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:367:23 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [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] 367 - pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [INFO] [stdout] 367 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `population` [INFO] [stdout] --> src/ga/ga_selectors.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | fn update(&mut self, population: &mut GAPopulation) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_population` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pMutation` should have a snake case name [INFO] [stdout] --> src/ga/ga_core.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | fn mutate(&mut self, pMutation : f32); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `p_mutation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling env_logger v0.3.5 [INFO] [stderr] Compiling rust-monster v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> tests/lib.rs:38:36 [INFO] [stdout] | [INFO] [stdout] 38 | fn fitness(&self) -> f32 { (1.0 / self.fitness) } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - fn fitness(&self) -> f32 { (1.0 / self.fitness) } [INFO] [stdout] 38 + fn fitness(&self) -> f32 { 1.0 / self.fitness } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/ga/ga_core.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / /// Bit Flags for Genetic Algorithm Configuration [INFO] [stdout] 6 | | /// [INFO] [stdout] 7 | | /// [INFO] [stdout] | |_--^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ga/ga_core.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / bitflags! [INFO] [stdout] 9 | | { [INFO] [stdout] 10 | | pub flags GAFlags: u32 [INFO] [stdout] 11 | | { [INFO] [stdout] 12 | | const DEBUG_FLAG = 0b00000001 [INFO] [stdout] 13 | | } [INFO] [stdout] 14 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> tests/lib.rs:106:76 [INFO] [stdout] | [INFO] [stdout] 106 | ... Some(&mut factory as &mut GAFactory), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] 106 - Some(&mut factory as &mut GAFactory), [INFO] [stdout] 106 + Some(&mut factory as &mut dyn GAFactory), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ga/ga_core.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / bitflags! [INFO] [stdout] 9 | | { [INFO] [stdout] 10 | | pub flags GAFlags: u32 [INFO] [stdout] 11 | | { [INFO] [stdout] 12 | | const DEBUG_FLAG = 0b00000001 [INFO] [stdout] 13 | | } [INFO] [stdout] 14 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:130:26 [INFO] [stdout] | [INFO] [stdout] 130 | score_selection: &'a GAScoreTypeBasedSelection [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] 130 - score_selection: &'a GAScoreTypeBasedSelection [INFO] [stdout] 130 + score_selection: &'a dyn GAScoreTypeBasedSelection [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:215:26 [INFO] [stdout] | [INFO] [stdout] 215 | score_selection: &'a GAScoreTypeBasedSelection, [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] 215 - score_selection: &'a GAScoreTypeBasedSelection, [INFO] [stdout] 215 + score_selection: &'a dyn GAScoreTypeBasedSelection, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:361:26 [INFO] [stdout] | [INFO] [stdout] 361 | score_selection: &'a GAScoreTypeBasedSelection, [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] 361 - score_selection: &'a GAScoreTypeBasedSelection, [INFO] [stdout] 361 + score_selection: &'a dyn GAScoreTypeBasedSelection, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_core.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | fn config(&mut self) -> &GAConfig; [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] 82 - fn config(&mut self) -> &GAConfig; [INFO] [stdout] 82 + fn config(&mut self) -> &dyn GAConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_simple.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | factory: Option<&mut GAFactory>, [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] 83 - factory: Option<&mut GAFactory>, [INFO] [stdout] 83 + factory: Option<&mut dyn GAFactory>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_simple.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | fn config(&mut self) -> &GAConfig [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] 113 - fn config(&mut self) -> &GAConfig [INFO] [stdout] 113 + fn config(&mut self) -> &dyn GAConfig [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:135:23 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn new(s: &'a GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [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] 135 - pub fn new(s: &'a GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [INFO] [stdout] 135 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:222:23 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [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] 222 - pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [INFO] [stdout] 222 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ga/ga_selectors.rs:367:23 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [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] 367 - pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [INFO] [stdout] 367 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `population` [INFO] [stdout] --> src/ga/ga_selectors.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | fn update(&mut self, population: &mut GAPopulation) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_population` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pMutation` should have a snake case name [INFO] [stdout] --> src/ga/ga_core.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | fn mutate(&mut self, pMutation : f32); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `p_mutation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 19.35s [INFO] running `Command { std: "docker" "inspect" "aa87c8aa71bd54ea30bfb11d84dec821b56938cf53c908283e98eb2baf8b8f90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa87c8aa71bd54ea30bfb11d84dec821b56938cf53c908283e98eb2baf8b8f90", kill_on_drop: false }` [INFO] [stdout] aa87c8aa71bd54ea30bfb11d84dec821b56938cf53c908283e98eb2baf8b8f90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-36/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2ef7fe4823c3e70a65dd1dc8937aa75744b595aba447b6deb353e63f712808aa [INFO] running `Command { std: "docker" "start" "-a" "2ef7fe4823c3e70a65dd1dc8937aa75744b595aba447b6deb353e63f712808aa", kill_on_drop: false }` [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/ga/ga_core.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | / /// Bit Flags for Genetic Algorithm Configuration [INFO] [stderr] 6 | | /// [INFO] [stderr] 7 | | /// [INFO] [stderr] | |_--^ [INFO] [stderr] | | [INFO] [stderr] | rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/ga/ga_core.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | / bitflags! [INFO] [stderr] 9 | | { [INFO] [stderr] 10 | | pub flags GAFlags: u32 [INFO] [stderr] 11 | | { [INFO] [stderr] 12 | | const DEBUG_FLAG = 0b00000001 [INFO] [stderr] 13 | | } [INFO] [stderr] 14 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/ga/ga_core.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | / bitflags! [INFO] [stderr] 9 | | { [INFO] [stderr] 10 | | pub flags GAFlags: u32 [INFO] [stderr] 11 | | { [INFO] [stderr] 12 | | const DEBUG_FLAG = 0b00000001 [INFO] [stderr] 13 | | } [INFO] [stderr] 14 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ga/ga_selectors.rs:130:26 [INFO] [stderr] | [INFO] [stderr] 130 | score_selection: &'a GAScoreTypeBasedSelection [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [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] 130 - score_selection: &'a GAScoreTypeBasedSelection [INFO] [stderr] 130 + score_selection: &'a dyn GAScoreTypeBasedSelection [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ga/ga_selectors.rs:215:26 [INFO] [stderr] | [INFO] [stderr] 215 | score_selection: &'a GAScoreTypeBasedSelection, [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] 215 - score_selection: &'a GAScoreTypeBasedSelection, [INFO] [stderr] 215 + score_selection: &'a dyn GAScoreTypeBasedSelection, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ga/ga_selectors.rs:361:26 [INFO] [stderr] | [INFO] [stderr] 361 | score_selection: &'a GAScoreTypeBasedSelection, [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] 361 - score_selection: &'a GAScoreTypeBasedSelection, [INFO] [stderr] 361 + score_selection: &'a dyn GAScoreTypeBasedSelection, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ga/ga_core.rs:82:30 [INFO] [stderr] | [INFO] [stderr] 82 | fn config(&mut self) -> &GAConfig; [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] 82 - fn config(&mut self) -> &GAConfig; [INFO] [stderr] 82 + fn config(&mut self) -> &dyn GAConfig; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ga/ga_simple.rs:83:37 [INFO] [stderr] | [INFO] [stderr] 83 | factory: Option<&mut GAFactory>, [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] 83 - factory: Option<&mut GAFactory>, [INFO] [stderr] 83 + factory: Option<&mut dyn GAFactory>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ga/ga_simple.rs:113:30 [INFO] [stderr] | [INFO] [stderr] 113 | fn config(&mut self) -> &GAConfig [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] 113 - fn config(&mut self) -> &GAConfig [INFO] [stderr] 113 + fn config(&mut self) -> &dyn GAConfig [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ga/ga_selectors.rs:135:23 [INFO] [stderr] | [INFO] [stderr] 135 | pub fn new(s: &'a GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [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] 135 - pub fn new(s: &'a GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [INFO] [stderr] 135 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection) -> GARankSelector<'a, T> [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ga/ga_selectors.rs:222:23 [INFO] [stderr] | [INFO] [stderr] 222 | pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [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] 222 - pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [INFO] [stderr] 222 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection, p_size: usize) -> GARouletteWheelSelector<'a, T> [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ga/ga_selectors.rs:367:23 [INFO] [stderr] | [INFO] [stderr] 367 | pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [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] 367 - pub fn new(s: &'a GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [INFO] [stderr] 367 + pub fn new(s: &'a dyn GAScoreTypeBasedSelection, p_size: usize) -> GATournamentSelector<'a, T> [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `population` [INFO] [stderr] --> src/ga/ga_selectors.rs:42:26 [INFO] [stderr] | [INFO] [stderr] 42 | fn update(&mut self, population: &mut GAPopulation) {} [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_population` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `pMutation` should have a snake case name [INFO] [stderr] --> src/ga/ga_core.rs:40:26 [INFO] [stderr] | [INFO] [stderr] 40 | fn mutate(&mut self, pMutation : f32); [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `p_mutation` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rust-monster` (lib) generated 14 warnings [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> tests/lib.rs:38:36 [INFO] [stderr] | [INFO] [stderr] 38 | fn fitness(&self) -> f32 { (1.0 / self.fitness) } [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 38 - fn fitness(&self) -> f32 { (1.0 / self.fitness) } [INFO] [stderr] 38 + fn fitness(&self) -> f32 { 1.0 / self.fitness } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> tests/lib.rs:106:76 [INFO] [stderr] | [INFO] [stderr] 106 | ... Some(&mut factory as &mut GAFactory), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [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] 106 - Some(&mut factory as &mut GAFactory), [INFO] [stderr] 106 + Some(&mut factory as &mut dyn GAFactory), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `rust-monster` (test "lib") generated 2 warnings [INFO] [stderr] warning: `rust-monster` (lib test) generated 14 warnings (14 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rust_monster-3783426bf5fd813a) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test ga::ga_random::test::diff_seed ... ok [INFO] [stdout] test ga::ga_random::test::same_seed_different_types ... ok [INFO] [stdout] test ga::ga_random::test::same_seed ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running tests/lib.rs (/opt/rustwide/target/debug/deps/lib-3b66b6fcebcad36b) [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test tests::test_tournament_selector ... ok [INFO] [stdout] test tests::init_test_with_initial_population ... ok [INFO] [stdout] test tests::test_uniform_selector ... ok [INFO] [stdout] test tests::test_sort_population ... ok [INFO] [stdout] test tests::test_roulette_wheel_selector ... ok [INFO] [stdout] test tests::test_rank_selector ... ok [INFO] [stdout] test tests::init_test_with_factory ... ok [INFO] [stdout] test tests::init_test_empty_initial_pop - should panic ... ok [INFO] [stdout] test tests::init_test_missing_args - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] Doc-tests rust-monster [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/ga/ga_random.rs - ga::ga_random (line 16) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2ef7fe4823c3e70a65dd1dc8937aa75744b595aba447b6deb353e63f712808aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ef7fe4823c3e70a65dd1dc8937aa75744b595aba447b6deb353e63f712808aa", kill_on_drop: false }` [INFO] [stdout] 2ef7fe4823c3e70a65dd1dc8937aa75744b595aba447b6deb353e63f712808aa