[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] 3bb49e22e1cfe12cd081aeac06ceb883535a92a7 [INFO] checking et4te/swim against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fet4te%2Fswim" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/et4te/swim on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", 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-5/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/crossbeam-rs/crossbeam` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pretty_env_logger v0.2.5 [INFO] [stderr] Downloaded tokio-serde v0.3.0 [INFO] [stderr] Downloaded syn v0.15.21 [INFO] [stderr] Downloaded colored v1.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 52edc55018ff7896fc3f9d513d075c124b898b17329e4cf2f02a2e2015f886a7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "52edc55018ff7896fc3f9d513d075c124b898b17329e4cf2f02a2e2015f886a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52edc55018ff7896fc3f9d513d075c124b898b17329e4cf2f02a2e2015f886a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52edc55018ff7896fc3f9d513d075c124b898b17329e4cf2f02a2e2015f886a7", kill_on_drop: false }` [INFO] [stdout] 52edc55018ff7896fc3f9d513d075c124b898b17329e4cf2f02a2e2015f886a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 28c6c0a603db35d5f60b8a0ed3d1507e5cf5d9241bd83f7f9e90e1b2749929a1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "28c6c0a603db35d5f60b8a0ed3d1507e5cf5d9241bd83f7f9e90e1b2749929a1", kill_on_drop: false }` [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling regex v1.0.6 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Checking termcolor v1.0.4 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking crossbeam-utils v0.6.1 [INFO] [stderr] Checking tokio-executor v0.1.5 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Checking crossbeam-utils v0.6.1 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Checking regex-syntax v0.6.3 [INFO] [stderr] Checking owning_ref v0.3.3 [INFO] [stderr] Checking humantime v1.1.1 [INFO] [stderr] Checking smallvec v0.6.5 [INFO] [stderr] Checking arrayvec v0.4.7 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking colored v1.6.1 [INFO] [stderr] Checking textwrap v0.10.0 [INFO] [stderr] Checking tokio-io v0.1.10 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Checking tokio-serde v0.3.0 [INFO] [stderr] Checking tokio-timer v0.2.7 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Checking tokio-current-thread v0.1.3 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Checking bincode v1.0.1 [INFO] [stderr] Checking lock_api v0.1.4 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Checking crossbeam-epoch v0.6.1 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Checking crossbeam-epoch v0.6.1 [INFO] [stderr] Checking tokio-codec v0.1.1 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Checking crossbeam-deque v0.6.2 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Checking crossbeam-skiplist v0.0.0 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking crossbeam-deque v0.6.2 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Checking tokio-threadpool v0.1.8 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Compiling syn v0.15.21 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking parking_lot v0.6.4 [INFO] [stderr] Checking tokio-fs v0.1.4 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Checking tokio-reactor v0.1.6 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Checking crossbeam-channel v0.3.2 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Checking tokio-tcp v0.1.2 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Checking tokio-uds v0.2.3 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Checking tokio-udp v0.1.2 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Checking crossbeam v0.5.0 (https://github.com/crossbeam-rs/crossbeam#d627067b) [INFO] [stderr] Checking tokio v0.1.12 (https://github.com/tokio-rs/tokio#09f2ac85) [INFO] [stderr] Checking env_logger v0.5.13 [INFO] [stderr] Checking pretty_env_logger v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.80 [INFO] [stderr] Checking 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: 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 `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (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: 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: 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: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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 a macro (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: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 43.98s [INFO] running `Command { std: "docker" "inspect" "28c6c0a603db35d5f60b8a0ed3d1507e5cf5d9241bd83f7f9e90e1b2749929a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28c6c0a603db35d5f60b8a0ed3d1507e5cf5d9241bd83f7f9e90e1b2749929a1", kill_on_drop: false }` [INFO] [stdout] 28c6c0a603db35d5f60b8a0ed3d1507e5cf5d9241bd83f7f9e90e1b2749929a1