[INFO] cloning repository https://github.com/gvelim/CSX0003RUST [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gvelim/CSX0003RUST" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgvelim%2FCSX0003RUST", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgvelim%2FCSX0003RUST'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 71e39cb5eeab7153d5c25340fd2cf404b5b7e5ed [INFO] testing gvelim/CSX0003RUST against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgvelim%2FCSX0003RUST" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gvelim/CSX0003RUST [INFO] finished tweaking git repo https://github.com/gvelim/CSX0003RUST [INFO] tweaked toml for git repo https://github.com/gvelim/CSX0003RUST written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gvelim/CSX0003RUST on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gvelim/CSX0003RUST 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c389b9a56f0a5a47e2f26d43ac1721dd020f89ea4a648853ab463d8afa7df0d7 [INFO] running `Command { std: "docker" "start" "-a" "c389b9a56f0a5a47e2f26d43ac1721dd020f89ea4a648853ab463d8afa7df0d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c389b9a56f0a5a47e2f26d43ac1721dd020f89ea4a648853ab463d8afa7df0d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c389b9a56f0a5a47e2f26d43ac1721dd020f89ea4a648853ab463d8afa7df0d7", kill_on_drop: false }` [INFO] [stdout] c389b9a56f0a5a47e2f26d43ac1721dd020f89ea4a648853ab463d8afa7df0d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 782e51dc41254c601e40e9df2efcfa43477d0f964b3b6fe481d020f1e31d4e5a [INFO] running `Command { std: "docker" "start" "-a" "782e51dc41254c601e40e9df2efcfa43477d0f964b3b6fe481d020f1e31d4e5a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling hashbag v0.1.9 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling csx3 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `load_file_mst` is never used [INFO] [stdout] --> src/greedy/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Graph { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | fn load_file_mst(&mut self, filename: &str) -> &mut Graph { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MinimumSpanningTree` is never used [INFO] [stdout] --> src/greedy/mst.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait MinimumSpanningTree { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClusterSet` is never constructed [INFO] [stdout] --> src/greedy/cluster.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ClusterSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `spacing` and `crossing_edges` are never used [INFO] [stdout] --> src/greedy/cluster.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ClusterSet { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | fn spacing(&self) -> Edge { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn crossing_edges(&self) -> BinaryHeap{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Clustering` is never used [INFO] [stdout] --> src/greedy/cluster.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | trait Clustering { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WIS` is never constructed [INFO] [stdout] --> src/dp/wis.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct WIS<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dp/wis.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl WIS<'_> { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 10 | fn recursive(set: &[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn new(set: &[usize]) -> WIS { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn weight(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn elements(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn positions_in_set(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn to_binary_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn parse_graph(filename: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WISElemIter` is never constructed [INFO] [stdout] --> src/dp/wis.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | struct WISElemIter<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Object` is never constructed [INFO] [stdout] --> src/dp/knap.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Object { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KnapSack` is never constructed [INFO] [stdout] --> src/dp/knap.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct KnapSack<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `positions`, `elements`, `max_value`, and `parse` are never used [INFO] [stdout] --> src/dp/knap.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl KnapSack<'_> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn positions(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn elements(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn max_value(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn parse(input: &str) -> Result<(usize,Vec),ParseIntError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Coins` is never constructed [INFO] [stdout] --> src/dp/coin.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | struct Coins { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `combinations`, `iterative`, `get_coins_num`, `coins`, and `recursive` are never used [INFO] [stdout] --> src/dp/coin.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl Coins { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 68 | fn combinations(&mut self, sum: usize, coins:&[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn iterative(sum: usize, coins:&[usize]) -> Coins { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn get_coins_num(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn coins(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn recursive(&mut self, sum: usize, coins:&[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CoinsIter` is never constructed [INFO] [stdout] --> src/dp/coin.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | struct CoinsIter<'a > { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dp/coin.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 140 | impl CoinsIter<'_> { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 141 | fn new(coins:&Coins) -> CoinsIter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SquareSum` is never constructed [INFO] [stdout] --> src/dp/path.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct SquareSum<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `path`, and `sum` are never used [INFO] [stdout] --> src/dp/path.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl SquareSum<'_> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 29 | fn new(path: &[Vec]) -> SquareSum { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn path(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn sum(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SquareSumIter` is never constructed [INFO] [stdout] --> src/dp/path.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct SquareSumIter<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dp/path.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl<'a> SquareSumIter<'a> { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 55 | fn new(ss:&'a SquareSum<'a>) -> SquareSumIter<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/trees/mod.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn iter(&self) -> TreeIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 45 | pub fn iter(&self) -> TreeIter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linkedlists/mod.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn iter(&self) -> ListIterByRef { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn iter(&self) -> ListIterByRef<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/merge/mod.rs:84:62 [INFO] [stdout] | [INFO] [stdout] 84 | fn merge_lazy<'a>(&'a mut self, s:&'a mut[T]) -> (usize, VirtualSlice); [INFO] [stdout] | -- -- ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 84 | fn merge_lazy<'a>(&'a mut self, s:&'a mut[T]) -> (usize, VirtualSlice<'a, T>); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/merge/mod.rs:109:64 [INFO] [stdout] | [INFO] [stdout] 109 | fn merge_lazy<'a>(&'a mut self, s: &'a mut [T]) -> (usize, VirtualSlice) { [INFO] [stdout] | -- -- ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 109 | fn merge_lazy<'a>(&'a mut self, s: &'a mut [T]) -> (usize, VirtualSlice<'a, T>) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/graphs/min_cut.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn iter(&self) -> SuperNodeIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 131 | pub fn iter(&self) -> SuperNodeIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/wis.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | fn new(set: &[usize]) -> WIS { [INFO] [stdout] | ^^^^^^^^ ^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 24 | fn new(set: &[usize]) -> WIS<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/knap.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/coin.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | fn new(coins:&Coins) -> CoinsIter { [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 141 | fn new(coins:&Coins) -> CoinsIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/path.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | fn new(path: &[Vec]) -> SquareSum { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 29 | fn new(path: &[Vec]) -> SquareSum<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_subsequence_v1` is never used [INFO] [stdout] --> src/bin/leet.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn is_subsequence_v1(s: &str, t: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_subsequence_v2` is never used [INFO] [stdout] --> src/bin/leet.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn is_subsequence_v2(s: &str, t: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_matching_subseq` is never used [INFO] [stdout] --> src/bin/leet.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn num_matching_subseq(s: &str, words: &[&str]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.30s [INFO] running `Command { std: "docker" "inspect" "782e51dc41254c601e40e9df2efcfa43477d0f964b3b6fe481d020f1e31d4e5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "782e51dc41254c601e40e9df2efcfa43477d0f964b3b6fe481d020f1e31d4e5a", kill_on_drop: false }` [INFO] [stdout] 782e51dc41254c601e40e9df2efcfa43477d0f964b3b6fe481d020f1e31d4e5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b1475b054b4c98da6b016ab637e8dcb4729cb929f952003551a3a931731500b2 [INFO] running `Command { std: "docker" "start" "-a" "b1475b054b4c98da6b016ab637e8dcb4729cb929f952003551a3a931731500b2", kill_on_drop: false }` [INFO] [stdout] warning: method `load_file_mst` is never used [INFO] [stdout] --> src/greedy/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Graph { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | fn load_file_mst(&mut self, filename: &str) -> &mut Graph { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MinimumSpanningTree` is never used [INFO] [stdout] --> src/greedy/mst.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait MinimumSpanningTree { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClusterSet` is never constructed [INFO] [stdout] --> src/greedy/cluster.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ClusterSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `spacing` and `crossing_edges` are never used [INFO] [stdout] --> src/greedy/cluster.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ClusterSet { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | fn spacing(&self) -> Edge { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn crossing_edges(&self) -> BinaryHeap{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Clustering` is never used [INFO] [stdout] --> src/greedy/cluster.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | trait Clustering { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WIS` is never constructed [INFO] [stdout] --> src/dp/wis.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct WIS<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dp/wis.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl WIS<'_> { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 10 | fn recursive(set: &[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn new(set: &[usize]) -> WIS { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn weight(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn elements(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn positions_in_set(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn to_binary_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn parse_graph(filename: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WISElemIter` is never constructed [INFO] [stdout] --> src/dp/wis.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | struct WISElemIter<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Object` is never constructed [INFO] [stdout] --> src/dp/knap.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Object { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KnapSack` is never constructed [INFO] [stdout] --> src/dp/knap.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct KnapSack<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `positions`, `elements`, `max_value`, and `parse` are never used [INFO] [stdout] --> src/dp/knap.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl KnapSack<'_> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn positions(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn elements(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn max_value(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn parse(input: &str) -> Result<(usize,Vec),ParseIntError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Coins` is never constructed [INFO] [stdout] --> src/dp/coin.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | struct Coins { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `combinations`, `iterative`, `get_coins_num`, `coins`, and `recursive` are never used [INFO] [stdout] --> src/dp/coin.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl Coins { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 68 | fn combinations(&mut self, sum: usize, coins:&[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn iterative(sum: usize, coins:&[usize]) -> Coins { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn get_coins_num(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn coins(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn recursive(&mut self, sum: usize, coins:&[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CoinsIter` is never constructed [INFO] [stdout] --> src/dp/coin.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | struct CoinsIter<'a > { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dp/coin.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 140 | impl CoinsIter<'_> { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 141 | fn new(coins:&Coins) -> CoinsIter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SquareSum` is never constructed [INFO] [stdout] --> src/dp/path.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct SquareSum<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `path`, and `sum` are never used [INFO] [stdout] --> src/dp/path.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl SquareSum<'_> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 29 | fn new(path: &[Vec]) -> SquareSum { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn path(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn sum(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SquareSumIter` is never constructed [INFO] [stdout] --> src/dp/path.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct SquareSumIter<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dp/path.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl<'a> SquareSumIter<'a> { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 55 | fn new(ss:&'a SquareSum<'a>) -> SquareSumIter<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/trees/mod.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn iter(&self) -> TreeIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 45 | pub fn iter(&self) -> TreeIter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linkedlists/mod.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn iter(&self) -> ListIterByRef { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn iter(&self) -> ListIterByRef<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/merge/mod.rs:84:62 [INFO] [stdout] | [INFO] [stdout] 84 | fn merge_lazy<'a>(&'a mut self, s:&'a mut[T]) -> (usize, VirtualSlice); [INFO] [stdout] | -- -- ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 84 | fn merge_lazy<'a>(&'a mut self, s:&'a mut[T]) -> (usize, VirtualSlice<'a, T>); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/merge/mod.rs:109:64 [INFO] [stdout] | [INFO] [stdout] 109 | fn merge_lazy<'a>(&'a mut self, s: &'a mut [T]) -> (usize, VirtualSlice) { [INFO] [stdout] | -- -- ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 109 | fn merge_lazy<'a>(&'a mut self, s: &'a mut [T]) -> (usize, VirtualSlice<'a, T>) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/graphs/min_cut.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn iter(&self) -> SuperNodeIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 131 | pub fn iter(&self) -> SuperNodeIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/wis.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | fn new(set: &[usize]) -> WIS { [INFO] [stdout] | ^^^^^^^^ ^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 24 | fn new(set: &[usize]) -> WIS<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/knap.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/coin.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | fn new(coins:&Coins) -> CoinsIter { [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 141 | fn new(coins:&Coins) -> CoinsIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/path.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | fn new(path: &[Vec]) -> SquareSum { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 29 | fn new(path: &[Vec]) -> SquareSum<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling csx3 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/trees/mod.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn iter(&self) -> TreeIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 45 | pub fn iter(&self) -> TreeIter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linkedlists/mod.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn iter(&self) -> ListIterByRef { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn iter(&self) -> ListIterByRef<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/merge/mod.rs:84:62 [INFO] [stdout] | [INFO] [stdout] 84 | fn merge_lazy<'a>(&'a mut self, s:&'a mut[T]) -> (usize, VirtualSlice); [INFO] [stdout] | -- -- ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 84 | fn merge_lazy<'a>(&'a mut self, s:&'a mut[T]) -> (usize, VirtualSlice<'a, T>); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/merge/mod.rs:109:64 [INFO] [stdout] | [INFO] [stdout] 109 | fn merge_lazy<'a>(&'a mut self, s: &'a mut [T]) -> (usize, VirtualSlice) { [INFO] [stdout] | -- -- ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 109 | fn merge_lazy<'a>(&'a mut self, s: &'a mut [T]) -> (usize, VirtualSlice<'a, T>) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/graphs/min_cut.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn iter(&self) -> SuperNodeIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 131 | pub fn iter(&self) -> SuperNodeIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/wis.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | fn new(set: &[usize]) -> WIS { [INFO] [stdout] | ^^^^^^^^ ^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 24 | fn new(set: &[usize]) -> WIS<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/knap.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/coin.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | fn new(coins:&Coins) -> CoinsIter { [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 141 | fn new(coins:&Coins) -> CoinsIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/path.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | fn new(path: &[Vec]) -> SquareSum { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 29 | fn new(path: &[Vec]) -> SquareSum<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.56s [INFO] running `Command { std: "docker" "inspect" "b1475b054b4c98da6b016ab637e8dcb4729cb929f952003551a3a931731500b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1475b054b4c98da6b016ab637e8dcb4729cb929f952003551a3a931731500b2", kill_on_drop: false }` [INFO] [stdout] b1475b054b4c98da6b016ab637e8dcb4729cb929f952003551a3a931731500b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0b59f3be696fa9bce8df8c0f00b0b171f34c3c731b29190d31fb213e2cedf4e1 [INFO] running `Command { std: "docker" "start" "-a" "0b59f3be696fa9bce8df8c0f00b0b171f34c3c731b29190d31fb213e2cedf4e1", kill_on_drop: false }` [INFO] [stderr] warning: method `load_file_mst` is never used [INFO] [stderr] --> src/greedy/mod.rs:50:8 [INFO] [stderr] | [INFO] [stderr] 7 | impl Graph { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 50 | fn load_file_mst(&mut self, filename: &str) -> &mut Graph { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: trait `MinimumSpanningTree` is never used [INFO] [stderr] --> src/greedy/mst.rs:6:11 [INFO] [stderr] | [INFO] [stderr] 6 | pub trait MinimumSpanningTree { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ClusterSet` is never constructed [INFO] [stderr] --> src/greedy/cluster.rs:8:8 [INFO] [stderr] | [INFO] [stderr] 8 | struct ClusterSet { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `spacing` and `crossing_edges` are never used [INFO] [stderr] --> src/greedy/cluster.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 13 | impl ClusterSet { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 17 | fn spacing(&self) -> Edge { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 20 | fn crossing_edges(&self) -> BinaryHeap{ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `Clustering` is never used [INFO] [stderr] --> src/greedy/cluster.rs:37:7 [INFO] [stderr] | [INFO] [stderr] 37 | trait Clustering { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `WIS` is never constructed [INFO] [stderr] --> src/dp/wis.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | struct WIS<'a> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/dp/wis.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 9 | impl WIS<'_> { [INFO] [stderr] | ------------ associated items in this implementation [INFO] [stderr] 10 | fn recursive(set: &[usize]) -> usize { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 24 | fn new(set: &[usize]) -> WIS { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | fn weight(&self) -> usize { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | fn elements(&self) -> impl Iterator + '_ { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 43 | fn positions_in_set(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | fn to_binary_string(&self) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 68 | fn parse_graph(filename: &str) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `WISElemIter` is never constructed [INFO] [stderr] --> src/dp/wis.rs:87:8 [INFO] [stderr] | [INFO] [stderr] 87 | struct WISElemIter<'a> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Object` is never constructed [INFO] [stderr] --> src/dp/knap.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | struct Object { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `KnapSack` is never constructed [INFO] [stderr] --> src/dp/knap.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | struct KnapSack<'a> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `positions`, `elements`, `max_value`, and `parse` are never used [INFO] [stderr] --> src/dp/knap.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 22 | impl KnapSack<'_> { [INFO] [stderr] | ----------------- associated items in this implementation [INFO] [stderr] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | fn positions(&self) -> impl Iterator + '_ { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 53 | fn elements(&self) -> impl Iterator { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 58 | fn max_value(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 61 | fn parse(input: &str) -> Result<(usize,Vec),ParseIntError> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Coins` is never constructed [INFO] [stderr] --> src/dp/coin.rs:54:8 [INFO] [stderr] | [INFO] [stderr] 54 | struct Coins { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `combinations`, `iterative`, `get_coins_num`, `coins`, and `recursive` are never used [INFO] [stderr] --> src/dp/coin.rs:68:8 [INFO] [stderr] | [INFO] [stderr] 67 | impl Coins { [INFO] [stderr] | ---------- associated items in this implementation [INFO] [stderr] 68 | fn combinations(&mut self, sum: usize, coins:&[usize]) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 86 | fn iterative(sum: usize, coins:&[usize]) -> Coins { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 105 | fn get_coins_num(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 110 | fn coins(&self) -> impl Iterator + '_ { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 113 | fn recursive(&mut self, sum: usize, coins:&[usize]) -> usize { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CoinsIter` is never constructed [INFO] [stderr] --> src/dp/coin.rs:135:8 [INFO] [stderr] | [INFO] [stderr] 135 | struct CoinsIter<'a > { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/dp/coin.rs:141:8 [INFO] [stderr] | [INFO] [stderr] 140 | impl CoinsIter<'_> { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] 141 | fn new(coins:&Coins) -> CoinsIter { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SquareSum` is never constructed [INFO] [stderr] --> src/dp/path.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | struct SquareSum<'a> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `path`, and `sum` are never used [INFO] [stderr] --> src/dp/path.rs:29:8 [INFO] [stderr] | [INFO] [stderr] 28 | impl SquareSum<'_> { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 29 | fn new(path: &[Vec]) -> SquareSum { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | fn path(&self) -> impl Iterator + '_ { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 43 | fn sum(&self) -> usize { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SquareSumIter` is never constructed [INFO] [stderr] --> src/dp/path.rs:48:8 [INFO] [stderr] | [INFO] [stderr] 48 | struct SquareSumIter<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/dp/path.rs:55:8 [INFO] [stderr] | [INFO] [stderr] 54 | impl<'a> SquareSumIter<'a> { [INFO] [stderr] | -------------------------- associated function in this implementation [INFO] [stderr] 55 | fn new(ss:&'a SquareSum<'a>) -> SquareSumIter<'a> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/trees/mod.rs:45:17 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn iter(&self) -> TreeIter { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 45 | pub fn iter(&self) -> TreeIter<'_, T> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/linkedlists/mod.rs:100:17 [INFO] [stderr] | [INFO] [stderr] 100 | pub fn iter(&self) -> ListIterByRef { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 100 | pub fn iter(&self) -> ListIterByRef<'_, T> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/merge/mod.rs:84:62 [INFO] [stderr] | [INFO] [stderr] 84 | fn merge_lazy<'a>(&'a mut self, s:&'a mut[T]) -> (usize, VirtualSlice); [INFO] [stderr] | -- -- ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | | [INFO] [stderr] | | the lifetime is named here [INFO] [stderr] | the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 84 | fn merge_lazy<'a>(&'a mut self, s:&'a mut[T]) -> (usize, VirtualSlice<'a, T>); [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/merge/mod.rs:109:64 [INFO] [stderr] | [INFO] [stderr] 109 | fn merge_lazy<'a>(&'a mut self, s: &'a mut [T]) -> (usize, VirtualSlice) { [INFO] [stderr] | -- -- ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | | [INFO] [stderr] | | the lifetime is named here [INFO] [stderr] | the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 109 | fn merge_lazy<'a>(&'a mut self, s: &'a mut [T]) -> (usize, VirtualSlice<'a, T>) { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/graphs/min_cut.rs:131:17 [INFO] [stderr] | [INFO] [stderr] 131 | pub fn iter(&self) -> SuperNodeIter { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 131 | pub fn iter(&self) -> SuperNodeIter<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/dp/wis.rs:24:17 [INFO] [stderr] | [INFO] [stderr] 24 | fn new(set: &[usize]) -> WIS { [INFO] [stderr] | ^^^^^^^^ ^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 24 | fn new(set: &[usize]) -> WIS<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/dp/knap.rs:23:18 [INFO] [stderr] | [INFO] [stderr] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/dp/coin.rs:141:18 [INFO] [stderr] | [INFO] [stderr] 141 | fn new(coins:&Coins) -> CoinsIter { [INFO] [stderr] | ^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 141 | fn new(coins:&Coins) -> CoinsIter<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/dp/path.rs:29:18 [INFO] [stderr] | [INFO] [stderr] 29 | fn new(path: &[Vec]) -> SquareSum { [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 29 | fn new(path: &[Vec]) -> SquareSum<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `csx3` (lib) generated 28 warnings (run `cargo fix --lib -p csx3` to apply 9 suggestions) [INFO] [stderr] warning: `csx3` (lib test) generated 9 warnings (9 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/csx3-5879fc15936f2859) [INFO] [stdout] [INFO] [stdout] running 56 tests [INFO] [stdout] test dp::coin::test::test_combinations ... ok [INFO] [stdout] test dp::knap::test::test_parse ... ok [INFO] [stdout] test dp::path::test::test_max_sum_of_squares ... ok [INFO] [stdout] test dp::wis::test::test_recursive ... ok [INFO] [stdout] test dp::wis::test::test_parse ... ok [INFO] [stdout] test dp::coin::test::test_coins ... ok [INFO] [stdout] test graphs::path_search::test::test_path_search_small_graph ... ok [INFO] [stdout] test graphs::path_search::test::test_path_shortest_small_graph ... ok [INFO] [stdout] test hash_heap::test::test_2_sum ... ok [INFO] [stdout] test greedy::test::test_file_load_edge_by_cost ... ok [INFO] [stdout] test hash_heap::test::test_2_sum_all ... ok [INFO] [stdout] test linkedlists::tests::test_from_iter ... ok [INFO] [stdout] test linkedlists::tests::test_into_iter ... ok [INFO] [stdout] test graphs::scc::test::test_topological_sort ... ok [INFO] [stdout] test linkedlists::tests::test_iter ... ok [INFO] [stdout] test greedy::mst::test::test_mst_prim ... ok [INFO] [stdout] test linkedlists::tests::test_pop_first ... ok [INFO] [stdout] test linkedlists::tests::test_push_first ... ok [INFO] [stdout] test linkedlists::tests::test_pop_push_mixed ... ok [INFO] [stdout] test merge::test::test_merge_mut_adjacent ... ok [INFO] [stdout] test merge::test::test_merge_mut_adjacent_fast ... ok [INFO] [stdout] test merge::test::test_merge_shallow ... ok [INFO] [stdout] test linkedlists::tests::test_push_last ... ok [INFO] [stdout] test merge::test::test_merge ... ok [INFO] [stdout] test merge::test::test_merge_mut ... ok [INFO] [stdout] test greedy::mst::test::test_mst_kruska ... ok [INFO] [stdout] test graphs::path_search::test::test_path_search_large_graph ... ok [INFO] [stdout] test graphs::path_search::test::test_path_shortest_large_graph ... ok [INFO] [stdout] test graphs::min_cut::test::test_min_cut ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_index_adjacent ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_iter_mut_adjacent ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_merge ... ok [INFO] [stdout] test dp::knap::test::test_knapsack ... ok [INFO] [stdout] test sort::count::test::test_count_sort ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_new_iter_swap ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_swap_shallow ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_merge_multiple ... ok [INFO] [stdout] test select::test::test_deterministic_selection ... ok [INFO] [stdout] test select::test::test_find_median ... ok [INFO] [stdout] test sort::merge::test::test_merge_sort_mut ... ok [INFO] [stdout] test sort::quick::test::test_partition_at_index ... ok [INFO] [stdout] test select::test::test_random_selection ... ok [INFO] [stdout] test sort::test::test_partition_at_index ... ok [INFO] [stdout] test trees::test::test_add_iter ... ok [INFO] [stdout] test sort::merge::test::test_merge_sort_mut_adjacent ... ok [INFO] [stdout] test merge::test::test_merge_mut_panic - should panic ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_adjacent_panic - should panic ... ok [INFO] [stdout] test dp::wis::test::test_wis ... ok [INFO] [stdout] test sort::quick::test::test_quick_sort ... ok [INFO] [stdout] test sort::count::test::test_countsort_head_to_head ... ok [INFO] [stdout] test sort::merge::test::test_mergesort_head_to_head ... ok [INFO] [stdout] test graphs::min_cut::test::test_min_cut_txt_graph ... FAILED [INFO] [stdout] test graphs::scc::test::test_scc_small ... ok [INFO] [stdout] test hash_heap::test::test_2_sum_file ... ok [INFO] [stdout] test greedy::cluster::test::test_clustering ... ok [INFO] [stdout] test hash_heap::test::test_3_sum ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- graphs::min_cut::test::test_min_cut_txt_graph stdout ---- [INFO] [stdout] Run Iterations: 12 [INFO] [stdout] (12)(0.333) Min Cut !! => 4 [INFO] [stdout] >> Min-cut: {E(5, N(3)), E(1, N(3)), E(3, N(1)), E(3, N(5))} [INFO] [stdout] -------------------- [INFO] [stdout] Run Iterations: 100 [INFO] [stdout] (100)(0.180) Min Cut !! => 18 [INFO] [stdout] (97)(0.120) Min Cut !! => 12 [INFO] [stdout] >> Min-cut: {E(24, N(13)), E(11, N(13)), E(13, N(11)), E(13, N(20)), E(21, N(13)), E(13, N(24)), E(3, N(13)), E(13, N(21)), E(16, N(13)), E(13, N(16)), E(20, N(13)), E(13, N(3))} [INFO] [stdout] -------------------- [INFO] [stdout] Run Iterations: 450 [INFO] [stdout] (450)(0.129) Min Cut !! => 58 [INFO] [stdout] (449)(0.120) Min Cut !! => 54 [INFO] [stdout] (448)(0.089) Min Cut !! => 40 [INFO] [stdout] (447)(0.080) Min Cut !! => 36 [INFO] [stdout] >> Min-cut: {E(3, N(61)), E(14, N(61)), E(61, N(33)), E(52, N(61)), E(61, N(43)), E(24, N(61)), E(9, N(61)), E(15, N(61)), E(61, N(24)), E(66, N(61)), E(54, N(61)), E(33, N(61)), E(43, N(61)), E(75, N(61)), E(61, N(15)), E(61, N(72)), E(72, N(61)), E(61, N(55)), E(61, N(52)), E(61, N(22)), E(61, N(66)), E(55, N(61)), E(61, N(14)), E(61, N(75)), E(13, N(61)), E(61, N(13)), E(61, N(9)), E(61, N(4)), E(61, N(54)), E(61, N(62)), E(61, N(37)), E(4, N(61)), E(62, N(61)), E(61, N(3)), E(37, N(61)), E(22, N(61))} [INFO] [stdout] [INFO] [stdout] thread 'graphs::min_cut::test::test_min_cut_txt_graph' (34) panicked at src/graphs/min_cut.rs:401:17: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: 36 [INFO] [stdout] right: 32 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x60a70b89fed2 - std[3f03f8b59f91bef1]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x60a70b89fed2 - std[3f03f8b59f91bef1]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x60a70b89fed2 - std[3f03f8b59f91bef1]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x60a70b89fed2 - <::print::DisplayBacktrace as core[585f66e14d78f9ba]::fmt::Display>::fmt [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x60a70b8b5a4a - ::fmt [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x60a70b8b5a4a - core[585f66e14d78f9ba]::fmt::write [INFO] [stdout] 6: 0x60a70b8a4cd6 - std[3f03f8b59f91bef1]::io::default_write_fmt::> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x60a70b8a4cd6 - as std[3f03f8b59f91bef1]::io::Write>::write_fmt [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x60a70b87e2cf - ::print [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x60a70b87e2cf - std[3f03f8b59f91bef1]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x60a70b897e69 - std[3f03f8b59f91bef1]::panicking::default_hook [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x60a70b7fb7ae - core[585f66e14d78f9ba]::ops::function::Fn<(&'a std[3f03f8b59f91bef1]::panic::PanicHookInfo<'b>,), Output = ()> + core[585f66e14d78f9ba]::marker::Sync + core[585f66e14d78f9ba]::marker::Send> as core[585f66e14d78f9ba]::ops::function::Fn<(&std[3f03f8b59f91bef1]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 12: 0x60a70b7fb7ae - test[30224e0cb089acd2]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x60a70b898022 - core[585f66e14d78f9ba]::ops::function::Fn<(&'a std[3f03f8b59f91bef1]::panic::PanicHookInfo<'b>,), Output = ()> + core[585f66e14d78f9ba]::marker::Sync + core[585f66e14d78f9ba]::marker::Send> as core[585f66e14d78f9ba]::ops::function::Fn<(&std[3f03f8b59f91bef1]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 14: 0x60a70b898022 - std[3f03f8b59f91bef1]::panicking::panic_with_hook [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x60a70b87e388 - std[3f03f8b59f91bef1]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x60a70b873479 - std[3f03f8b59f91bef1]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x60a70b87f1dd - __rustc[caa99d26c7bae192]::rust_begin_unwind [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x60a70b8b615c - core[585f66e14d78f9ba]::panicking::panic_fmt [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x60a70b8b6013 - core[585f66e14d78f9ba]::panicking::assert_failed_inner [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x60a70b8b191d - core[585f66e14d78f9ba]::panicking::assert_failed:: [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x60a70b7bce7a - csx3[e929ec337a0e8c0a]::graphs::min_cut::test::test_min_cut_txt_graph::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:401:17 [INFO] [stdout] 22: 0x60a70b7a7f5a - core[585f66e14d78f9ba]::iter::traits::iterator::Iterator::for_each::call::<(&str, usize), csx3[e929ec337a0e8c0a]::graphs::min_cut::test::test_min_cut_txt_graph::{closure#0}>::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/iter/traits/iterator.rs:829:29 [INFO] [stdout] 23: 0x60a70b7c2599 - as core[585f66e14d78f9ba]::iter::traits::iterator::Iterator>::fold::<(), core[585f66e14d78f9ba]::iter::traits::iterator::Iterator::for_each::call<(&str, usize), csx3[e929ec337a0e8c0a]::graphs::min_cut::test::test_min_cut_txt_graph::{closure#0}>::{closure#0}> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/alloc/src/vec/into_iter.rs:329:25 [INFO] [stdout] 24: 0x60a70b7c3536 - as core[585f66e14d78f9ba]::iter::traits::iterator::Iterator>::for_each:: [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/iter/traits/iterator.rs:832:14 [INFO] [stdout] 25: 0x60a70b7c0e91 - csx3[e929ec337a0e8c0a]::graphs::min_cut::test::test_min_cut_txt_graph [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:395:14 [INFO] [stdout] 26: 0x60a70b7bcb87 - csx3[e929ec337a0e8c0a]::graphs::min_cut::test::test_min_cut_txt_graph::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:385:32 [INFO] [stdout] 27: 0x60a70b7e4126 - >::call_once [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 28: 0x60a70b7efb5b - core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String> as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 29: 0x60a70b7efb5b - test[30224e0cb089acd2]::__rust_begin_short_backtrace::, fn() -> core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String>> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:663:18 [INFO] [stdout] 30: 0x60a70b7fc3ba - test[30224e0cb089acd2]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:686:74 [INFO] [stdout] 31: 0x60a70b7fc3ba - as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 32: 0x60a70b7fc3ba - std[3f03f8b59f91bef1]::panicking::catch_unwind::do_call::, core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String>> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:581:40 [INFO] [stdout] 33: 0x60a70b7fc3ba - std[3f03f8b59f91bef1]::panicking::catch_unwind::, core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:544:19 [INFO] [stdout] 34: 0x60a70b7fc3ba - std[3f03f8b59f91bef1]::panic::catch_unwind::, core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String>> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x60a70b7fc3ba - test[30224e0cb089acd2]::run_test_in_process [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:686:27 [INFO] [stdout] 36: 0x60a70b7fc3ba - test[30224e0cb089acd2]::run_test::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:607:43 [INFO] [stdout] 37: 0x60a70b7f6884 - test[30224e0cb089acd2]::run_test::{closure#1} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:637:41 [INFO] [stdout] 38: 0x60a70b7f6884 - std[3f03f8b59f91bef1]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 39: 0x60a70b7feeb2 - std[3f03f8b59f91bef1]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 40: 0x60a70b7feeb2 - ::{closure#1}::{closure#0}> as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 41: 0x60a70b7feeb2 - std[3f03f8b59f91bef1]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:581:40 [INFO] [stdout] 42: 0x60a70b7feeb2 - std[3f03f8b59f91bef1]::panicking::catch_unwind::<(), core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:544:19 [INFO] [stdout] 43: 0x60a70b7feeb2 - std[3f03f8b59f91bef1]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panic.rs:359:14 [INFO] [stdout] 44: 0x60a70b7feeb2 - std[3f03f8b59f91bef1]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 45: 0x60a70b7feeb2 - ::{closure#1} as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 46: 0x60a70b89f3df - + core[585f66e14d78f9ba]::marker::Send> as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/alloc/src/boxed.rs:2206:9 [INFO] [stdout] 47: 0x60a70b89f3df - ::new::thread_start [INFO] [stdout] at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/thread/unix.rs:119:17 [INFO] [stdout] 48: 0x7050b5f37aa4 - [INFO] [stdout] 49: 0x7050b5fc4a64 - clone [INFO] [stdout] 50: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] graphs::min_cut::test::test_min_cut_txt_graph [INFO] [stdout] [INFO] [stdout] test result: FAILED. 55 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 14.39s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "0b59f3be696fa9bce8df8c0f00b0b171f34c3c731b29190d31fb213e2cedf4e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b59f3be696fa9bce8df8c0f00b0b171f34c3c731b29190d31fb213e2cedf4e1", kill_on_drop: false }` [INFO] [stdout] 0b59f3be696fa9bce8df8c0f00b0b171f34c3c731b29190d31fb213e2cedf4e1