[INFO] cloning repository https://github.com/et4te/swim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/et4te/swim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fet4te%2Fswim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fet4te%2Fswim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d3c9b088fc9bbcd921484a755feddf6b36fa9966 [INFO] testing et4te/swim against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fet4te%2Fswim" "/workspace/builds/worker-74/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-74/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/et4te/swim on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/et4te/swim [INFO] finished tweaking git repo https://github.com/et4te/swim [INFO] tweaked toml for git repo https://github.com/et4te/swim written to /workspace/builds/worker-74/source/Cargo.toml [INFO] crate git repo https://github.com/et4te/swim already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6bc30231fc055bf6b65f19e509371901c7cd7377a5ffbccddd19a620318e7db9 [INFO] running `Command { std: "docker" "start" "-a" "6bc30231fc055bf6b65f19e509371901c7cd7377a5ffbccddd19a620318e7db9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6bc30231fc055bf6b65f19e509371901c7cd7377a5ffbccddd19a620318e7db9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bc30231fc055bf6b65f19e509371901c7cd7377a5ffbccddd19a620318e7db9", kill_on_drop: false }` [INFO] [stdout] 6bc30231fc055bf6b65f19e509371901c7cd7377a5ffbccddd19a620318e7db9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e7bda120944d2681db909a11fa176fbe81b24656cbc46aea8cc08c99b1e05ca8 [INFO] running `Command { std: "docker" "start" "-a" "e7bda120944d2681db909a11fa176fbe81b24656cbc46aea8cc08c99b1e05ca8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling lazy_static v1.2.0 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling futures v0.1.25 [INFO] [stderr] Compiling byteorder v1.2.7 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling slab v0.4.1 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling lazycell v1.2.0 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling regex v1.0.6 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling serde v1.0.80 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling termcolor v1.0.4 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling crossbeam-utils v0.6.1 [INFO] [stderr] Compiling crossbeam-utils v0.6.1 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Compiling humantime v1.1.1 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling colored v1.6.1 [INFO] [stderr] Compiling regex-syntax v0.6.3 [INFO] [stderr] Compiling smallvec v0.6.5 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling lock_api v0.1.4 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling time v0.1.40 [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling crossbeam-epoch v0.6.1 [INFO] [stderr] Compiling crossbeam-epoch v0.6.1 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Compiling bytes v0.4.10 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling mio v0.6.16 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling crossbeam-deque v0.6.2 [INFO] [stderr] Compiling crossbeam-deque v0.6.2 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Compiling crossbeam-skiplist v0.0.0 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Compiling syn v0.15.21 [INFO] [stderr] Compiling tokio-executor v0.1.5 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling tokio-io v0.1.10 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling tokio-serde v0.3.0 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling aho-corasick v0.6.9 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling tokio-threadpool v0.1.8 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling tokio-timer v0.2.7 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling tokio-current-thread v0.1.3 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling tokio-codec v0.1.1 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling tokio-fs v0.1.4 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling tokio-reactor v0.1.6 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling crossbeam-channel v0.3.2 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Compiling tokio-tcp v0.1.2 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling tokio-uds v0.2.3 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling tokio-udp v0.1.2 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling crossbeam v0.5.0 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Compiling tokio v0.1.12 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling serde_derive v1.0.80 [INFO] [stderr] Compiling bincode v1.0.1 [INFO] [stderr] Compiling env_logger v0.5.13 [INFO] [stderr] Compiling pretty_env_logger v0.2.5 [INFO] [stderr] Compiling swim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `indegree` [INFO] [stdout] --> src/digraph.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | indegree: Vec, // indegree[v] = indegree of vertex v [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/digraph.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(v: u32) -> Digraph { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate_vertex` [INFO] [stdout] --> src/digraph.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn validate_vertex(&self, v: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_edge` [INFO] [stdout] --> src/digraph.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn add_edge(&mut self, v: u32, w: u32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `adj` [INFO] [stdout] --> src/digraph.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn adj(&self, v: u32) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `outdegree` [INFO] [stdout] --> src/digraph.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn outdegree(&self, v: u32) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `indegree` [INFO] [stdout] --> src/digraph.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn indegree(&self, v: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse` [INFO] [stdout] --> src/digraph.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn reverse(&self) -> Digraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `delay` [INFO] [stdout] --> src/swim.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | delay: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Swim` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/swim.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `A` [INFO] [stdout] --> src/protocol/slush.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const A: f32 = 0.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `K` [INFO] [stdout] --> src/protocol/slush.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const K: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/protocol/slush.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new(addr: NetAddr) -> Slush { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_col` [INFO] [stdout] --> src/protocol/slush.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn set_col(&mut self, col: Colour) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_query` [INFO] [stdout] --> src/protocol/slush.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn send_query(&self, tx: ColourTx, peer_addr: NetAddr) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `handle_query` [INFO] [stdout] --> src/protocol/slush.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn handle_query(&mut self, tx: ResponseTx, col: Colour) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/protocol/slush.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn run(&mut self, tx: &ColourTx, rx: &mut ColourRx, membership: &Membership) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `outcome` [INFO] [stdout] --> src/protocol/slush.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn outcome(votes: Vec) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `A` [INFO] [stdout] --> src/protocol/snowflake.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const A: f32 = 0.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `B` [INFO] [stdout] --> src/protocol/snowflake.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const B: u32 = 11; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `K` [INFO] [stdout] --> src/protocol/snowflake.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const K: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Snowflake` [INFO] [stdout] --> src/protocol/snowflake.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Snowflake { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/protocol/snowflake.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(addr: NetAddr) -> Snowflake { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_col` [INFO] [stdout] --> src/protocol/snowflake.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn set_col(&mut self, col: Colour) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_cnt` [INFO] [stdout] --> src/protocol/snowflake.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn set_cnt(&mut self, cnt: u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_query` [INFO] [stdout] --> src/protocol/snowflake.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn send_query(&self, tx: ColourTx, peer_addr: NetAddr) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `handle_query` [INFO] [stdout] --> src/protocol/snowflake.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn handle_query(&mut self, tx: ResponseTx, col: Colour) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/protocol/snowflake.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn run(&mut self, tx: &ColourTx, rx: &mut ColourRx, membership: &Membership) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `outcome` [INFO] [stdout] --> src/protocol/snowflake.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn outcome(votes: Vec) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/digraph.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | write!(f, "{:?} vertices, {:?} edges\n", self.v(), self.e()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/digraph.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | write!(f, "{:?}: ", v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/digraph.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | write!(f, "{:?} ", w); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/digraph.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/digraph.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | if v < 0 || v >= self.v { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 17.79s [INFO] running `Command { std: "docker" "inspect" "e7bda120944d2681db909a11fa176fbe81b24656cbc46aea8cc08c99b1e05ca8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7bda120944d2681db909a11fa176fbe81b24656cbc46aea8cc08c99b1e05ca8", kill_on_drop: false }` [INFO] [stdout] e7bda120944d2681db909a11fa176fbe81b24656cbc46aea8cc08c99b1e05ca8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 69584f6a7075cc93f176c77da866f1aa7e1732902d946d8166221ce560b6b53e [INFO] running `Command { std: "docker" "start" "-a" "69584f6a7075cc93f176c77da866f1aa7e1732902d946d8166221ce560b6b53e", kill_on_drop: false }` [INFO] [stderr] Compiling swim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function is never used: `adj` [INFO] [stdout] --> src/digraph.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn adj(&self, v: u32) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `outdegree` [INFO] [stdout] --> src/digraph.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn outdegree(&self, v: u32) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `indegree` [INFO] [stdout] --> src/digraph.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn indegree(&self, v: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse` [INFO] [stdout] --> src/digraph.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn reverse(&self) -> Digraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `delay` [INFO] [stdout] --> src/swim.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | delay: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Swim` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/swim.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `A` [INFO] [stdout] --> src/protocol/slush.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const A: f32 = 0.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `K` [INFO] [stdout] --> src/protocol/slush.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const K: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/protocol/slush.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new(addr: NetAddr) -> Slush { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_col` [INFO] [stdout] --> src/protocol/slush.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn set_col(&mut self, col: Colour) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_query` [INFO] [stdout] --> src/protocol/slush.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn send_query(&self, tx: ColourTx, peer_addr: NetAddr) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `handle_query` [INFO] [stdout] --> src/protocol/slush.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn handle_query(&mut self, tx: ResponseTx, col: Colour) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/protocol/slush.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn run(&mut self, tx: &ColourTx, rx: &mut ColourRx, membership: &Membership) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `outcome` [INFO] [stdout] --> src/protocol/slush.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn outcome(votes: Vec) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `A` [INFO] [stdout] --> src/protocol/snowflake.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const A: f32 = 0.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `B` [INFO] [stdout] --> src/protocol/snowflake.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const B: u32 = 11; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `K` [INFO] [stdout] --> src/protocol/snowflake.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const K: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Snowflake` [INFO] [stdout] --> src/protocol/snowflake.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Snowflake { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/protocol/snowflake.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(addr: NetAddr) -> Snowflake { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_col` [INFO] [stdout] --> src/protocol/snowflake.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn set_col(&mut self, col: Colour) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_cnt` [INFO] [stdout] --> src/protocol/snowflake.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn set_cnt(&mut self, cnt: u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_query` [INFO] [stdout] --> src/protocol/snowflake.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn send_query(&self, tx: ColourTx, peer_addr: NetAddr) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `handle_query` [INFO] [stdout] --> src/protocol/snowflake.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn handle_query(&mut self, tx: ResponseTx, col: Colour) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/protocol/snowflake.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn run(&mut self, tx: &ColourTx, rx: &mut ColourRx, membership: &Membership) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `outcome` [INFO] [stdout] --> src/protocol/snowflake.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn outcome(votes: Vec) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/digraph.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | write!(f, "{:?} vertices, {:?} edges\n", self.v(), self.e()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/digraph.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | write!(f, "{:?}: ", v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/digraph.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | write!(f, "{:?} ", w); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/digraph.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/digraph.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | if v < 0 || v >= self.v { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.29s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/swim-d3aa4b4a25e50fe3) [INFO] running `Command { std: "docker" "inspect" "69584f6a7075cc93f176c77da866f1aa7e1732902d946d8166221ce560b6b53e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69584f6a7075cc93f176c77da866f1aa7e1732902d946d8166221ce560b6b53e", kill_on_drop: false }` [INFO] [stdout] 69584f6a7075cc93f176c77da866f1aa7e1732902d946d8166221ce560b6b53e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2300d88bdd6d98b8a5c67f08703f5d9a4ef5d03ae5b51e0cd4d2383f1ff449a3 [INFO] running `Command { std: "docker" "start" "-a" "2300d88bdd6d98b8a5c67f08703f5d9a4ef5d03ae5b51e0cd4d2383f1ff449a3", kill_on_drop: false }` [INFO] [stderr] warning: associated function is never used: `adj` [INFO] [stderr] --> src/digraph.rs:55:12 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn adj(&self, v: u32) -> Vec { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `outdegree` [INFO] [stderr] --> src/digraph.rs:60:12 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn outdegree(&self, v: u32) -> usize { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `indegree` [INFO] [stderr] --> src/digraph.rs:65:12 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn indegree(&self, v: u32) -> u32 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reverse` [INFO] [stderr] --> src/digraph.rs:70:12 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn reverse(&self) -> Digraph { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `delay` [INFO] [stderr] --> src/swim.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | delay: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Swim` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/swim.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `A` [INFO] [stderr] --> src/protocol/slush.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | const A: f32 = 0.5; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `K` [INFO] [stderr] --> src/protocol/slush.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | const K: usize = 4; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/protocol/slush.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn new(addr: NetAddr) -> Slush { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_col` [INFO] [stderr] --> src/protocol/slush.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn set_col(&mut self, col: Colour) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `send_query` [INFO] [stderr] --> src/protocol/slush.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn send_query(&self, tx: ColourTx, peer_addr: NetAddr) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `handle_query` [INFO] [stderr] --> src/protocol/slush.rs:66:12 [INFO] [stderr] | [INFO] [stderr] 66 | pub fn handle_query(&mut self, tx: ResponseTx, col: Colour) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `run` [INFO] [stderr] --> src/protocol/slush.rs:75:12 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn run(&mut self, tx: &ColourTx, rx: &mut ColourRx, membership: &Membership) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `outcome` [INFO] [stderr] --> src/protocol/slush.rs:112:8 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn outcome(votes: Vec) -> (u32, u32) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `A` [INFO] [stderr] --> src/protocol/snowflake.rs:12:1 [INFO] [stderr] | [INFO] [stderr] 12 | const A: f32 = 0.5; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `B` [INFO] [stderr] --> src/protocol/snowflake.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | const B: u32 = 11; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `K` [INFO] [stderr] --> src/protocol/snowflake.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | const K: usize = 4; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Snowflake` [INFO] [stderr] --> src/protocol/snowflake.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct Snowflake { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/protocol/snowflake.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn new(addr: NetAddr) -> Snowflake { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_col` [INFO] [stderr] --> src/protocol/snowflake.rs:48:12 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn set_col(&mut self, col: Colour) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_cnt` [INFO] [stderr] --> src/protocol/snowflake.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 52 | pub fn set_cnt(&mut self, cnt: u32) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `send_query` [INFO] [stderr] --> src/protocol/snowflake.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn send_query(&self, tx: ColourTx, peer_addr: NetAddr) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `handle_query` [INFO] [stderr] --> src/protocol/snowflake.rs:72:12 [INFO] [stderr] | [INFO] [stderr] 72 | pub fn handle_query(&mut self, tx: ResponseTx, col: Colour) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `run` [INFO] [stderr] --> src/protocol/snowflake.rs:81:12 [INFO] [stderr] | [INFO] [stderr] 81 | pub fn run(&mut self, tx: &ColourTx, rx: &mut ColourRx, membership: &Membership) -> bool { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `outcome` [INFO] [stderr] --> src/protocol/snowflake.rs:139:8 [INFO] [stderr] | [INFO] [stderr] 139 | pub fn outcome(votes: Vec) -> (u32, u32) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/digraph.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 12 | write!(f, "{:?} vertices, {:?} edges\n", self.v(), self.e()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/digraph.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | write!(f, "{:?}: ", v); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/digraph.rs:16:17 [INFO] [stderr] | [INFO] [stderr] 16 | write!(f, "{:?} ", w); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/digraph.rs:18:13 [INFO] [stderr] | [INFO] [stderr] 18 | write!(f, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: comparison is useless due to type limits [INFO] [stderr] --> src/digraph.rs:42:12 [INFO] [stderr] | [INFO] [stderr] 42 | if v < 0 || v >= self.v { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `swim` (bin "swim" test) generated 29 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.32s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/swim-d3aa4b4a25e50fe3) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test digraph::tests::test_one ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- digraph::tests::test_one stdout ---- [INFO] [stdout] thread 'digraph::tests::test_one' panicked at 'vertex is not between 0 and v - 1', src/digraph.rs:43:13 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55e9e391032d - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x55e9e391032d - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55e9e391032d - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x55e9e391032d - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x55e9e3932c3c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x55e9e390ccf1 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x55e9e3912075 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x55e9e3912075 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x55e9e3912075 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x55e9e3911d64 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x55e9e39125c2 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x55e9e38f0b18 - std::panicking::begin_panic::{{closure}}::hf42eec6805cffa73 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:617:9 [INFO] [stdout] 12: 0x55e9e38f09a9 - std::sys_common::backtrace::__rust_end_short_backtrace::h4e1764d60ae75617 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x55e9e38f0a68 - std::panicking::begin_panic::h29e014495d7afd55 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:616:12 [INFO] [stdout] 14: 0x55e9e38b048f - swim::digraph::Digraph::validate_vertex::hf869e005dc35097d [INFO] [stdout] at /opt/rustwide/workdir/src/digraph.rs:43:13 [INFO] [stdout] 15: 0x55e9e38b04d1 - swim::digraph::Digraph::add_edge::hee5da5dd03d57e4c [INFO] [stdout] at /opt/rustwide/workdir/src/digraph.rs:49:9 [INFO] [stdout] 16: 0x55e9e38af487 - swim::digraph::tests::test_one::h1eaf06410ca9fd3f [INFO] [stdout] at /opt/rustwide/workdir/src/digraph.rs:109:9 [INFO] [stdout] 17: 0x55e9e38af44a - swim::digraph::tests::test_one::{{closure}}::hf713e22b3bec0f5e [INFO] [stdout] at /opt/rustwide/workdir/src/digraph.rs:107:5 [INFO] [stdout] 18: 0x55e9e38aefde - core::ops::function::FnOnce::call_once::he0ca05be8d0a1b2d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 19: 0x55e9e38e6003 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x55e9e38e6003 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 21: 0x55e9e38e4db9 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 22: 0x55e9e38e4db9 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 23: 0x55e9e38e4db9 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 24: 0x55e9e38e4db9 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 25: 0x55e9e38e4db9 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 26: 0x55e9e38e4db9 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 27: 0x55e9e38e4db9 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 28: 0x55e9e38b0f6e - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 29: 0x55e9e38b0f6e - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 30: 0x55e9e38b64d8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 31: 0x55e9e38b64d8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 32: 0x55e9e38b64d8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 33: 0x55e9e38b64d8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 34: 0x55e9e38b64d8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 35: 0x55e9e38b64d8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 36: 0x55e9e38b64d8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 37: 0x55e9e3916dd3 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 38: 0x55e9e3916dd3 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 39: 0x55e9e3916dd3 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 40: 0x7ff693abe609 - start_thread [INFO] [stdout] 41: 0x7ff69388e163 - clone [INFO] [stdout] 42: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] digraph::tests::test_one [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--bin swim' [INFO] running `Command { std: "docker" "inspect" "2300d88bdd6d98b8a5c67f08703f5d9a4ef5d03ae5b51e0cd4d2383f1ff449a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2300d88bdd6d98b8a5c67f08703f5d9a4ef5d03ae5b51e0cd4d2383f1ff449a3", kill_on_drop: false }` [INFO] [stdout] 2300d88bdd6d98b8a5c67f08703f5d9a4ef5d03ae5b51e0cd4d2383f1ff449a3