[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 master#160e7623e8cbbf1feab2b6e2a24733a98c7bde9c for pr-145628 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgvelim%2FCSX0003RUST" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/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-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gvelim/CSX0003RUST on toolchain 160e7623e8cbbf1feab2b6e2a24733a98c7bde9c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hashbag v0.1.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7295e565aff787fca86efc87e66a533347c74b812655d1e984b82d915926339e [INFO] running `Command { std: "docker" "start" "-a" "7295e565aff787fca86efc87e66a533347c74b812655d1e984b82d915926339e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7295e565aff787fca86efc87e66a533347c74b812655d1e984b82d915926339e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7295e565aff787fca86efc87e66a533347c74b812655d1e984b82d915926339e", kill_on_drop: false }` [INFO] [stdout] 7295e565aff787fca86efc87e66a533347c74b812655d1e984b82d915926339e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c6b64af00c143e1f5200dd60d67cf554a411e82ac8e7f3f4b1fd338afc73af6 [INFO] running `Command { std: "docker" "start" "-a" "9c6b64af00c143e1f5200dd60d67cf554a411e82ac8e7f3f4b1fd338afc73af6", 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 5.86s [INFO] running `Command { std: "docker" "inspect" "9c6b64af00c143e1f5200dd60d67cf554a411e82ac8e7f3f4b1fd338afc73af6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c6b64af00c143e1f5200dd60d67cf554a411e82ac8e7f3f4b1fd338afc73af6", kill_on_drop: false }` [INFO] [stdout] 9c6b64af00c143e1f5200dd60d67cf554a411e82ac8e7f3f4b1fd338afc73af6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35b7823f4b489366c1c9d6acce6d0ef31de6c65d56279b2b96cc18e3ef589f9c [INFO] running `Command { std: "docker" "start" "-a" "35b7823f4b489366c1c9d6acce6d0ef31de6c65d56279b2b96cc18e3ef589f9c", 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 3.10s [INFO] running `Command { std: "docker" "inspect" "35b7823f4b489366c1c9d6acce6d0ef31de6c65d56279b2b96cc18e3ef589f9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35b7823f4b489366c1c9d6acce6d0ef31de6c65d56279b2b96cc18e3ef589f9c", kill_on_drop: false }` [INFO] [stdout] 35b7823f4b489366c1c9d6acce6d0ef31de6c65d56279b2b96cc18e3ef589f9c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 82d0e5c40504344e0f5b9312cdbdeb067a07bd204dcc5986389694829cddf3f1 [INFO] running `Command { std: "docker" "start" "-a" "82d0e5c40504344e0f5b9312cdbdeb067a07bd204dcc5986389694829cddf3f1", 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.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/csx3-e99b1a0a10f34531) [INFO] [stdout] [INFO] [stdout] running 56 tests [INFO] [stdout] test dp::coin::test::test_combinations ... ok [INFO] [stdout] test dp::coin::test::test_coins ... ok [INFO] [stdout] test dp::path::test::test_max_sum_of_squares ... ok [INFO] [stdout] test dp::wis::test::test_parse ... ok [INFO] [stdout] test dp::wis::test::test_recursive ... ok [INFO] [stdout] test dp::wis::test::test_wis ... ok [INFO] [stdout] test graphs::path_search::test::test_path_search_small_graph ... ok [INFO] [stdout] test dp::knap::test::test_parse ... ok [INFO] [stdout] test graphs::path_search::test::test_path_shortest_small_graph ... ok [INFO] [stdout] test graphs::scc::test::test_topological_sort ... ok [INFO] [stdout] test graphs::min_cut::test::test_min_cut ... ok [INFO] [stdout] test greedy::mst::test::test_mst_kruska ... ok [INFO] [stdout] test greedy::test::test_file_load_edge_by_cost ... ok [INFO] [stdout] test hash_heap::test::test_2_sum ... ok [INFO] [stdout] test hash_heap::test::test_2_sum_all ... ok [INFO] [stdout] test greedy::mst::test::test_mst_prim ... ok [INFO] [stdout] test graphs::path_search::test::test_path_search_large_graph ... ok [INFO] [stdout] test dp::knap::test::test_knapsack ... ok [INFO] [stdout] test linkedlists::tests::test_into_iter ... ok [INFO] [stdout] test linkedlists::tests::test_iter ... ok [INFO] [stdout] test linkedlists::tests::test_pop_first ... ok [INFO] [stdout] test linkedlists::tests::test_pop_push_mixed ... ok [INFO] [stdout] test linkedlists::tests::test_push_first ... ok [INFO] [stdout] test linkedlists::tests::test_from_iter ... 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 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 graphs::path_search::test::test_path_shortest_large_graph ... 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 merge::vs::test::test_virtual_slice_merge ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_merge_multiple ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_new_iter_swap ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_iter_mut_adjacent ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_swap_shallow ... ok [INFO] [stdout] test select::test::test_deterministic_selection ... ok [INFO] [stdout] test select::test::test_random_selection ... ok [INFO] [stdout] test sort::count::test::test_count_sort ... 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::merge::test::test_merge_sort_mut_adjacent ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_index_adjacent ... ok [INFO] [stdout] test sort::quick::test::test_partition_at_index ... ok [INFO] [stdout] test sort::quick::test::test_quick_sort ... ok [INFO] [stdout] test sort::test::test_partition_at_index ... ok [INFO] [stdout] test trees::test::test_add_iter ... 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.667) Min Cut !! => 8 [INFO] [stdout] (11)(0.333) Min Cut !! => 4 [INFO] [stdout] >> Min-cut: {E(5, N(6)), E(6, N(2)), E(6, N(5)), E(2, N(6))} [INFO] [stdout] -------------------- [INFO] [stdout] Run Iterations: 100 [INFO] [stdout] (100)(0.120) Min Cut !! => 12 [INFO] [stdout] >> Min-cut: {E(13, N(20)), E(11, N(13)), E(16, N(13)), E(13, N(16)), E(13, N(3)), E(24, N(13)), E(20, N(13)), E(13, N(21)), E(13, N(11)), E(21, N(13)), E(13, N(24)), E(3, N(13))} [INFO] [stdout] -------------------- [INFO] [stdout] Run Iterations: 450 [INFO] [stdout] (450)(0.431) Min Cut !! => 194 [INFO] [stdout] (449)(0.080) Min Cut !! => 36 [INFO] [stdout] >> Min-cut: {E(13, N(61)), E(61, N(75)), E(52, N(61)), E(61, N(37)), E(15, N(61)), E(61, N(43)), E(9, N(61)), E(61, N(52)), E(61, N(4)), E(61, N(54)), E(61, N(33)), E(54, N(61)), E(43, N(61)), E(61, N(14)), E(66, N(61)), E(75, N(61)), E(61, N(22)), E(22, N(61)), E(61, N(24)), E(62, N(61)), E(61, N(13)), E(61, N(9)), E(61, N(66)), E(14, N(61)), E(4, N(61)), E(24, N(61)), E(61, N(55)), E(33, N(61)), E(3, N(61)), E(61, N(15)), E(61, N(62)), E(55, N(61)), E(37, N(61)), E(72, N(61)), E(61, N(3)), E(61, N(72))} [INFO] [stdout] [INFO] [stdout] thread 'graphs::min_cut::test::test_min_cut_txt_graph' (25) 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: 0x5e69c3d0c452 - std::backtrace_rs::backtrace::libunwind::trace::hf3086ff3c8ddfec7 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5e69c3d0c452 - std::backtrace_rs::backtrace::trace_unsynchronized::h6caf11542219ebc3 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5e69c3d0c452 - std::sys::backtrace::_print_fmt::hfd9f352edf0ef63b [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5e69c3d0c452 - ::fmt::h746cb25d4c2f20bf [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5e69c3d1d7df - core::fmt::rt::Argument::fmt::h7e560d1a4260d0bd [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5e69c3d1d7df - core::fmt::write::h51c104753c8435b2 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x5e69c3cd9bb3 - std::io::default_write_fmt::h7681766be9629d2f [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5e69c3cd9bb3 - std::io::Write::write_fmt::h41771a141bf0adb2 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x5e69c3ce5bd2 - std::sys::backtrace::BacktraceLock::print::heee726a1c5b4a2c3 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x5e69c3cea5cf - std::panicking::default_hook::{{closure}}::h938489fbb79d30ee [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x5e69c3cea461 - std::panicking::default_hook::hf7e155db98319366 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5e69c3c7124e - as core::ops::function::Fn>::call::h8041688d09537997 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5e69c3c7124e - test::test_main_with_exit_callback::{{closure}}::hc8a7ea1f38432726 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x5e69c3ceac6e - as core::ops::function::Fn>::call::h688488cd0fff9b17 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x5e69c3ceac6e - std::panicking::panic_with_hook::h78bb7329978b77c8 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x5e69c3ceaa3a - std::panicking::panic_handler::{{closure}}::h306ab6080b8e304c [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x5e69c3ce5d09 - std::sys::backtrace::__rust_end_short_backtrace::hab10906eec9c5584 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x5e69c3ccd93d - __rustc[31cdaa5515be9d95]::rust_begin_unwind [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x5e69c3d25770 - core::panicking::panic_fmt::h8cb2938d8e2b0e7b [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x5e69c3d25573 - core::panicking::assert_failed_inner::h2f80963f12b08acb [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5e69c3d253b7 - core::panicking::assert_failed::h97ec267b603d1e5a [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5e69c3bd8414 - csx3::graphs::min_cut::test::test_min_cut_txt_graph::{{closure}}::ha78f3482e430c8dc [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:401:17 [INFO] [stdout] 22: 0x5e69c3c083ca - core::iter::traits::iterator::Iterator::for_each::call::{{closure}}::h214fad35a914910a [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/iter/traits/iterator.rs:824:29 [INFO] [stdout] 23: 0x5e69c3bffea8 - as core::iter::traits::iterator::Iterator>::fold::h7bafccb41d0f74a9 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/alloc/src/vec/into_iter.rs:323:25 [INFO] [stdout] 24: 0x5e69c3c031a6 - core::iter::traits::iterator::Iterator::for_each::ha65e31d80d2f4595 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/iter/traits/iterator.rs:827:14 [INFO] [stdout] 25: 0x5e69c3bd80e1 - csx3::graphs::min_cut::test::test_min_cut_txt_graph::h5fdad10fe275c106 [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:395:14 [INFO] [stdout] 26: 0x5e69c3bd8117 - csx3::graphs::min_cut::test::test_min_cut_txt_graph::{{closure}}::ha4695515a7304490 [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:385:32 [INFO] [stdout] 27: 0x5e69c3bd1586 - core::ops::function::FnOnce::call_once::hc04983b2cef9afd1 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x5e69c3c7100b - core::ops::function::FnOnce::call_once::ha1081c2f5558e6c0 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 29: 0x5e69c3c7100b - test::__rust_begin_short_backtrace::h42034e8abb013a4c [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:663:18 [INFO] [stdout] 30: 0x5e69c3c86b15 - test::run_test_in_process::{{closure}}::hf6d2134f58bf7650 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:686:74 [INFO] [stdout] 31: 0x5e69c3c86b15 - as core::ops::function::FnOnce<()>>::call_once::hecbf148a08d929b4 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 32: 0x5e69c3c86b15 - std::panicking::catch_unwind::do_call::hdd8f84f296c52439 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:590:40 [INFO] [stdout] 33: 0x5e69c3c86b15 - std::panicking::catch_unwind::h3fd77bcad74bf69c [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:553:19 [INFO] [stdout] 34: 0x5e69c3c86b15 - std::panic::catch_unwind::h512ad17f65705767 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x5e69c3c86b15 - test::run_test_in_process::h2b79c7cc828fafad [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:686:27 [INFO] [stdout] 36: 0x5e69c3c86b15 - test::run_test::{{closure}}::hc287323e9e7aa380 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:607:43 [INFO] [stdout] 37: 0x5e69c3c5d4e4 - test::run_test::{{closure}}::h26852bc3095664f0 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:637:41 [INFO] [stdout] 38: 0x5e69c3c5d4e4 - std::sys::backtrace::__rust_begin_short_backtrace::he88c7ba58706034f [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 39: 0x5e69c3c60d1a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hff63832735ca5300 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 40: 0x5e69c3c60d1a - as core::ops::function::FnOnce<()>>::call_once::h5618784f23b8bacb [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 41: 0x5e69c3c60d1a - std::panicking::catch_unwind::do_call::hd103d0697f7d2f72 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:590:40 [INFO] [stdout] 42: 0x5e69c3c60d1a - std::panicking::catch_unwind::h947b18413ee60fc2 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:553:19 [INFO] [stdout] 43: 0x5e69c3c60d1a - std::panic::catch_unwind::h51f47dbca8916fbf [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panic.rs:359:14 [INFO] [stdout] 44: 0x5e69c3c60d1a - std::thread::Builder::spawn_unchecked_::{{closure}}::h92bd4fc7ba1a8896 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 45: 0x5e69c3c60d1a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1edf6ba5edb7a202 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 46: 0x5e69c3cdff8f - as core::ops::function::FnOnce>::call_once::h6765fcdde4c5daa4 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 47: 0x5e69c3cdff8f - std::sys::pal::unix::thread::Thread::new::thread_start::h448c4dadc391362b [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 48: 0x77ca5bfcdaa4 - [INFO] [stdout] 49: 0x77ca5c05aa34 - 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 19.06s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "82d0e5c40504344e0f5b9312cdbdeb067a07bd204dcc5986389694829cddf3f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82d0e5c40504344e0f5b9312cdbdeb067a07bd204dcc5986389694829cddf3f1", kill_on_drop: false }` [INFO] [stdout] 82d0e5c40504344e0f5b9312cdbdeb067a07bd204dcc5986389694829cddf3f1