[INFO] cloning repository https://github.com/roackb2/rust_hello_world [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/roackb2/rust_hello_world" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Froackb2%2Frust_hello_world", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Froackb2%2Frust_hello_world'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1278126b3ebdb74560058615d4ed67646b7e8e87 [INFO] checking roackb2/rust_hello_world against master#8424f8e8cdf07010967a57584fd647b30e930d4d for pr-120095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Froackb2%2Frust_hello_world" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/roackb2/rust_hello_world on toolchain 8424f8e8cdf07010967a57584fd647b30e930d4d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/roackb2/rust_hello_world [INFO] finished tweaking git repo https://github.com/roackb2/rust_hello_world [INFO] tweaked toml for git repo https://github.com/roackb2/rust_hello_world written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/roackb2/rust_hello_world 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" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.paic [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking roackb2/rust_hello_world against try#047472f299946caf090d1b5608ae4bd9f0416256+rustflags=-Ddereferencing_mut_binding for pr-120095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Froackb2%2Frust_hello_world" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/roackb2/rust_hello_world on toolchain 047472f299946caf090d1b5608ae4bd9f0416256 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/roackb2/rust_hello_world [INFO] finished tweaking git repo https://github.com/roackb2/rust_hello_world [INFO] tweaked toml for git repo https://github.com/roackb2/rust_hello_world written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/roackb2/rust_hello_world 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" "+047472f299946caf090d1b5608ae4bd9f0416256" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.paic [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking roackb2/rust_hello_world against try#047472f299946caf090d1b5608ae4bd9f0416256+rustflags=-Ddereferencing_mut_binding for pr-120095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Froackb2%2Frust_hello_world" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/roackb2/rust_hello_world on toolchain 047472f299946caf090d1b5608ae4bd9f0416256 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/roackb2/rust_hello_world [INFO] finished tweaking git repo https://github.com/roackb2/rust_hello_world [INFO] tweaked toml for git repo https://github.com/roackb2/rust_hello_world written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/roackb2/rust_hello_world 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" "+047472f299946caf090d1b5608ae4bd9f0416256" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.paic [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82f939adeee8212f0577ef5abd64dd138f15fe7cf81f0182e40f46e31fa01b3e [INFO] running `Command { std: "docker" "start" "-a" "82f939adeee8212f0577ef5abd64dd138f15fe7cf81f0182e40f46e31fa01b3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82f939adeee8212f0577ef5abd64dd138f15fe7cf81f0182e40f46e31fa01b3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82f939adeee8212f0577ef5abd64dd138f15fe7cf81f0182e40f46e31fa01b3e", kill_on_drop: false }` [INFO] [stdout] 82f939adeee8212f0577ef5abd64dd138f15fe7cf81f0182e40f46e31fa01b3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Ddereferencing_mut_binding" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e7899748cef9dbbe3b8c4c8da0ea99e3fd87bdf4741c72732d3a1043c4de7d74 [INFO] running `Command { std: "docker" "start" "-a" "e7899748cef9dbbe3b8c4c8da0ea99e3fd87bdf4741c72732d3a1043c4de7d74", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.paic [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.109 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking rust_hello_world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::node::Node` [INFO] [stdout] --> src/bst/b_tree.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::node::Node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::linked_list::test_list` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::linked_list::test_list; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::node::Node` [INFO] [stdout] --> src/bst/b_tree.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::node::Node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::linked_list::test_list` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::linked_list::test_list; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/playground/collections.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | let mut v = vec![ [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: `err` [INFO] [stdout] --> src/playground/error_handling.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | Err(err) => panic!("Failed to read") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/merkle_tree/node.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn insert(&mut self, data: Transaction) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/merkle_tree/node.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn insert(&mut self, txn: Transaction) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf` [INFO] [stdout] --> src/merkle_tree/node.rs:117:18 [INFO] [stdout] | [INFO] [stdout] 117 | Node::Leaf(leaf) => (), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_leaf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/merkle_tree/utils.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | let mut state = DefaultHasher::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/merkle_tree/utils.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_str_hash(s: &str, hasher: &H) -> u64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/linked_list/list.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(value: i32) -> List { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `list::Node` is more private than the item `list::Link::More::0` [INFO] [stdout] --> src/linked_list/list.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | More(Box) [INFO] [stdout] | ^^^^^^^^^ field `list::Link::More::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `list::Node` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/linked_list/list.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> src/playground/structs.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Color (i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Empty` is never constructed [INFO] [stdout] --> src/playground/structs.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Empty; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/playground/enums.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | struct Date (u32, u32, u32); [INFO] [stdout] | ---- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = note: `Date` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 | struct Date ((), (), ()); [INFO] [stdout] | ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `direction` is never read [INFO] [stdout] --> src/playground/enums.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 11 | struct Transaction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | direction: TransferDirection, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `amount`, `attendant`, `direction`, and `due_date` are never read [INFO] [stdout] --> src/playground/enums.rs:31:3 [INFO] [stdout] | [INFO] [stdout] 30 | struct ScheduledPayment { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 31 | amount: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | attendant: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 33 | direction: TransferDirection, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 34 | due_date: Date [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScheduledPayment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `document_id` and `content` are never read [INFO] [stdout] --> src/playground/enums.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 38 | struct File { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 39 | document_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 40 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `File` 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 `0` is never read [INFO] [stdout] --> src/playground/enums.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | Loan(ScheduledPayment), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 56 | Loan(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Noop` is never constructed [INFO] [stdout] --> src/playground/enums.rs:58:3 [INFO] [stdout] | [INFO] [stdout] 54 | enum Transfer { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 58 | Noop, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transfer` 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 `event_name` is never read [INFO] [stdout] --> src/playground/collections.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | struct NotifyPayload { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 5 | event_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NotifyPayload` 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 `content` is never read [INFO] [stdout] --> src/playground/collections.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 9 | struct StreamPayload { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 10 | content: String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamPayload` 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 `0` is never read [INFO] [stdout] --> src/playground/collections.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | Notify(NotifyPayload), [INFO] [stdout] | ------ ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 | Notify(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/playground/collections.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Stream(StreamPayload), [INFO] [stdout] | ------ ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Stream(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file_simple` is never used [INFO] [stdout] --> src/playground/error_handling.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn read_file_simple(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TraverseCb` is never used [INFO] [stdout] --> src/merkle_tree/node.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type TraverseCb = fn(&Node) -> bool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `insert` is never used [INFO] [stdout] --> src/merkle_tree/node.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 23 | impl LeafNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn insert(&mut self, data: Transaction) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_child_hash` is never used [INFO] [stdout] --> src/merkle_tree/node.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_child_hash(left: u64, right: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_full` is never used [INFO] [stdout] --> src/merkle_tree/node.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 59 | impl InternalNode { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn is_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Internal` is never constructed [INFO] [stdout] --> src/merkle_tree/node.rs:96:3 [INFO] [stdout] | [INFO] [stdout] 94 | pub enum Node { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 95 | Leaf(Box), [INFO] [stdout] 96 | Internal(Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert`, `is_full`, and `traverse` are never used [INFO] [stdout] --> src/merkle_tree/node.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 100 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 101 | pub fn insert(&mut self, txn: Transaction) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn is_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn traverse(&self, pre_cb: TraverseCb, in_cb: TraverseCb, post_cb: TraverseCb) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_str_hash` is never used [INFO] [stdout] --> src/merkle_tree/utils.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_str_hash(s: &str, hasher: &H) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_list` is never used [INFO] [stdout] --> src/linked_list/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn test_list() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> src/linked_list/list.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/linked_list/list.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Link` is never used [INFO] [stdout] --> src/linked_list/list.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Link { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/linked_list/list.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 16 | impl List { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(value: i32) -> List { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/playground/collections.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | let mut v = vec![ [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: `err` [INFO] [stdout] --> src/playground/error_handling.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | Err(err) => panic!("Failed to read") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/merkle_tree/node.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn insert(&mut self, data: Transaction) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/merkle_tree/node.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn insert(&mut self, txn: Transaction) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf` [INFO] [stdout] --> src/merkle_tree/node.rs:117:18 [INFO] [stdout] | [INFO] [stdout] 117 | Node::Leaf(leaf) => (), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_leaf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/merkle_tree/utils.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | let mut state = DefaultHasher::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/merkle_tree/utils.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_str_hash(s: &str, hasher: &H) -> u64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/linked_list/list.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(value: i32) -> List { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `list::Node` is more private than the item `list::Link::More::0` [INFO] [stdout] --> src/linked_list/list.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | More(Box) [INFO] [stdout] | ^^^^^^^^^ field `list::Link::More::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `list::Node` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/linked_list/list.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> src/playground/structs.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Color (i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Empty` is never constructed [INFO] [stdout] --> src/playground/structs.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Empty; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/playground/enums.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | struct Date (u32, u32, u32); [INFO] [stdout] | ---- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = note: `Date` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 | struct Date ((), (), ()); [INFO] [stdout] | ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `direction` is never read [INFO] [stdout] --> src/playground/enums.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 11 | struct Transaction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | direction: TransferDirection, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `amount`, `attendant`, `direction`, and `due_date` are never read [INFO] [stdout] --> src/playground/enums.rs:31:3 [INFO] [stdout] | [INFO] [stdout] 30 | struct ScheduledPayment { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 31 | amount: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | attendant: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 33 | direction: TransferDirection, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 34 | due_date: Date [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScheduledPayment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `document_id` and `content` are never read [INFO] [stdout] --> src/playground/enums.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 38 | struct File { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 39 | document_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 40 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `File` 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 `0` is never read [INFO] [stdout] --> src/playground/enums.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | Loan(ScheduledPayment), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 56 | Loan(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Noop` is never constructed [INFO] [stdout] --> src/playground/enums.rs:58:3 [INFO] [stdout] | [INFO] [stdout] 54 | enum Transfer { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 58 | Noop, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transfer` 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 `event_name` is never read [INFO] [stdout] --> src/playground/collections.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | struct NotifyPayload { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 5 | event_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NotifyPayload` 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 `content` is never read [INFO] [stdout] --> src/playground/collections.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 9 | struct StreamPayload { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 10 | content: String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamPayload` 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 `0` is never read [INFO] [stdout] --> src/playground/collections.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | Notify(NotifyPayload), [INFO] [stdout] | ------ ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 | Notify(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/playground/collections.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Stream(StreamPayload), [INFO] [stdout] | ------ ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Stream(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file_simple` is never used [INFO] [stdout] --> src/playground/error_handling.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn read_file_simple(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `collect` is never used [INFO] [stdout] --> src/bst/b_tree.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 10 | impl BTree { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn collect( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CollectCb` is never used [INFO] [stdout] --> src/bst/types.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type CollectCb = fn(&Node, &mut Vec); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `collect` is never used [INFO] [stdout] --> src/bst/node.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 13 | impl Node { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn collect( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `collect` is never used [INFO] [stdout] --> src/bst/link.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 10 | impl Link { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn collect( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TraverseCb` is never used [INFO] [stdout] --> src/merkle_tree/node.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type TraverseCb = fn(&Node) -> bool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `insert` is never used [INFO] [stdout] --> src/merkle_tree/node.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 23 | impl LeafNode { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn insert(&mut self, data: Transaction) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_child_hash` is never used [INFO] [stdout] --> src/merkle_tree/node.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_child_hash(left: u64, right: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_full` is never used [INFO] [stdout] --> src/merkle_tree/node.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 59 | impl InternalNode { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn is_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Internal` is never constructed [INFO] [stdout] --> src/merkle_tree/node.rs:96:3 [INFO] [stdout] | [INFO] [stdout] 94 | pub enum Node { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 95 | Leaf(Box), [INFO] [stdout] 96 | Internal(Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert`, `is_full`, and `traverse` are never used [INFO] [stdout] --> src/merkle_tree/node.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 100 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 101 | pub fn insert(&mut self, txn: Transaction) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn is_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn traverse(&self, pre_cb: TraverseCb, in_cb: TraverseCb, post_cb: TraverseCb) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_str_hash` is never used [INFO] [stdout] --> src/merkle_tree/utils.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_str_hash(s: &str, hasher: &H) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_list` is never used [INFO] [stdout] --> src/linked_list/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn test_list() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> src/linked_list/list.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/linked_list/list.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Link` is never used [INFO] [stdout] --> src/linked_list/list.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Link { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/linked_list/list.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 16 | impl List { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(value: i32) -> List { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.92s [INFO] running `Command { std: "docker" "inspect" "e7899748cef9dbbe3b8c4c8da0ea99e3fd87bdf4741c72732d3a1043c4de7d74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7899748cef9dbbe3b8c4c8da0ea99e3fd87bdf4741c72732d3a1043c4de7d74", kill_on_drop: false }` [INFO] [stdout] e7899748cef9dbbe3b8c4c8da0ea99e3fd87bdf4741c72732d3a1043c4de7d74