[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#e9385f9eea0221ef295a188d49d16f8f5189abf1 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgvelim%2FCSX0003RUST" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-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-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gvelim/CSX0003RUST on toolchain e9385f9eea0221ef295a188d49d16f8f5189abf1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "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] [stderr] Downloaded libc v0.2.112 [INFO] [stderr] Downloaded ppv-lite86 v0.2.15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ecf51ce00bbaf6b2fb1e4b6375969c1d8db5435d3a0c05ae1a22db1c5d9e8937 [INFO] running `Command { std: "docker" "start" "-a" "ecf51ce00bbaf6b2fb1e4b6375969c1d8db5435d3a0c05ae1a22db1c5d9e8937", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ecf51ce00bbaf6b2fb1e4b6375969c1d8db5435d3a0c05ae1a22db1c5d9e8937", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecf51ce00bbaf6b2fb1e4b6375969c1d8db5435d3a0c05ae1a22db1c5d9e8937", kill_on_drop: false }` [INFO] [stdout] ecf51ce00bbaf6b2fb1e4b6375969c1d8db5435d3a0c05ae1a22db1c5d9e8937 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] febdcd0645c000f029390aa13810f350427f30a01ef27f170505dda2b9bdaf94 [INFO] running `Command { std: "docker" "start" "-a" "febdcd0645c000f029390aa13810f350427f30a01ef27f170505dda2b9bdaf94", 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.03s [INFO] running `Command { std: "docker" "inspect" "febdcd0645c000f029390aa13810f350427f30a01ef27f170505dda2b9bdaf94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "febdcd0645c000f029390aa13810f350427f30a01ef27f170505dda2b9bdaf94", kill_on_drop: false }` [INFO] [stdout] febdcd0645c000f029390aa13810f350427f30a01ef27f170505dda2b9bdaf94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86a0b313634a9449b2654fc2641c820c9c15ea25534b7645a73f01fff62bbe6d [INFO] running `Command { std: "docker" "start" "-a" "86a0b313634a9449b2654fc2641c820c9c15ea25534b7645a73f01fff62bbe6d", 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] [stderr] Compiling csx3 v0.1.0 (/opt/rustwide/workdir) [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: 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.82s [INFO] running `Command { std: "docker" "inspect" "86a0b313634a9449b2654fc2641c820c9c15ea25534b7645a73f01fff62bbe6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86a0b313634a9449b2654fc2641c820c9c15ea25534b7645a73f01fff62bbe6d", kill_on_drop: false }` [INFO] [stdout] 86a0b313634a9449b2654fc2641c820c9c15ea25534b7645a73f01fff62bbe6d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1699b21b9427857ccc12ba4b681793ff6eed29bd6fa1a54b47e9b6a4018190de [INFO] running `Command { std: "docker" "start" "-a" "1699b21b9427857ccc12ba4b681793ff6eed29bd6fa1a54b47e9b6a4018190de", 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.06s [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_coins ... ok [INFO] [stdout] test dp::coin::test::test_combinations ... ok [INFO] [stdout] test dp::wis::test::test_parse ... ok [INFO] [stdout] test dp::wis::test::test_recursive ... ok [INFO] [stdout] test dp::path::test::test_max_sum_of_squares ... ok [INFO] [stdout] test dp::wis::test::test_wis ... ok [INFO] [stdout] test graphs::path_search::test::test_path_shortest_small_graph ... ok [INFO] [stdout] test graphs::path_search::test::test_path_search_small_graph ... ok [INFO] [stdout] test hash_heap::test::test_2_sum ... ok [INFO] [stdout] test linkedlists::tests::test_from_iter ... 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 graphs::scc::test::test_topological_sort ... ok [INFO] [stdout] test hash_heap::test::test_2_sum_all ... 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 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 linkedlists::tests::test_push_first ... ok [INFO] [stdout] test merge::test::test_merge_shallow ... 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 greedy::mst::test::test_mst_prim ... 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_swap_shallow ... ok [INFO] [stdout] test select::test::test_deterministic_selection ... ok [INFO] [stdout] test select::test::test_find_median ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_merge ... ok [INFO] [stdout] test sort::count::test::test_count_sort ... ok [INFO] [stdout] test greedy::mst::test::test_mst_kruska ... ok [INFO] [stdout] test linkedlists::tests::test_push_last ... ok [INFO] [stdout] test merge::test::test_merge ... ok [INFO] [stdout] test select::test::test_random_selection ... ok [INFO] [stdout] test greedy::test::test_file_load_edge_by_cost ... 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 dp::knap::test::test_parse ... 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 sort::test::test_partition_at_index ... ok [INFO] [stdout] test trees::test::test_add_iter ... ok [INFO] [stdout] test graphs::path_search::test::test_path_shortest_large_graph ... ok [INFO] [stdout] test merge::vs::test::test_virtual_slice_adjacent_panic - should panic ... ok [INFO] [stdout] test merge::test::test_merge_mut_panic - should panic ... ok [INFO] [stdout] test graphs::min_cut::test::test_min_cut ... 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(3, N(1)), E(5, N(3)), E(1, N(3)), E(3, N(5))} [INFO] [stdout] -------------------- [INFO] [stdout] Run Iterations: 100 [INFO] [stdout] (100)(0.260) Min Cut !! => 26 [INFO] [stdout] (99)(0.180) Min Cut !! => 18 [INFO] [stdout] (95)(0.120) Min Cut !! => 12 [INFO] [stdout] >> Min-cut: {E(13, N(11)), E(13, N(20)), E(13, N(24)), E(24, N(13)), E(13, N(16)), E(20, N(13)), E(16, N(13)), E(3, N(13)), E(13, N(21)), E(21, N(13)), E(13, N(3)), E(11, N(13))} [INFO] [stdout] -------------------- [INFO] [stdout] Run Iterations: 450 [INFO] [stdout] (450)(0.080) Min Cut !! => 36 [INFO] [stdout] >> Min-cut: {E(14, N(61)), E(61, N(24)), E(61, N(37)), E(3, N(61)), E(61, N(13)), E(61, N(4)), E(61, N(75)), E(4, N(61)), E(22, N(61)), E(33, N(61)), E(37, N(61)), E(61, N(62)), E(13, N(61)), E(61, N(54)), E(54, N(61)), E(72, N(61)), E(66, N(61)), E(61, N(43)), E(61, N(33)), E(61, N(52)), E(9, N(61)), E(61, N(72)), E(61, N(14)), E(61, N(3)), E(61, N(55)), E(55, N(61)), E(61, N(66)), E(15, N(61)), E(24, N(61)), E(75, N(61)), E(61, N(9)), E(62, N(61)), E(61, N(15)), E(61, N(22)), E(43, N(61)), E(52, N(61))} [INFO] [stdout] [INFO] [stdout] thread 'graphs::min_cut::test::test_min_cut_txt_graph' (33) 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: 0x5b4592639aa2 - std::backtrace_rs::backtrace::libunwind::trace::h66a2a7c2ae287f78 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5b4592639aa2 - std::backtrace_rs::backtrace::trace_unsynchronized::hfc2e0cbc9b584495 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5b4592639aa2 - std::sys::backtrace::_print_fmt::h118f0de0547bd6e5 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5b4592639aa2 - ::fmt::h4a7ebf3c97b63e54 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5b459264af1f - core::fmt::rt::Argument::fmt::h614abe7b62e687bb [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5b459264af1f - core::fmt::write::h5e5759cada453e98 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x5b4592606b41 - std::io::default_write_fmt::h07c0e0cd2ff3d760 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5b4592606b41 - std::io::Write::write_fmt::he7256dac030cd662 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x5b4592612c12 - std::sys::backtrace::BacktraceLock::print::haede8464af6f6593 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x5b459261775f - std::panicking::default_hook::{{closure}}::hd1d459f3747276de [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x5b45926175f1 - std::panicking::default_hook::h4615f5c23d4bd826 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5b459259edee - as core::ops::function::Fn>::call::h3f49114c7e9679ef [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/alloc/src/boxed.rs:1987:9 [INFO] [stdout] 12: 0x5b459259edee - test::test_main_with_exit_callback::{{closure}}::h4d67369e3cd340e4 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x5b4592617e1f - as core::ops::function::Fn>::call::h2af8f746f7568e27 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/alloc/src/boxed.rs:1987:9 [INFO] [stdout] 14: 0x5b4592617e1f - std::panicking::panic_with_hook::h290022751dfbc99c [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x5b4592617c7a - std::panicking::panic_handler::{{closure}}::h8a82486ef1115454 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x5b4592612d49 - std::sys::backtrace::__rust_end_short_backtrace::h24c7668dbf64a695 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x5b45925fa88d - __rustc[c97015d5850a580e]::rust_begin_unwind [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x5b4592652ec0 - core::panicking::panic_fmt::h28e12f8802cd0928 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/panicking.rs:78:14 [INFO] [stdout] 19: 0x5b4592652cc3 - core::panicking::assert_failed_inner::hc3fc88da941f8a4b [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/panicking.rs:442:17 [INFO] [stdout] 20: 0x5b4592652b07 - core::panicking::assert_failed::hcaa17260e48091fa [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/panicking.rs:397:5 [INFO] [stdout] 21: 0x5b4592547694 - csx3::graphs::min_cut::test::test_min_cut_txt_graph::{{closure}}::he5911d3307d23092 [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:401:17 [INFO] [stdout] 22: 0x5b459250143a - core::iter::traits::iterator::Iterator::for_each::call::{{closure}}::h59c4fbdb3a28dc09 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/iter/traits/iterator.rs:825:29 [INFO] [stdout] 23: 0x5b459255d2e8 - as core::iter::traits::iterator::Iterator>::fold::hc16d74999dfeeb40 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/alloc/src/vec/into_iter.rs:323:25 [INFO] [stdout] 24: 0x5b459255fdd6 - core::iter::traits::iterator::Iterator::for_each::h31c19becbdb2b33c [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/iter/traits/iterator.rs:828:14 [INFO] [stdout] 25: 0x5b4592547361 - csx3::graphs::min_cut::test::test_min_cut_txt_graph::h633ca1fabb28d828 [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:395:14 [INFO] [stdout] 26: 0x5b4592547397 - csx3::graphs::min_cut::test::test_min_cut_txt_graph::{{closure}}::h971481482fe166eb [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:385:32 [INFO] [stdout] 27: 0x5b4592516286 - core::ops::function::FnOnce::call_once::h8283f7025f25f36c [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 28: 0x5b459259ec3b - core::ops::function::FnOnce::call_once::hdefe93407160c395 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 29: 0x5b459259ec3b - test::__rust_begin_short_backtrace::hdfcc8fd2fe67da7a [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/test/src/lib.rs:663:18 [INFO] [stdout] 30: 0x5b45925b47f5 - test::run_test_in_process::{{closure}}::h320bae9b1003112f [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/test/src/lib.rs:686:74 [INFO] [stdout] 31: 0x5b45925b47f5 - as core::ops::function::FnOnce<()>>::call_once::h90f8f831719f5411 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 32: 0x5b45925b47f5 - std::panicking::catch_unwind::do_call::h9f251d79dbf7d6ed [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/panicking.rs:590:40 [INFO] [stdout] 33: 0x5b45925b47f5 - std::panicking::catch_unwind::h097a5a3f87c04a25 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/panicking.rs:553:19 [INFO] [stdout] 34: 0x5b45925b47f5 - std::panic::catch_unwind::h70316c014b05855b [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x5b45925b47f5 - test::run_test_in_process::h023ca635764dfe30 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/test/src/lib.rs:686:27 [INFO] [stdout] 36: 0x5b45925b47f5 - test::run_test::{{closure}}::h59932d18dfba4366 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/test/src/lib.rs:607:43 [INFO] [stdout] 37: 0x5b459258afd4 - test::run_test::{{closure}}::ha2e96c73f8625e3a [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/test/src/lib.rs:637:41 [INFO] [stdout] 38: 0x5b459258afd4 - std::sys::backtrace::__rust_begin_short_backtrace::h1b37e5c0fca27c18 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 39: 0x5b459258e8fa - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h8ac0d86b7db5ca42 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 40: 0x5b459258e8fa - as core::ops::function::FnOnce<()>>::call_once::h2f0a63b3b36bb8fd [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 41: 0x5b459258e8fa - std::panicking::catch_unwind::do_call::h16004b52a84b801e [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/panicking.rs:590:40 [INFO] [stdout] 42: 0x5b459258e8fa - std::panicking::catch_unwind::hd4141c774c700dce [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/panicking.rs:553:19 [INFO] [stdout] 43: 0x5b459258e8fa - std::panic::catch_unwind::h8a9749a99926eb13 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/panic.rs:359:14 [INFO] [stdout] 44: 0x5b459258e8fa - std::thread::Builder::spawn_unchecked_::{{closure}}::habf5065a7fc58dc1 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 45: 0x5b459258e8fa - core::ops::function::FnOnce::call_once{{vtable.shim}}::h557ae74e20db8c0e [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 46: 0x5b459260de8f - as core::ops::function::FnOnce>::call_once::h42e3c3a0d92a01a7 [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/alloc/src/boxed.rs:1973:9 [INFO] [stdout] 47: 0x5b459260de8f - std::sys::thread::unix::Thread::new::thread_start::hbfb8ed69a8a2081e [INFO] [stdout] at /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 48: 0x7ccbcbfc3aa4 - [INFO] [stdout] 49: 0x7ccbcc050a34 - 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.38s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "1699b21b9427857ccc12ba4b681793ff6eed29bd6fa1a54b47e9b6a4018190de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1699b21b9427857ccc12ba4b681793ff6eed29bd6fa1a54b47e9b6a4018190de", kill_on_drop: false }` [INFO] [stdout] 1699b21b9427857ccc12ba4b681793ff6eed29bd6fa1a54b47e9b6a4018190de