[INFO] fetching crate onlinecode 0.1.1... [INFO] building onlinecode-0.1.1 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate onlinecode 0.1.1 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate onlinecode 0.1.1 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate onlinecode 0.1.1 [INFO] finished tweaking crates.io crate onlinecode 0.1.1 [INFO] tweaked toml for crates.io crate onlinecode 0.1.1 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate crates.io crate onlinecode 0.1.1 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sha-1 v0.9.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 316f58c05be07d5de28fe5c39c0110aeae6e54d8ae190e983060ed2f8d3f30a4 [INFO] running `Command { std: "docker" "start" "-a" "316f58c05be07d5de28fe5c39c0110aeae6e54d8ae190e983060ed2f8d3f30a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "316f58c05be07d5de28fe5c39c0110aeae6e54d8ae190e983060ed2f8d3f30a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "316f58c05be07d5de28fe5c39c0110aeae6e54d8ae190e983060ed2f8d3f30a4", kill_on_drop: false }` [INFO] [stdout] 316f58c05be07d5de28fe5c39c0110aeae6e54d8ae190e983060ed2f8d3f30a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5a99da7b55284ca8a953fa75785e1a465507a7ffd12f57769d9ceb5fffad99ff [INFO] running `Command { std: "docker" "start" "-a" "5a99da7b55284ca8a953fa75785e1a465507a7ffd12f57769d9ceb5fffad99ff", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling clap v2.33.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 digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling sha-1 v0.9.6 [INFO] [stderr] Compiling onlinecode v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::rngs::StdRng` [INFO] [stdout] --> src/probdist.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::rngs::StdRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/probdist.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> src/rng.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha1` [INFO] [stdout] --> src/rng.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | use sha1::{Sha1, Digest}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::rngs::StdRng` [INFO] [stdout] --> src/floyd.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use rand::rngs::StdRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/bipartite.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/equations.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::{HashSet,HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/equations.rs:416:36 [INFO] [stdout] | [INFO] [stdout] 416 | ... if (*eq_id >= self.ablocks) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 416 - if (*eq_id >= self.ablocks) { [INFO] [stdout] 416 + if *eq_id >= self.ablocks { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/compat.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{Rng,thread_rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rng` [INFO] [stdout] --> src/compat.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::rng; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/compat.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/bipartite.rs:166:18 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aux` [INFO] [stdout] --> src/bipartite.rs:166:29 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chk` [INFO] [stdout] --> src/bipartite.rs:166:40 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_chk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `edges` [INFO] [stdout] --> src/bipartite.rs:166:51 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_edges` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/equations.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut equations = Vec::with_capacity(coblocks + headroom); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/equations.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | let mut rhs = Vec::::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/equations.rs:298:40 [INFO] [stdout] | [INFO] [stdout] 298 | EquationType::Unsolved(ref hash,_) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `found_solved` is assigned to, but never used [INFO] [stdout] --> src/equations.rs:353:21 [INFO] [stdout] | [INFO] [stdout] 353 | let mut found_solved = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_found_solved` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/equations.rs:363:44 [INFO] [stdout] | [INFO] [stdout] 363 | EquationType::Solved(v,rhs) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bipartite.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct MessageNode { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 44 | id : u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `right_degree` is never used [INFO] [stdout] --> src/bipartite.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl MessageNode { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | fn right_degree(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bipartite.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct AuxiliaryNode { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 61 | id : u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuxiliaryNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bipartite.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct CheckNode { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 78 | id : u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `CheckNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `with_size` and `new_edge` are never used [INFO] [stdout] --> src/bipartite.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 151 | impl BipartiteGraph { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn new_edge() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Compat` is never used [INFO] [stdout] --> src/compat.rs:68:7 [INFO] [stdout] | [INFO] [stdout] 68 | trait Compat { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arg` [INFO] [stdout] --> src/bin/codec.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | use clap::{Arg, App}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha1` [INFO] [stdout] --> src/bin/codec.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | use sha1::{Sha1, Digest}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `destructuring_assignment` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/bin/codec.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | #![feature(destructuring_assignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.79s [INFO] running `Command { std: "docker" "inspect" "5a99da7b55284ca8a953fa75785e1a465507a7ffd12f57769d9ceb5fffad99ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a99da7b55284ca8a953fa75785e1a465507a7ffd12f57769d9ceb5fffad99ff", kill_on_drop: false }` [INFO] [stdout] 5a99da7b55284ca8a953fa75785e1a465507a7ffd12f57769d9ceb5fffad99ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62349453010de9cdcb33f443259b07023c35945ad43aee635119f7955b63052c [INFO] running `Command { std: "docker" "start" "-a" "62349453010de9cdcb33f443259b07023c35945ad43aee635119f7955b63052c", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `rand::rngs::StdRng` [INFO] [stdout] --> src/probdist.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::rngs::StdRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/probdist.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> src/rng.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha1` [INFO] [stdout] --> src/rng.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | use sha1::{Sha1, Digest}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::rngs::StdRng` [INFO] [stdout] --> src/floyd.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use rand::rngs::StdRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/bipartite.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/equations.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::{HashSet,HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/equations.rs:416:36 [INFO] [stdout] | [INFO] [stdout] 416 | ... if (*eq_id >= self.ablocks) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 416 - if (*eq_id >= self.ablocks) { [INFO] [stdout] 416 + if *eq_id >= self.ablocks { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/compat.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{Rng,thread_rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rng` [INFO] [stdout] --> src/compat.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::rng; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/compat.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/bipartite.rs:166:18 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aux` [INFO] [stdout] --> src/bipartite.rs:166:29 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chk` [INFO] [stdout] --> src/bipartite.rs:166:40 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_chk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `edges` [INFO] [stdout] --> src/bipartite.rs:166:51 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_edges` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/equations.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut equations = Vec::with_capacity(coblocks + headroom); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/equations.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | let mut rhs = Vec::::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/equations.rs:298:40 [INFO] [stdout] | [INFO] [stdout] 298 | EquationType::Unsolved(ref hash,_) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `found_solved` is assigned to, but never used [INFO] [stdout] --> src/equations.rs:353:21 [INFO] [stdout] | [INFO] [stdout] 353 | let mut found_solved = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_found_solved` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/equations.rs:363:44 [INFO] [stdout] | [INFO] [stdout] 363 | EquationType::Solved(v,rhs) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bipartite.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct MessageNode { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 44 | id : u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `right_degree` is never used [INFO] [stdout] --> src/bipartite.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl MessageNode { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | fn right_degree(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bipartite.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct AuxiliaryNode { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 61 | id : u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuxiliaryNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bipartite.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct CheckNode { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 78 | id : u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `CheckNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `with_size` and `new_edge` are never used [INFO] [stdout] --> src/bipartite.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 151 | impl BipartiteGraph { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn new_edge() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Compat` is never used [INFO] [stdout] --> src/compat.rs:68:7 [INFO] [stdout] | [INFO] [stdout] 68 | trait Compat { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling onlinecode v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Arg` [INFO] [stdout] --> src/bin/codec.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | use clap::{Arg, App}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha1` [INFO] [stdout] --> src/bin/codec.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | use sha1::{Sha1, Digest}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `destructuring_assignment` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/bin/codec.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | #![feature(destructuring_assignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::rngs::StdRng` [INFO] [stdout] --> src/probdist.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::rngs::StdRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/probdist.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> src/rng.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha1` [INFO] [stdout] --> src/rng.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | use sha1::{Sha1, Digest}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::rngs::StdRng` [INFO] [stdout] --> src/floyd.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use rand::rngs::StdRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/bipartite.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/equations.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::{HashSet,HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/equations.rs:416:36 [INFO] [stdout] | [INFO] [stdout] 416 | ... if (*eq_id >= self.ablocks) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 416 - if (*eq_id >= self.ablocks) { [INFO] [stdout] 416 + if *eq_id >= self.ablocks { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/compat.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{Rng,thread_rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rng` [INFO] [stdout] --> src/compat.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::rng; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/compat.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/compat.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | use rand::{Rng,thread_rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rng.rs:276:6 [INFO] [stdout] | [INFO] [stdout] 276 | let mut val : u32 = rng.gen(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set` [INFO] [stdout] --> src/floyd.rs:115:6 [INFO] [stdout] | [INFO] [stdout] 115 | let set = floyd_usize(&mut rng, 2, 1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_set` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/bipartite.rs:166:18 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aux` [INFO] [stdout] --> src/bipartite.rs:166:29 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chk` [INFO] [stdout] --> src/bipartite.rs:166:40 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_chk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `edges` [INFO] [stdout] --> src/bipartite.rs:166:51 [INFO] [stdout] | [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_edges` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leftnode` [INFO] [stdout] --> src/bipartite.rs:432:7 [INFO] [stdout] | [INFO] [stdout] 432 | let (leftnode,rightnode) = graph.delete_edge(&edge); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leftnode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rightnode` [INFO] [stdout] --> src/bipartite.rs:432:16 [INFO] [stdout] | [INFO] [stdout] 432 | let (leftnode,rightnode) = graph.delete_edge(&edge); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rightnode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/equations.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut equations = Vec::with_capacity(coblocks + headroom); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/equations.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | let mut rhs = Vec::::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/equations.rs:298:40 [INFO] [stdout] | [INFO] [stdout] 298 | EquationType::Unsolved(ref hash,_) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `found_solved` is assigned to, but never used [INFO] [stdout] --> src/equations.rs:353:21 [INFO] [stdout] | [INFO] [stdout] 353 | let mut found_solved = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_found_solved` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/equations.rs:363:44 [INFO] [stdout] | [INFO] [stdout] 363 | EquationType::Solved(v,rhs) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `done` [INFO] [stdout] --> src/equations.rs:1168:18 [INFO] [stdout] | [INFO] [stdout] 1168 | let (done, pending, solved) = [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_done` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pending` [INFO] [stdout] --> src/equations.rs:1168:24 [INFO] [stdout] | [INFO] [stdout] 1168 | let (done, pending, solved) = [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pending` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mapping` [INFO] [stdout] --> src/compat.rs:62:6 [INFO] [stdout] | [INFO] [stdout] 62 | let mapping = AuxMapping::new(&mut rng, 20, 5, 6); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mapping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `right_degree` is never used [INFO] [stdout] --> src/bipartite.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl MessageNode { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | fn right_degree(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `with_size` and `new_edge` are never used [INFO] [stdout] --> src/bipartite.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 151 | impl BipartiteGraph { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | fn with_size(msg : u32, aux : u32, chk : u32, edges : u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn new_edge() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_via_aux_case_1` is never used [INFO] [stdout] --> src/equations.rs:741:8 [INFO] [stdout] | [INFO] [stdout] 741 | fn solve_via_aux_case_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Compat` is never used [INFO] [stdout] --> src/compat.rs:68:7 [INFO] [stdout] | [INFO] [stdout] 68 | trait Compat { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "62349453010de9cdcb33f443259b07023c35945ad43aee635119f7955b63052c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62349453010de9cdcb33f443259b07023c35945ad43aee635119f7955b63052c", kill_on_drop: false }` [INFO] [stdout] 62349453010de9cdcb33f443259b07023c35945ad43aee635119f7955b63052c