[INFO] cloning repository https://github.com/varun24143/rust_dsa_test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/varun24143/rust_dsa_test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvarun24143%2Frust_dsa_test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvarun24143%2Frust_dsa_test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 531b5900a874c16b690c872b00080cf766cd745a [INFO] checking varun24143/rust_dsa_test against try#da0275e101cdc809ce291ed8b64d6f82c6b65467 for pr-134276 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvarun24143%2Frust_dsa_test" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/varun24143/rust_dsa_test on toolchain da0275e101cdc809ce291ed8b64d6f82c6b65467 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/varun24143/rust_dsa_test [INFO] finished tweaking git repo https://github.com/varun24143/rust_dsa_test [INFO] tweaked toml for git repo https://github.com/varun24143/rust_dsa_test written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/varun24143/rust_dsa_test 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" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b4cc83a0269b4f3ae73fe89e893898e3bdc4e77924c7031ec33ebf432e83e112 [INFO] running `Command { std: "docker" "start" "-a" "b4cc83a0269b4f3ae73fe89e893898e3bdc4e77924c7031ec33ebf432e83e112", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b4cc83a0269b4f3ae73fe89e893898e3bdc4e77924c7031ec33ebf432e83e112", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4cc83a0269b4f3ae73fe89e893898e3bdc4e77924c7031ec33ebf432e83e112", kill_on_drop: false }` [INFO] [stdout] b4cc83a0269b4f3ae73fe89e893898e3bdc4e77924c7031ec33ebf432e83e112 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f45c08742377fe2f844576d11141c443d2c834f19510ae5d054626b49dc25d97 [INFO] running `Command { std: "docker" "start" "-a" "f45c08742377fe2f844576d11141c443d2c834f19510ae5d054626b49dc25d97", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking rust_dsa v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/memtesting.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::random` [INFO] [stdout] --> src/skiplists.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::random; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::conmut::*` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::conmut::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transactionlog::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::transactionlog::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tests::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::tests::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::skiplists::*` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::skiplists::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/memtesting.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod tests; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::memtesting::MyStruct` [INFO] [stdout] --> src/tests.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::memtesting::MyStruct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod tests; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::conmut::*` [INFO] [stdout] --> src/tests.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::conmut::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod tests; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::random` [INFO] [stdout] --> src/skiplists.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::random; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::conmut::*` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::conmut::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transactionlog::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::transactionlog::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tests::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::tests::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::skiplists::*` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::skiplists::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Door` is never constructed [INFO] [stdout] --> src/main.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Door { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Door { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 19 | fn new(is_open: bool) -> Door { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Openable` is never used [INFO] [stdout] --> src/main.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | trait Openable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `ext` are never read [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct FileName { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 51 | name: Rc, [INFO] [stdout] | ^^^^ [INFO] [stdout] 52 | ext: Rc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileName` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/conmut.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | type Link = Option>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/conmut.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/conmut.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn add(a: i32, b: i32) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a`, `b`, and `c` are never read [INFO] [stdout] --> src/memtesting.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct MyStruct { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 4 | a: u8, [INFO] [stdout] | ^ [INFO] [stdout] 5 | b: u8, [INFO] [stdout] | ^ [INFO] [stdout] 6 | c: u8, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BetterTransactionLog` is never constructed [INFO] [stdout] --> src/transactionlog.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct BetterTransactionLog { // Revised as per doubly linked list [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transactionlog.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 27 | // A nice and short way of creating a new node [INFO] [stdout] 28 | pub fn new(value: String) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_empty`, `append`, and `pop` are never used [INFO] [stdout] --> src/transactionlog.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl BetterTransactionLog { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 40 | pub fn new_empty() -> BetterTransactionLog { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn append(&mut self, value: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transactionlog.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl ListIterator { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 75 | pub fn new(start_at: SingleLink) -> ListIterator { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/tests.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn add(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/tests.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | type Link = Rc>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/skiplists.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type Link = Option>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/skiplists.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/skiplists.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 26 | fn new(links: Vec, offset: u64, command: String) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BestTransactionLog` is never constructed [INFO] [stdout] --> src/skiplists.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct BestTransactionLog { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BestTransactionLog` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_empty`, `get_level`, `append`, and `find` are never used [INFO] [stdout] --> src/skiplists.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl BestTransactionLog { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 54 | [INFO] [stdout] 55 | pub fn new_empty(max_level: usize) -> BestTransactionLog { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn get_level(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn append(&mut self, offset: u64, value: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn find(&self, offset: u64) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Sanitize` should have a snake case name [INFO] [stdout] --> src/conmut.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Sanitize(s: String) -> String { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `sanitize` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Door` is never constructed [INFO] [stdout] --> src/main.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Door { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Door { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 19 | fn new(is_open: bool) -> Door { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Openable` is never used [INFO] [stdout] --> src/main.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | trait Openable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `ext` are never read [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct FileName { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 51 | name: Rc, [INFO] [stdout] | ^^^^ [INFO] [stdout] 52 | ext: Rc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileName` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/conmut.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | type Link = Option>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/conmut.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/conmut.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn add(a: i32, b: i32) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a`, `b`, and `c` are never read [INFO] [stdout] --> src/memtesting.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct MyStruct { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 4 | a: u8, [INFO] [stdout] | ^ [INFO] [stdout] 5 | b: u8, [INFO] [stdout] | ^ [INFO] [stdout] 6 | c: u8, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BetterTransactionLog` is never constructed [INFO] [stdout] --> src/transactionlog.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct BetterTransactionLog { // Revised as per doubly linked list [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transactionlog.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 27 | // A nice and short way of creating a new node [INFO] [stdout] 28 | pub fn new(value: String) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_empty`, `append`, and `pop` are never used [INFO] [stdout] --> src/transactionlog.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl BetterTransactionLog { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 40 | pub fn new_empty() -> BetterTransactionLog { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn append(&mut self, value: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transactionlog.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl ListIterator { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 75 | pub fn new(start_at: SingleLink) -> ListIterator { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/tests.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | type Link = Rc>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/skiplists.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type Link = Option>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/skiplists.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/skiplists.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 26 | fn new(links: Vec, offset: u64, command: String) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BestTransactionLog` is never constructed [INFO] [stdout] --> src/skiplists.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct BestTransactionLog { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BestTransactionLog` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_empty`, `get_level`, `append`, and `find` are never used [INFO] [stdout] --> src/skiplists.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl BestTransactionLog { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 54 | [INFO] [stdout] 55 | pub fn new_empty(max_level: usize) -> BestTransactionLog { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn get_level(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn append(&mut self, offset: u64, value: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn find(&self, offset: u64) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Sanitize` should have a snake case name [INFO] [stdout] --> src/conmut.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Sanitize(s: String) -> String { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `sanitize` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.30s [INFO] running `Command { std: "docker" "inspect" "f45c08742377fe2f844576d11141c443d2c834f19510ae5d054626b49dc25d97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f45c08742377fe2f844576d11141c443d2c834f19510ae5d054626b49dc25d97", kill_on_drop: false }` [INFO] [stdout] f45c08742377fe2f844576d11141c443d2c834f19510ae5d054626b49dc25d97