[INFO] cloning repository https://github.com/metaphorshear/tsp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/metaphorshear/tsp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmetaphorshear%2Ftsp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmetaphorshear%2Ftsp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6c53337d9248b3d7231dad7e229e29730eefb1aa [INFO] testing metaphorshear/tsp against master#61223975d46f794466efa832bc7562b9707ecc46+rustflags=-Copt-level=3 for pr-121282 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmetaphorshear%2Ftsp" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/metaphorshear/tsp on toolchain 61223975d46f794466efa832bc7562b9707ecc46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/metaphorshear/tsp [INFO] finished tweaking git repo https://github.com/metaphorshear/tsp [INFO] tweaked toml for git repo https://github.com/metaphorshear/tsp written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/metaphorshear/tsp 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" "+61223975d46f794466efa832bc7562b9707ecc46" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] testing metaphorshear/tsp against try#d073071d77ce0f93b4fd8cc567a1e2b9e1b22126+rustflags=-Copt-level=3 for pr-121282 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmetaphorshear%2Ftsp" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/metaphorshear/tsp on toolchain d073071d77ce0f93b4fd8cc567a1e2b9e1b22126 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/metaphorshear/tsp [INFO] finished tweaking git repo https://github.com/metaphorshear/tsp [INFO] tweaked toml for git repo https://github.com/metaphorshear/tsp written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/metaphorshear/tsp 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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a263c4a692a6dfe77b8202776371d2e4c14d582604553df9820e255832161afb [INFO] running `Command { std: "docker" "start" "-a" "a263c4a692a6dfe77b8202776371d2e4c14d582604553df9820e255832161afb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a263c4a692a6dfe77b8202776371d2e4c14d582604553df9820e255832161afb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a263c4a692a6dfe77b8202776371d2e4c14d582604553df9820e255832161afb", kill_on_drop: false }` [INFO] [stdout] a263c4a692a6dfe77b8202776371d2e4c14d582604553df9820e255832161afb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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 -Copt-level=3" "-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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd0e18da5ce984e8c2cc6ab64f0f785e4b8d561f909ae606c3b56951647037e1 [INFO] running `Command { std: "docker" "start" "-a" "fd0e18da5ce984e8c2cc6ab64f0f785e4b8d561f909ae606c3b56951647037e1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling rand v0.4.3 [INFO] [stderr] Compiling time v0.1.40 [INFO] [stderr] Compiling rand v0.3.22 [INFO] [stderr] Compiling tsp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/aco.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | / /// grid_size : the number of nodes in the graph [INFO] [stdout] 15 | | /// initial strength : every edge in the pheromone matrix is initialized to this value [INFO] [stdout] 16 | | /// try num_cities/path_cost, where path_cost is the total cost of the first path [INFO] [stdout] | |_________________________________________________________________________________________^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | / ACO { pheromones: vec![ vec![initial_strength; grid_size]; grid_size ], [INFO] [stdout] 19 | | pweight: pweight, hweight : hweight, decay : decay } [INFO] [stdout] | |__________________________________________________________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/tsp.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | / ///Implementation of an Ant System, based on the code and descriptions in Clever Algorithms [INFO] [stdout] 119 | | ///pweight corresponds to alpha (the history coefficient), usually set to 1 [INFO] [stdout] 120 | | ///hweight corresponds to beta (the heuristic coefficient), usually set between 2 and 5 [INFO] [stdout] 121 | | ///decay is usually set to 0.5 [INFO] [stdout] 122 | | ///number of ants should be number of cities [INFO] [stdout] | |____________________________________________________^ [INFO] [stdout] 123 | [INFO] [stdout] 124 | let num_cities = self.ecm.ecm.len(); [INFO] [stdout] | ------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/tsp.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / ///This is a wrapper around ant_system, which sets sane values [INFO] [stdout] 159 | | ///You can still use the other one if you want to tweak everything [INFO] [stdout] | |__________________________________________________________________________^ [INFO] [stdout] 160 | let pweight = 1f32; [INFO] [stdout] | ------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/tsp.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | for n in 0..iterations { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | fn time_fn(f : &mut FnMut() ) -> (f64) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - fn time_fn(f : &mut FnMut() ) -> (f64) { [INFO] [stdout] 13 + fn time_fn(f : &mut FnMut() ) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | fn time_fn(f : &mut FnMut() ) -> (f64) { [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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | fn time_fn(f : &mut dyn FnMut() ) -> (f64) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let n = num_cities; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | for t in 0..trials { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quick_test` is never used [INFO] [stdout] --> src/main.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn quick_test(num_cities: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_a` is never used [INFO] [stdout] --> src/main.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn part_a(){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_b_and_c` is never used [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn part_b_and_c(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_d` is never used [INFO] [stdout] --> src/main.rs:187:4 [INFO] [stdout] | [INFO] [stdout] 187 | fn part_d(trials : u64, monte_pow : usize){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.60s [INFO] running `Command { std: "docker" "inspect" "fd0e18da5ce984e8c2cc6ab64f0f785e4b8d561f909ae606c3b56951647037e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd0e18da5ce984e8c2cc6ab64f0f785e4b8d561f909ae606c3b56951647037e1", kill_on_drop: false }` [INFO] [stdout] fd0e18da5ce984e8c2cc6ab64f0f785e4b8d561f909ae606c3b56951647037e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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 -Copt-level=3" "-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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a3ca9ec2d61d994e3592852945d7a4bdaf6ec4d3444ce679189a50ceaeddb02b [INFO] running `Command { std: "docker" "start" "-a" "a3ca9ec2d61d994e3592852945d7a4bdaf6ec4d3444ce679189a50ceaeddb02b", kill_on_drop: false }` [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/aco.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | / /// grid_size : the number of nodes in the graph [INFO] [stdout] 15 | | /// initial strength : every edge in the pheromone matrix is initialized to this value [INFO] [stdout] 16 | | /// try num_cities/path_cost, where path_cost is the total cost of the first path [INFO] [stdout] | |_________________________________________________________________________________________^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | / ACO { pheromones: vec![ vec![initial_strength; grid_size]; grid_size ], [INFO] [stdout] 19 | | pweight: pweight, hweight : hweight, decay : decay } [INFO] [stdout] | |__________________________________________________________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/tsp.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | / ///Implementation of an Ant System, based on the code and descriptions in Clever Algorithms [INFO] [stdout] 119 | | ///pweight corresponds to alpha (the history coefficient), usually set to 1 [INFO] [stdout] 120 | | ///hweight corresponds to beta (the heuristic coefficient), usually set between 2 and 5 [INFO] [stdout] 121 | | ///decay is usually set to 0.5 [INFO] [stdout] 122 | | ///number of ants should be number of cities [INFO] [stdout] | |____________________________________________________^ [INFO] [stdout] 123 | [INFO] [stdout] 124 | let num_cities = self.ecm.ecm.len(); [INFO] [stdout] | ------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/tsp.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / ///This is a wrapper around ant_system, which sets sane values [INFO] [stdout] 159 | | ///You can still use the other one if you want to tweak everything [INFO] [stdout] | |__________________________________________________________________________^ [INFO] [stdout] 160 | let pweight = 1f32; [INFO] [stdout] | ------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/tsp.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | for n in 0..iterations { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tsp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/aco.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | / /// grid_size : the number of nodes in the graph [INFO] [stdout] 15 | | /// initial strength : every edge in the pheromone matrix is initialized to this value [INFO] [stdout] 16 | | /// try num_cities/path_cost, where path_cost is the total cost of the first path [INFO] [stdout] | |_________________________________________________________________________________________^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | / ACO { pheromones: vec![ vec![initial_strength; grid_size]; grid_size ], [INFO] [stdout] 19 | | pweight: pweight, hweight : hweight, decay : decay } [INFO] [stdout] | |__________________________________________________________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/tsp.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | / ///Implementation of an Ant System, based on the code and descriptions in Clever Algorithms [INFO] [stdout] 119 | | ///pweight corresponds to alpha (the history coefficient), usually set to 1 [INFO] [stdout] 120 | | ///hweight corresponds to beta (the heuristic coefficient), usually set between 2 and 5 [INFO] [stdout] 121 | | ///decay is usually set to 0.5 [INFO] [stdout] 122 | | ///number of ants should be number of cities [INFO] [stdout] | |____________________________________________________^ [INFO] [stdout] 123 | [INFO] [stdout] 124 | let num_cities = self.ecm.ecm.len(); [INFO] [stdout] | ------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/tsp.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | / ///This is a wrapper around ant_system, which sets sane values [INFO] [stdout] 159 | | ///You can still use the other one if you want to tweak everything [INFO] [stdout] | |__________________________________________________________________________^ [INFO] [stdout] 160 | let pweight = 1f32; [INFO] [stdout] | ------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | fn time_fn(f : &mut FnMut() ) -> (f64) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - fn time_fn(f : &mut FnMut() ) -> (f64) { [INFO] [stdout] 13 + fn time_fn(f : &mut FnMut() ) -> f64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | fn time_fn(f : &mut FnMut() ) -> (f64) { [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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | fn time_fn(f : &mut dyn FnMut() ) -> (f64) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/tsp.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | for n in 0..iterations { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let n = num_cities; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | for t in 0..trials { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quick_test` is never used [INFO] [stdout] --> src/main.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn quick_test(num_cities: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_a` is never used [INFO] [stdout] --> src/main.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn part_a(){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_b_and_c` is never used [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn part_b_and_c(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_d` is never used [INFO] [stdout] --> src/main.rs:187:4 [INFO] [stdout] | [INFO] [stdout] 187 | fn part_d(trials : u64, monte_pow : usize){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.68s [INFO] running `Command { std: "docker" "inspect" "a3ca9ec2d61d994e3592852945d7a4bdaf6ec4d3444ce679189a50ceaeddb02b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3ca9ec2d61d994e3592852945d7a4bdaf6ec4d3444ce679189a50ceaeddb02b", kill_on_drop: false }` [INFO] [stdout] a3ca9ec2d61d994e3592852945d7a4bdaf6ec4d3444ce679189a50ceaeddb02b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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 -Copt-level=3" "-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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e83aebe2f1024d0bd72db04337e2347536a6d28899f378db2daaadbc0b5fbd29 [INFO] running `Command { std: "docker" "start" "-a" "e83aebe2f1024d0bd72db04337e2347536a6d28899f378db2daaadbc0b5fbd29", kill_on_drop: false }` [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/aco.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | / /// grid_size : the number of nodes in the graph [INFO] [stderr] 15 | | /// initial strength : every edge in the pheromone matrix is initialized to this value [INFO] [stderr] 16 | | /// try num_cities/path_cost, where path_cost is the total cost of the first path [INFO] [stderr] | |_________________________________________________________________________________________^ [INFO] [stderr] 17 | [INFO] [stderr] 18 | / ACO { pheromones: vec![ vec![initial_strength; grid_size]; grid_size ], [INFO] [stderr] 19 | | pweight: pweight, hweight : hweight, decay : decay } [INFO] [stderr] | |__________________________________________________________________- rustdoc does not generate documentation for expressions [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/tsp.rs:118:9 [INFO] [stderr] | [INFO] [stderr] 118 | / ///Implementation of an Ant System, based on the code and descriptions in Clever Algorithms [INFO] [stderr] 119 | | ///pweight corresponds to alpha (the history coefficient), usually set to 1 [INFO] [stderr] 120 | | ///hweight corresponds to beta (the heuristic coefficient), usually set between 2 and 5 [INFO] [stderr] 121 | | ///decay is usually set to 0.5 [INFO] [stderr] 122 | | ///number of ants should be number of cities [INFO] [stderr] | |____________________________________________________^ [INFO] [stderr] 123 | [INFO] [stderr] 124 | let num_cities = self.ecm.ecm.len(); [INFO] [stderr] | ------------------------------------ rustdoc does not generate documentation for statements [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/tsp.rs:158:9 [INFO] [stderr] | [INFO] [stderr] 158 | / ///This is a wrapper around ant_system, which sets sane values [INFO] [stderr] 159 | | ///You can still use the other one if you want to tweak everything [INFO] [stderr] | |__________________________________________________________________________^ [INFO] [stderr] 160 | let pweight = 1f32; [INFO] [stderr] | ------------------- rustdoc does not generate documentation for statements [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/tsp.rs:137:13 [INFO] [stderr] | [INFO] [stderr] 137 | for n in 0..iterations { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `tsp` (lib) generated 4 warnings [INFO] [stderr] warning: `tsp` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/main.rs:13:34 [INFO] [stderr] | [INFO] [stderr] 13 | fn time_fn(f : &mut FnMut() ) -> (f64) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 13 - fn time_fn(f : &mut FnMut() ) -> (f64) { [INFO] [stderr] 13 + fn time_fn(f : &mut FnMut() ) -> f64 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:13:21 [INFO] [stderr] | [INFO] [stderr] 13 | fn time_fn(f : &mut FnMut() ) -> (f64) { [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: if this is an object-safe trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 13 | fn time_fn(f : &mut dyn FnMut() ) -> (f64) { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/main.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | let n = num_cities; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/main.rs:202:13 [INFO] [stderr] | [INFO] [stderr] 202 | for t in 0..trials { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] [INFO] [stderr] warning: function `quick_test` is never used [INFO] [stderr] --> src/main.rs:50:4 [INFO] [stderr] | [INFO] [stderr] 50 | fn quick_test(num_cities: usize) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `part_a` is never used [INFO] [stderr] --> src/main.rs:77:4 [INFO] [stderr] | [INFO] [stderr] 77 | fn part_a(){ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `part_b_and_c` is never used [INFO] [stderr] --> src/main.rs:89:4 [INFO] [stderr] | [INFO] [stderr] 89 | fn part_b_and_c(){ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `part_d` is never used [INFO] [stderr] --> src/main.rs:187:4 [INFO] [stderr] | [INFO] [stderr] 187 | fn part_d(trials : u64, monte_pow : usize){ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `tsp` (bin "tsp" test) generated 8 warnings (run `cargo fix --bin "tsp" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tsp-b1e34afe009d3f70) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/tsp-899d8613b117de3b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests tsp [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e83aebe2f1024d0bd72db04337e2347536a6d28899f378db2daaadbc0b5fbd29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e83aebe2f1024d0bd72db04337e2347536a6d28899f378db2daaadbc0b5fbd29", kill_on_drop: false }` [INFO] [stdout] e83aebe2f1024d0bd72db04337e2347536a6d28899f378db2daaadbc0b5fbd29