[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] checking metaphorshear/tsp against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmetaphorshear%2Ftsp" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/metaphorshear/tsp on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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/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: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 76db81936b8cddf7c16a0c03a5b771e72494a2fd5c9b31bd74ad329ebb0f84e6 [INFO] running `Command { std: "docker" "start" "-a" "76db81936b8cddf7c16a0c03a5b771e72494a2fd5c9b31bd74ad329ebb0f84e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76db81936b8cddf7c16a0c03a5b771e72494a2fd5c9b31bd74ad329ebb0f84e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76db81936b8cddf7c16a0c03a5b771e72494a2fd5c9b31bd74ad329ebb0f84e6", kill_on_drop: false }` [INFO] [stdout] 76db81936b8cddf7c16a0c03a5b771e72494a2fd5c9b31bd74ad329ebb0f84e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 332b71813517a83767d823d78499fd7ad41551c5cf81e6d9f2621a23c89a9a53 [INFO] running `Command { std: "docker" "start" "-a" "332b71813517a83767d823d78499fd7ad41551c5cf81e6d9f2621a23c89a9a53", kill_on_drop: false }` [INFO] [stderr] Checking rand v0.4.3 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking 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] = 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] [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] [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] = 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] [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] [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/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: 4 warnings emitted [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] | ^^^^^^^ help: use `dyn`: `dyn FnMut()` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^ help: use `dyn`: `dyn FnMut()` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` 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 is never used: `quick_test` [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 is never used: `part_a` [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 is never used: `part_b_and_c` [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 is never used: `part_d` [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: 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: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `quick_test` [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 is never used: `part_a` [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 is never used: `part_b_and_c` [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 is never used: `part_d` [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 [unoptimized + debuginfo] target(s) in 3.16s [INFO] running `Command { std: "docker" "inspect" "332b71813517a83767d823d78499fd7ad41551c5cf81e6d9f2621a23c89a9a53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "332b71813517a83767d823d78499fd7ad41551c5cf81e6d9f2621a23c89a9a53", kill_on_drop: false }` [INFO] [stdout] 332b71813517a83767d823d78499fd7ad41551c5cf81e6d9f2621a23c89a9a53