[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 master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvarun24143%2Frust_dsa_test" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/varun24143/rust_dsa_test on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "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-tc1/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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f8f4fd35ed744a4b9dd60a07da6c2aab9469270d0717c3f793c3bef4741c547 [INFO] running `Command { std: "docker" "start" "-a" "8f8f4fd35ed744a4b9dd60a07da6c2aab9469270d0717c3f793c3bef4741c547", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f8f4fd35ed744a4b9dd60a07da6c2aab9469270d0717c3f793c3bef4741c547", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f8f4fd35ed744a4b9dd60a07da6c2aab9469270d0717c3f793c3bef4741c547", kill_on_drop: false }` [INFO] [stdout] 8f8f4fd35ed744a4b9dd60a07da6c2aab9469270d0717c3f793c3bef4741c547 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d666aa75d5fcddb6a3e885bb9304257fc30879ca8ecd5573bc2fc57f50716b6 [INFO] running `Command { std: "docker" "start" "-a" "1d666aa75d5fcddb6a3e885bb9304257fc30879ca8ecd5573bc2fc57f50716b6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.101 [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: `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: 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: 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: 29 warnings emitted [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] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.98s [INFO] running `Command { std: "docker" "inspect" "1d666aa75d5fcddb6a3e885bb9304257fc30879ca8ecd5573bc2fc57f50716b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d666aa75d5fcddb6a3e885bb9304257fc30879ca8ecd5573bc2fc57f50716b6", kill_on_drop: false }` [INFO] [stdout] 1d666aa75d5fcddb6a3e885bb9304257fc30879ca8ecd5573bc2fc57f50716b6 [INFO] checking varun24143/rust_dsa_test against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [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 f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74b8537a4cdf8d8b0d4309f27cb3cbbc8f019f0d2516d656f5341086365e7189 [INFO] running `Command { std: "docker" "start" "-a" "74b8537a4cdf8d8b0d4309f27cb3cbbc8f019f0d2516d656f5341086365e7189", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74b8537a4cdf8d8b0d4309f27cb3cbbc8f019f0d2516d656f5341086365e7189", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74b8537a4cdf8d8b0d4309f27cb3cbbc8f019f0d2516d656f5341086365e7189", kill_on_drop: false }` [INFO] [stdout] 74b8537a4cdf8d8b0d4309f27cb3cbbc8f019f0d2516d656f5341086365e7189 [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 -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1fd49a8c3ba1484d4e486a4a151650048fc8899165898245e89b67fd8dc9a748 [INFO] running `Command { std: "docker" "start" "-a" "1fd49a8c3ba1484d4e486a4a151650048fc8899165898245e89b67fd8dc9a748", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.101 [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: `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: 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: 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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/conmut.rs:82:23 [INFO] [stdout] | [INFO] [stdout] 81 | let _tx = tx.clone(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 82 | thread::spawn(move || { [INFO] [stdout] | _______________________^ [INFO] [stdout] 83 | | // don't use the result [INFO] [stdout] 84 | | let _ = _tx.send(i).unwrap(); [INFO] [stdout] 85 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/conmut.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 99 | let numbers = Arc::clone(&v); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 100 | thread::spawn(move || { [INFO] [stdout] | _______________________^ [INFO] [stdout] 101 | | let mut vector = numbers.lock().unwrap(); [INFO] [stdout] 102 | | (*vector).push(i); [INFO] [stdout] 103 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 29 warnings emitted [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] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/conmut.rs:82:23 [INFO] [stdout] | [INFO] [stdout] 81 | let _tx = tx.clone(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 82 | thread::spawn(move || { [INFO] [stdout] | _______________________^ [INFO] [stdout] 83 | | // don't use the result [INFO] [stdout] 84 | | let _ = _tx.send(i).unwrap(); [INFO] [stdout] 85 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/conmut.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 99 | let numbers = Arc::clone(&v); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 100 | thread::spawn(move || { [INFO] [stdout] | _______________________^ [INFO] [stdout] 101 | | let mut vector = numbers.lock().unwrap(); [INFO] [stdout] 102 | | (*vector).push(i); [INFO] [stdout] 103 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_dsa` (bin "rust_dsa") due to 3 previous errors; 29 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 2 previous errors; 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_dsa` (bin "rust_dsa" test) due to 3 previous errors; 25 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1fd49a8c3ba1484d4e486a4a151650048fc8899165898245e89b67fd8dc9a748", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fd49a8c3ba1484d4e486a4a151650048fc8899165898245e89b67fd8dc9a748", kill_on_drop: false }` [INFO] [stdout] 1fd49a8c3ba1484d4e486a4a151650048fc8899165898245e89b67fd8dc9a748