[INFO] cloning repository https://github.com/gvelim/CSX0003RUST [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gvelim/CSX0003RUST" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgvelim%2FCSX0003RUST", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgvelim%2FCSX0003RUST'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 71e39cb5eeab7153d5c25340fd2cf404b5b7e5ed [INFO] testing gvelim/CSX0003RUST against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgvelim%2FCSX0003RUST" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gvelim/CSX0003RUST [INFO] finished tweaking git repo https://github.com/gvelim/CSX0003RUST [INFO] tweaked toml for git repo https://github.com/gvelim/CSX0003RUST written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gvelim/CSX0003RUST on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "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" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2dab515a0e7d32a03b41cfaafb3b09f4a6b05fc9dbfce77b0a1905dc36074a1b [INFO] running `Command { std: "docker" "start" "-a" "2dab515a0e7d32a03b41cfaafb3b09f4a6b05fc9dbfce77b0a1905dc36074a1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2dab515a0e7d32a03b41cfaafb3b09f4a6b05fc9dbfce77b0a1905dc36074a1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2dab515a0e7d32a03b41cfaafb3b09f4a6b05fc9dbfce77b0a1905dc36074a1b", kill_on_drop: false }` [INFO] [stdout] 2dab515a0e7d32a03b41cfaafb3b09f4a6b05fc9dbfce77b0a1905dc36074a1b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] ae49804fc5aaf18417fecf45dcb17bb57b98825800b1536453694bb965d4eafd [INFO] running `Command { std: "docker" "start" "-a" "ae49804fc5aaf18417fecf45dcb17bb57b98825800b1536453694bb965d4eafd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling hashbag v0.1.9 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling csx3 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `load_file_mst` is never used [INFO] [stdout] --> src/greedy/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Graph { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | fn load_file_mst(&mut self, filename: &str) -> &mut Graph { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MinimumSpanningTree` is never used [INFO] [stdout] --> src/greedy/mst.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait MinimumSpanningTree { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClusterSet` is never constructed [INFO] [stdout] --> src/greedy/cluster.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ClusterSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `spacing` and `crossing_edges` are never used [INFO] [stdout] --> src/greedy/cluster.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ClusterSet { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | fn spacing(&self) -> Edge { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn crossing_edges(&self) -> BinaryHeap{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Clustering` is never used [INFO] [stdout] --> src/greedy/cluster.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | trait Clustering { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WIS` is never constructed [INFO] [stdout] --> src/dp/wis.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct WIS<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dp/wis.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl WIS<'_> { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 10 | fn recursive(set: &[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn new(set: &[usize]) -> WIS { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn weight(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn elements(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn positions_in_set(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn to_binary_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn parse_graph(filename: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WISElemIter` is never constructed [INFO] [stdout] --> src/dp/wis.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | struct WISElemIter<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Object` is never constructed [INFO] [stdout] --> src/dp/knap.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Object { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KnapSack` is never constructed [INFO] [stdout] --> src/dp/knap.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct KnapSack<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `positions`, `elements`, `max_value`, and `parse` are never used [INFO] [stdout] --> src/dp/knap.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl KnapSack<'_> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn positions(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn elements(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn max_value(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn parse(input: &str) -> Result<(usize,Vec),ParseIntError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Coins` is never constructed [INFO] [stdout] --> src/dp/coin.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | struct Coins { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `combinations`, `iterative`, `get_coins_num`, `coins`, and `recursive` are never used [INFO] [stdout] --> src/dp/coin.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl Coins { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 68 | fn combinations(&mut self, sum: usize, coins:&[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn iterative(sum: usize, coins:&[usize]) -> Coins { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn get_coins_num(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn coins(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn recursive(&mut self, sum: usize, coins:&[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CoinsIter` is never constructed [INFO] [stdout] --> src/dp/coin.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | struct CoinsIter<'a > { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dp/coin.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 140 | impl CoinsIter<'_> { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 141 | fn new(coins:&Coins) -> CoinsIter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SquareSum` is never constructed [INFO] [stdout] --> src/dp/path.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct SquareSum<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `path`, and `sum` are never used [INFO] [stdout] --> src/dp/path.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl SquareSum<'_> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 29 | fn new(path: &[Vec]) -> SquareSum { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn path(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn sum(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SquareSumIter` is never constructed [INFO] [stdout] --> src/dp/path.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct SquareSumIter<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dp/path.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl<'a> SquareSumIter<'a> { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 55 | fn new(ss:&'a SquareSum<'a>) -> SquareSumIter<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/trees/mod.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn iter(&self) -> TreeIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 45 | pub fn iter(&self) -> TreeIter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linkedlists/mod.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn iter(&self) -> ListIterByRef { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn iter(&self) -> ListIterByRef<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/merge/mod.rs:84:62 [INFO] [stdout] | [INFO] [stdout] 84 | fn merge_lazy<'a>(&'a mut self, s:&'a mut[T]) -> (usize, VirtualSlice); [INFO] [stdout] | -- -- ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 84 | fn merge_lazy<'a>(&'a mut self, s:&'a mut[T]) -> (usize, VirtualSlice<'a, T>); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/merge/mod.rs:109:64 [INFO] [stdout] | [INFO] [stdout] 109 | fn merge_lazy<'a>(&'a mut self, s: &'a mut [T]) -> (usize, VirtualSlice) { [INFO] [stdout] | -- -- ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 109 | fn merge_lazy<'a>(&'a mut self, s: &'a mut [T]) -> (usize, VirtualSlice<'a, T>) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/graphs/min_cut.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn iter(&self) -> SuperNodeIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 131 | pub fn iter(&self) -> SuperNodeIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/wis.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | fn new(set: &[usize]) -> WIS { [INFO] [stdout] | ^^^^^^^^ ^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 24 | fn new(set: &[usize]) -> WIS<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/knap.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 23 | fn new(list: &[Object], capacity: usize ) -> KnapSack<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/coin.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | fn new(coins:&Coins) -> CoinsIter { [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 141 | fn new(coins:&Coins) -> CoinsIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dp/path.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | fn new(path: &[Vec]) -> SquareSum { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 29 | fn new(path: &[Vec]) -> SquareSum<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_subsequence_v1` is never used [INFO] [stdout] --> src/bin/leet.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn is_subsequence_v1(s: &str, t: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_subsequence_v2` is never used [INFO] [stdout] --> src/bin/leet.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn is_subsequence_v2(s: &str, t: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_matching_subseq` is never used [INFO] [stdout] --> src/bin/leet.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn num_matching_subseq(s: &str, words: &[&str]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.39s [INFO] running `Command { std: "docker" "inspect" "ae49804fc5aaf18417fecf45dcb17bb57b98825800b1536453694bb965d4eafd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae49804fc5aaf18417fecf45dcb17bb57b98825800b1536453694bb965d4eafd", kill_on_drop: false }` [INFO] [stdout] ae49804fc5aaf18417fecf45dcb17bb57b98825800b1536453694bb965d4eafd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] ae634b9a7ac10ceab52c00991c7c1037740e382d9fffbdfbfa2ff383f61544fc [INFO] running `Command { std: "docker" "start" "-a" "ae634b9a7ac10ceab52c00991c7c1037740e382d9fffbdfbfa2ff383f61544fc", 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] [stderr] Compiling csx3 v0.1.0 (/opt/rustwide/workdir) [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: 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.96s [INFO] running `Command { std: "docker" "inspect" "ae634b9a7ac10ceab52c00991c7c1037740e382d9fffbdfbfa2ff383f61544fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae634b9a7ac10ceab52c00991c7c1037740e382d9fffbdfbfa2ff383f61544fc", kill_on_drop: false }` [INFO] [stdout] ae634b9a7ac10ceab52c00991c7c1037740e382d9fffbdfbfa2ff383f61544fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 762ecf6940d735091363b7af735f812edc22b056f251a8b87705e697f4963c5e [INFO] running `Command { std: "docker" "start" "-a" "762ecf6940d735091363b7af735f812edc22b056f251a8b87705e697f4963c5e", 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.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/build/csx3/5879fc15936f2859/deps/csx3-5879fc15936f2859) [INFO] [stdout] [INFO] [stdout] running 56 tests [INFO] [stdout] test dp::coin::test::test_combinations ... ok [INFO] [stdout] test dp::wis::test::test_recursive ... ok [INFO] [stdout] test dp::wis::test::test_wis ... ok [INFO] [stdout] test dp::coin::test::test_coins ... ok [INFO] [stdout] test graphs::path_search::test::test_path_search_small_graph ... ok [INFO] [stdout] test dp::path::test::test_max_sum_of_squares ... ok [INFO] [stdout] test graphs::scc::test::test_topological_sort ... ok [INFO] [stdout] test hash_heap::test::test_2_sum ... ok [INFO] [stdout] test greedy::test::test_file_load_edge_by_cost ... ok [INFO] [stdout] test hash_heap::test::test_2_sum_all ... ok [INFO] [stdout] test linkedlists::tests::test_from_iter ... ok [INFO] [stdout] test linkedlists::tests::test_iter ... 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 dp::wis::test::test_parse ... ok [INFO] [stdout] test linkedlists::tests::test_pop_first ... ok [INFO] [stdout] test linkedlists::tests::test_push_last ... ok [INFO] [stdout] test linkedlists::tests::test_push_first ... ok [INFO] [stdout] test linkedlists::tests::test_pop_push_mixed ... ok [INFO] [stdout] test merge::test::test_merge_mut ... ok [INFO] [stdout] test dp::knap::test::test_knapsack ... ok [INFO] [stdout] test merge::test::test_merge_mut_adjacent_fast ... ok [INFO] [stdout] test merge::test::test_merge ... 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 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_swap_shallow ... ok [INFO] [stdout] test select::test::test_deterministic_selection ... ok [INFO] [stdout] test linkedlists::tests::test_into_iter ... ok [INFO] [stdout] test select::test::test_find_median ... ok [INFO] [stdout] test select::test::test_random_selection ... ok [INFO] [stdout] test sort::merge::test::test_merge_sort_mut ... ok [INFO] [stdout] test sort::count::test::test_count_sort ... ok [INFO] [stdout] test greedy::mst::test::test_mst_prim ... ok [INFO] [stdout] test sort::merge::test::test_merge_sort_mut_adjacent ... 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 merge::test::test_merge_mut_adjacent ... ok [INFO] [stdout] test sort::quick::test::test_partition_at_index ... ok [INFO] [stdout] test graphs::min_cut::test::test_min_cut ... ok [INFO] [stdout] test graphs::path_search::test::test_path_search_large_graph ... ok [INFO] [stdout] test greedy::mst::test::test_mst_kruska ... ok [INFO] [stdout] test graphs::path_search::test::test_path_shortest_large_graph ... 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 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 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(1, N(3)), E(3, N(1)), E(5, N(3)), E(3, N(5))} [INFO] [stdout] -------------------- [INFO] [stdout] Run Iterations: 100 [INFO] [stdout] (100)(0.180) Min Cut !! => 18 [INFO] [stdout] (97)(0.120) Min Cut !! => 12 [INFO] [stdout] >> Min-cut: {E(16, N(13)), E(13, N(3)), E(13, N(24)), E(11, N(13)), E(24, N(13)), E(13, N(21)), E(13, N(11)), E(13, N(16)), E(13, N(20)), E(20, N(13)), E(3, N(13)), E(21, N(13))} [INFO] [stdout] -------------------- [INFO] [stdout] Run Iterations: 450 [INFO] [stdout] (450)(0.120) Min Cut !! => 54 [INFO] [stdout] (449)(0.089) Min Cut !! => 40 [INFO] [stdout] (445)(0.080) Min Cut !! => 36 [INFO] [stdout] >> Min-cut: {E(24, N(7)), E(22, N(7)), E(9, N(7)), E(7, N(9)), E(7, N(33)), E(75, N(7)), E(42, N(7)), E(7, N(18)), E(7, N(12)), E(7, N(25)), E(7, N(57)), E(55, N(7)), E(7, N(22)), E(7, N(39)), E(69, N(7)), E(40, N(7)), E(7, N(24)), E(50, N(7)), E(7, N(55)), E(7, N(26)), E(18, N(7)), E(25, N(7)), E(7, N(16)), E(7, N(69)), E(26, N(7)), E(7, N(42)), E(12, N(7)), E(57, N(7)), E(33, N(7)), E(7, N(50)), E(7, N(75)), E(39, N(7)), E(7, N(41)), E(7, N(40)), E(41, N(7)), E(16, N(7))} [INFO] [stdout] [INFO] [stdout] thread 'graphs::min_cut::test::test_min_cut_txt_graph' (34) panicked at src/graphs/min_cut.rs:401:17: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: 36 [INFO] [stdout] right: 32 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x57ae01881c92 - std[840933623431fd06]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x57ae01881c92 - std[840933623431fd06]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x57ae01881c92 - std[840933623431fd06]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x57ae01881c92 - <::print::DisplayBacktrace as core[8f93d80df273fe75]::fmt::Display>::fmt [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x57ae0189783a - ::fmt [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x57ae0189783a - core[8f93d80df273fe75]::fmt::write [INFO] [stdout] 6: 0x57ae01886ac6 - std[840933623431fd06]::io::default_write_fmt::> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x57ae01886ac6 - as std[840933623431fd06]::io::Write>::write_fmt [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x57ae0185fdbf - ::print [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x57ae0185fdbf - std[840933623431fd06]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x57ae01879c29 - std[840933623431fd06]::panicking::default_hook [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x57ae017dd4be - core[8f93d80df273fe75]::ops::function::Fn<(&'a std[840933623431fd06]::panic::PanicHookInfo<'b>,), Output = ()> + core[8f93d80df273fe75]::marker::Sync + core[8f93d80df273fe75]::marker::Send> as core[8f93d80df273fe75]::ops::function::Fn<(&std[840933623431fd06]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 12: 0x57ae017dd4be - test[2f1252070343a163]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x57ae01879de2 - core[8f93d80df273fe75]::ops::function::Fn<(&'a std[840933623431fd06]::panic::PanicHookInfo<'b>,), Output = ()> + core[8f93d80df273fe75]::marker::Sync + core[8f93d80df273fe75]::marker::Send> as core[8f93d80df273fe75]::ops::function::Fn<(&std[840933623431fd06]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 14: 0x57ae01879de2 - std[840933623431fd06]::panicking::panic_with_hook [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x57ae0185fe78 - std[840933623431fd06]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x57ae01857749 - std[840933623431fd06]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x57ae01860ccd - __rustc[5b4a0c6d8cc4a177]::rust_begin_unwind [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x57ae01897f4c - core[8f93d80df273fe75]::panicking::panic_fmt [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x57ae01897e03 - core[8f93d80df273fe75]::panicking::assert_failed_inner [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x57ae0189370d - core[8f93d80df273fe75]::panicking::assert_failed:: [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x57ae0177473a - csx3[ba62b10865765b7c]::graphs::min_cut::test::test_min_cut_txt_graph::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:401:17 [INFO] [stdout] 22: 0x57ae017bf7ea - core[8f93d80df273fe75]::iter::traits::iterator::Iterator::for_each::call::<(&str, usize), csx3[ba62b10865765b7c]::graphs::min_cut::test::test_min_cut_txt_graph::{closure#0}>::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/iter/traits/iterator.rs:829:29 [INFO] [stdout] 23: 0x57ae01759559 - as core[8f93d80df273fe75]::iter::traits::iterator::Iterator>::fold::<(), core[8f93d80df273fe75]::iter::traits::iterator::Iterator::for_each::call<(&str, usize), csx3[ba62b10865765b7c]::graphs::min_cut::test::test_min_cut_txt_graph::{closure#0}>::{closure#0}> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/alloc/src/vec/into_iter.rs:329:25 [INFO] [stdout] 24: 0x57ae0175a026 - as core[8f93d80df273fe75]::iter::traits::iterator::Iterator>::for_each:: [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/iter/traits/iterator.rs:832:14 [INFO] [stdout] 25: 0x57ae01778291 - csx3[ba62b10865765b7c]::graphs::min_cut::test::test_min_cut_txt_graph [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:395:14 [INFO] [stdout] 26: 0x57ae01774447 - csx3[ba62b10865765b7c]::graphs::min_cut::test::test_min_cut_txt_graph::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/graphs/min_cut.rs:385:32 [INFO] [stdout] 27: 0x57ae017a1f76 - >::call_once [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 28: 0x57ae017d186b - core[8f93d80df273fe75]::result::Result<(), alloc[40b2bae28975ac47]::string::String> as core[8f93d80df273fe75]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 29: 0x57ae017d186b - test[2f1252070343a163]::__rust_begin_short_backtrace::, fn() -> core[8f93d80df273fe75]::result::Result<(), alloc[40b2bae28975ac47]::string::String>> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:663:18 [INFO] [stdout] 30: 0x57ae017de0ca - test[2f1252070343a163]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:686:74 [INFO] [stdout] 31: 0x57ae017de0ca - as core[8f93d80df273fe75]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 32: 0x57ae017de0ca - std[840933623431fd06]::panicking::catch_unwind::do_call::, core[8f93d80df273fe75]::result::Result<(), alloc[40b2bae28975ac47]::string::String>> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:581:40 [INFO] [stdout] 33: 0x57ae017de0ca - std[840933623431fd06]::panicking::catch_unwind::, core[8f93d80df273fe75]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:544:19 [INFO] [stdout] 34: 0x57ae017de0ca - std[840933623431fd06]::panic::catch_unwind::, core[8f93d80df273fe75]::result::Result<(), alloc[40b2bae28975ac47]::string::String>> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x57ae017de0ca - test[2f1252070343a163]::run_test_in_process [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:686:27 [INFO] [stdout] 36: 0x57ae017de0ca - test[2f1252070343a163]::run_test::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:607:43 [INFO] [stdout] 37: 0x57ae017d8594 - test[2f1252070343a163]::run_test::{closure#1} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:637:41 [INFO] [stdout] 38: 0x57ae017d8594 - std[840933623431fd06]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 39: 0x57ae017e0bc2 - std[840933623431fd06]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 40: 0x57ae017e0bc2 - ::{closure#1}::{closure#0}> as core[8f93d80df273fe75]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 41: 0x57ae017e0bc2 - std[840933623431fd06]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:581:40 [INFO] [stdout] 42: 0x57ae017e0bc2 - std[840933623431fd06]::panicking::catch_unwind::<(), core[8f93d80df273fe75]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:544:19 [INFO] [stdout] 43: 0x57ae017e0bc2 - std[840933623431fd06]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panic.rs:359:14 [INFO] [stdout] 44: 0x57ae017e0bc2 - std[840933623431fd06]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 45: 0x57ae017e0bc2 - ::{closure#1} as core[8f93d80df273fe75]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 46: 0x57ae0188119f - + core[8f93d80df273fe75]::marker::Send> as core[8f93d80df273fe75]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/alloc/src/boxed.rs:2206:9 [INFO] [stdout] 47: 0x57ae0188119f - ::new::thread_start [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/thread/unix.rs:119:17 [INFO] [stdout] 48: 0x7831495a0aa4 - [INFO] [stdout] 49: 0x78314962da64 - 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.88s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "762ecf6940d735091363b7af735f812edc22b056f251a8b87705e697f4963c5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "762ecf6940d735091363b7af735f812edc22b056f251a8b87705e697f4963c5e", kill_on_drop: false }` [INFO] [stdout] 762ecf6940d735091363b7af735f812edc22b056f251a8b87705e697f4963c5e