[INFO] cloning repository https://github.com/pahlavaubivca/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/pahlavaubivca/rust_hello_world" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpahlavaubivca%2Frust_hello_world", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpahlavaubivca%2Frust_hello_world'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4390d6090c9404481aafb3a0f0541c780daa2793 [INFO] checking pahlavaubivca/rust_hello_world against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpahlavaubivca%2Frust_hello_world" "/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/pahlavaubivca/rust_hello_world 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/pahlavaubivca/rust_hello_world [INFO] finished tweaking git repo https://github.com/pahlavaubivca/rust_hello_world [INFO] tweaked toml for git repo https://github.com/pahlavaubivca/rust_hello_world written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/pahlavaubivca/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" "+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] a6a872318263a45d7778121d6545c3dd1ef52fc5a32a6ac48f3c7c3d033e8451 [INFO] running `Command { std: "docker" "start" "-a" "a6a872318263a45d7778121d6545c3dd1ef52fc5a32a6ac48f3c7c3d033e8451", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a6a872318263a45d7778121d6545c3dd1ef52fc5a32a6ac48f3c7c3d033e8451", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6a872318263a45d7778121d6545c3dd1ef52fc5a32a6ac48f3c7c3d033e8451", kill_on_drop: false }` [INFO] [stdout] a6a872318263a45d7778121d6545c3dd1ef52fc5a32a6ac48f3c7c3d033e8451 [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] 281c3e379b74f25279b03008f52a66e258f3b7b726570e4270376065b6abd79e [INFO] running `Command { std: "docker" "start" "-a" "281c3e379b74f25279b03008f52a66e258f3b7b726570e4270376065b6abd79e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hello-world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Stdio` [INFO] [stdout] --> src/main.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::{Command, Stdio}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::borrow::borrow_checker` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::borrow::borrow_checker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ownership::example_ownership` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::ownership::example_ownership; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::references_with_lifetime::rwl` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::references_with_lifetime::rwl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cons` and `Nil` [INFO] [stdout] --> src/main.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::pointers::r#box::List::{Cons, Nil}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cons as RcCons` and `Nil as RcNil` [INFO] [stdout] --> src/main.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::pointers::r#rc::RcList::{Cons as RcCons, Nil as RcNil}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ll_proto_1_1` and `ll_proto_1` [INFO] [stdout] --> src/main.rs:11:49 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::training::linked_list::prototype_1::{ll_proto_1, ll_proto_1_1}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::training::linked_list::prototype_2::ll_proto_2` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::training::linked_list::prototype_2::ll_proto_2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/basic_variable_and_types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stdio` [INFO] [stdout] --> src/main.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::{Command, Stdio}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::borrow::borrow_checker` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::borrow::borrow_checker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ownership::example_ownership` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::ownership::example_ownership; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::references_with_lifetime::rwl` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::references_with_lifetime::rwl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cons` and `Nil` [INFO] [stdout] --> src/main.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::pointers::r#box::List::{Cons, Nil}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cons as RcCons` and `Nil as RcNil` [INFO] [stdout] --> src/main.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::pointers::r#rc::RcList::{Cons as RcCons, Nil as RcNil}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ll_proto_1_1` and `ll_proto_1` [INFO] [stdout] --> src/main.rs:11:49 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::training::linked_list::prototype_1::{ll_proto_1, ll_proto_1_1}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::training::linked_list::prototype_2::ll_proto_2` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::training::linked_list::prototype_2::ll_proto_2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/basic_variable_and_types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::SplitPaths` [INFO] [stdout] --> src/generic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::SplitPaths; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/pointers/box.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefMut` [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::{RefCell, RefMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::training::linked_list::prototype_1::Node` [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::training::linked_list::prototype_1::Node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/training/sum_2_nums/sum_2_nums.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::SplitPaths` [INFO] [stdout] --> src/generic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::SplitPaths; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/pointers/box.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefMut` [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::{RefCell, RefMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::training::linked_list::prototype_1::Node` [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::training::linked_list::prototype_1::Node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/training/sum_2_nums/sum_2_nums.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 55 | let fifo_path = "/tmp/xterm_fifo"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asd` [INFO] [stdout] --> src/basic_variable_and_types.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let asd = 89; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_asd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asd` [INFO] [stdout] --> src/basic_variable_and_types.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let asd = asd.to_string(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_asd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `asd` is assigned to, but never used [INFO] [stdout] --> src/basic_variable_and_types.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut asd = 89; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_asd` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `asd` is never read [INFO] [stdout] --> src/basic_variable_and_types.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | asd = 4; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/basic_variable_and_types.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let num: i32 = str_number.parse().expect(""); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qwe` [INFO] [stdout] --> src/basic_variable_and_types.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let qwe = if asd == 1 { -1 } else { 0 }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qwe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/basic_variable_and_types.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let result = loop { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 55 | let fifo_path = "/tmp/xterm_fifo"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/ownership.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let b = a.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/ownership.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let b = a.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asd` [INFO] [stdout] --> src/basic_variable_and_types.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let asd = 89; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_asd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asd` [INFO] [stdout] --> src/basic_variable_and_types.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let asd = asd.to_string(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_asd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `asd` is assigned to, but never used [INFO] [stdout] --> src/basic_variable_and_types.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut asd = 89; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_asd` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `asd` is never read [INFO] [stdout] --> src/basic_variable_and_types.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | asd = 4; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/basic_variable_and_types.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let num: i32 = str_number.parse().expect(""); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qwe` [INFO] [stdout] --> src/basic_variable_and_types.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let qwe = if asd == 1 { -1 } else { 0 }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qwe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/basic_variable_and_types.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let result = loop { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asd` [INFO] [stdout] --> src/struct.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let asd = vec![1,2,3]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_asd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/ownership.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let b = a.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/ownership.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let b = a.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/trait.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn notify_multiple_trait(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/trait.rs:61:60 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn notify_multiple_trait_generic(item: &T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/trait.rs:64:34 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn notify_mtg_alternative(item: &T) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asd` [INFO] [stdout] --> src/struct.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let asd = vec![1,2,3]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_asd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str1` [INFO] [stdout] --> src/references_with_lifetime.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let str1 = String::from("long string"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> src/references_with_lifetime.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let str2 = String::from("shrt str"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/references_with_lifetime.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let i = ImportantExcerpt {//hold ref to the first sentence of the String owned by `novel` variable. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/references_with_lifetime.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let s: &'static str = "static lifetime 🙄"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/pointers/rc.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let b = RcList::Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pointers/rc.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let c = RcList::Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/pointers/box.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let list = Cons(1, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/trait.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn notify_multiple_trait(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/trait.rs:61:60 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn notify_multiple_trait_generic(item: &T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/trait.rs:64:34 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn notify_mtg_alternative(item: &T) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pointers/drop_trait.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/pointers/drop_trait.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str1` [INFO] [stdout] --> src/references_with_lifetime.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let str1 = String::from("long string"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> src/references_with_lifetime.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let str2 = String::from("shrt str"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/references_with_lifetime.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let i = ImportantExcerpt {//hold ref to the first sentence of the String owned by `novel` variable. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/references_with_lifetime.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let s: &'static str = "static lifetime 🙄"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/pointers/rc.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let b = RcList::Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pointers/rc.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let c = RcList::Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/pointers/box.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let list = Cons(1, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pointers/drop_trait.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/pointers/drop_trait.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn remove(&mut self, index: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_shadowing` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn example_of_shadowing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_mut` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn example_of_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_converting_from_string` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn example_of_converting_from_string() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_assigning` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn example_of_assigning() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_loop` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn example_of_loop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loop_through_collection` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn loop_through_collection() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_ownership` is never used [INFO] [stdout] --> src/ownership.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn example_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_ownership_clone` is never used [INFO] [stdout] --> src/ownership.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn example_ownership_clone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Some` is never constructed [INFO] [stdout] --> src/ownership.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct Some { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `display` is never used [INFO] [stdout] --> src/ownership.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Some { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 38 | pub fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrow_checker` is never used [INFO] [stdout] --> src/borrow.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn borrow_checker() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice` is never used [INFO] [stdout] --> src/slice.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn slice() {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word_index_of_end` is never used [INFO] [stdout] --> src/slice.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn first_word_index_of_end(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_slices` is never used [INFO] [stdout] --> src/slice.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn string_slices(s: &String) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/struct.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `work_with_struct` is never used [INFO] [stdout] --> src/struct.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn work_with_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest` is never used [INFO] [stdout] --> src/generic.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn largest(list: &[T]) -> &T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generic_example_run` is never used [INFO] [stdout] --> src/generic.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn generic_example_run() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/generic.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/generic.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 28 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_use_point` is never used [INFO] [stdout] --> src/generic.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn example_of_use_point() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `summarize` and `summarize_with_implementation` are never used [INFO] [stdout] --> src/trait.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Summary { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 8 | fn summarize(&self) -> String; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | fn summarize_with_implementation(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/trait.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> src/trait.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/trait.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn notify(item: &impl Summary) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_bound_syntax` is never used [INFO] [stdout] --> src/trait.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn notify_bound_syntax(item: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_multiple_trait` is never used [INFO] [stdout] --> src/trait.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn notify_multiple_trait(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_multiple_trait_generic` is never used [INFO] [stdout] --> src/trait.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn notify_multiple_trait_generic(item: &T) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_mtg_alternative` is never used [INFO] [stdout] --> src/trait.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn notify_mtg_alternative(item: &T) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> src/trait.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S1` is never constructed [INFO] [stdout] --> src/trait.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | struct S1 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn remove(&mut self, index: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S2` is never constructed [INFO] [stdout] --> src/trait.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct S2 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `S1S2Using` is never used [INFO] [stdout] --> src/trait.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn S1S2Using() -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/trait.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/trait.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 124 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 125 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/trait.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 132 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 133 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rwl` is never used [INFO] [stdout] --> src/references_with_lifetime.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn rwl<'a>(str1: &'a str, str2: &'a str) -> &'a str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rwlResult` is never used [INFO] [stdout] --> src/references_with_lifetime.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn rwlResult() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/references_with_lifetime.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `asdf` is never used [INFO] [stdout] --> src/references_with_lifetime.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn asdf() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_lifetime` is never used [INFO] [stdout] --> src/references_with_lifetime.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn static_lifetime() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/references_with_lifetime.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn longest_with_an_announcement<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `e` is never used [INFO] [stdout] --> src/pointers/mod.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn e() {} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RcList` is never used [INFO] [stdout] --> src/pointers/rc.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum RcList { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rc_example` is never used [INFO] [stdout] --> src/pointers/rc.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn rc_example() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/pointers/box.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nested_list` is never used [INFO] [stdout] --> src/pointers/box.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn nested_list() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> src/pointers/defer_trait.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct MyBox(T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pointers/defer_trait.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl MyBox { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 7 | fn new(x: T) -> MyBox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> src/pointers/defer_trait.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn hello(name: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deref_coercion_example` is never used [INFO] [stdout] --> src/pointers/defer_trait.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn deref_coercion_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `no_deref_coercion_example` is never used [INFO] [stdout] --> src/pointers/defer_trait.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn no_deref_coercion_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CustomSmartPointer` is never constructed [INFO] [stdout] --> src/pointers/drop_trait.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct CustomSmartPointer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop_usage_example` is never used [INFO] [stdout] --> src/pointers/drop_trait.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn drop_usage_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop_example` is never used [INFO] [stdout] --> src/pointers/drop_trait.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn drop_example() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Messenger` is never used [INFO] [stdout] --> src/pointers/refcell.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Messenger { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LimitTracker` is never constructed [INFO] [stdout] --> src/pointers/refcell.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct LimitTracker<'a, T: Messenger> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_value` are never used [INFO] [stdout] --> src/pointers/refcell.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 25 | / impl<'a, T> LimitTracker<'a, T> [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | T: Messenger, [INFO] [stdout] | |_____________________- associated items in this implementation [INFO] [stdout] 28 | { [INFO] [stdout] 29 | pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn set_value(&mut self, value: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/pointers/refcell.rs:115:6 [INFO] [stdout] | [INFO] [stdout] 115 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rc_rccell_list_usage` is never used [INFO] [stdout] --> src/pointers/refcell.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn rc_rccell_list_usage() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MmList` is never used [INFO] [stdout] --> src/pointers/memory_leak.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum MmList { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_shadowing` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn example_of_shadowing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tail` is never used [INFO] [stdout] --> src/pointers/memory_leak.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl MmList { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 11 | fn tail(&self) -> Option<&RefCell>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mem_leak` is never used [INFO] [stdout] --> src/pointers/memory_leak.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn mem_leak() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_mut` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn example_of_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_converting_from_string` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn example_of_converting_from_string() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Node { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(value: T) -> Node { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_assigning` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn example_of_assigning() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_loop` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn example_of_loop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loop_through_collection` is never used [INFO] [stdout] --> src/basic_variable_and_types.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn loop_through_collection() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_ownership` is never used [INFO] [stdout] --> src/ownership.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn example_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_ownership_clone` is never used [INFO] [stdout] --> src/ownership.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn example_ownership_clone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Some` is never constructed [INFO] [stdout] --> src/ownership.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct Some { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ll_proto_1` is never used [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn ll_proto_1() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `display` is never used [INFO] [stdout] --> src/ownership.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Some { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 38 | pub fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeV2` is never constructed [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct NodeV2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrow_checker` is never used [INFO] [stdout] --> src/borrow.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn borrow_checker() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice` is never used [INFO] [stdout] --> src/slice.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn slice() {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_next`, and `get_value` are never used [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl NodeV2 { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 71 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn set_next(&mut self, node: NodeV2) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn get_value(&self)->&T{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word_index_of_end` is never used [INFO] [stdout] --> src/slice.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn first_word_index_of_end(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ll_proto_1_1` is never used [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn ll_proto_1_1() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_slices` is never used [INFO] [stdout] --> src/slice.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn string_slices(s: &String) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/struct.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `work_with_struct` is never used [INFO] [stdout] --> src/struct.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn work_with_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeV2` is never constructed [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct NodeV2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest` is never used [INFO] [stdout] --> src/generic.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn largest(list: &[T]) -> &T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generic_example_run` is never used [INFO] [stdout] --> src/generic.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn generic_example_run() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/generic.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `move_next`, `move_prev`, and `remove` are never used [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn add(&mut self, value: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn move_next(&mut self) -> Option>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn move_prev() -> Option>>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn remove(&mut self, index: usize) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/generic.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 28 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ll_proto_2` is never used [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn ll_proto_2() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_of_use_point` is never used [INFO] [stdout] --> src/generic.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn example_of_use_point() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `summarize` and `summarize_with_implementation` are never used [INFO] [stdout] --> src/trait.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Summary { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 8 | fn summarize(&self) -> String; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | fn summarize_with_implementation(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `S1S2Using` should have a snake case name [INFO] [stdout] --> src/trait.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn S1S2Using() -> Box { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `s1_s2_using` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/trait.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rwlResult` should have a snake case name [INFO] [stdout] --> src/references_with_lifetime.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn rwlResult() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rwl_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> src/trait.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 114 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/trait.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn notify(item: &impl Summary) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_bound_syntax` is never used [INFO] [stdout] --> src/trait.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn notify_bound_syntax(item: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_multiple_trait` is never used [INFO] [stdout] --> src/trait.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn notify_multiple_trait(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_multiple_trait_generic` is never used [INFO] [stdout] --> src/trait.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn notify_multiple_trait_generic(item: &T) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_mtg_alternative` is never used [INFO] [stdout] --> src/trait.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn notify_mtg_alternative(item: &T) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> src/trait.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S1` is never constructed [INFO] [stdout] --> src/trait.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | struct S1 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S2` is never constructed [INFO] [stdout] --> src/trait.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct S2 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `S1S2Using` is never used [INFO] [stdout] --> src/trait.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn S1S2Using() -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/trait.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/trait.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 124 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 125 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/trait.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 132 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 133 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rwl` is never used [INFO] [stdout] --> src/references_with_lifetime.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn rwl<'a>(str1: &'a str, str2: &'a str) -> &'a str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rwlResult` is never used [INFO] [stdout] --> src/references_with_lifetime.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn rwlResult() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/references_with_lifetime.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `asdf` is never used [INFO] [stdout] --> src/references_with_lifetime.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn asdf() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_lifetime` is never used [INFO] [stdout] --> src/references_with_lifetime.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn static_lifetime() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/references_with_lifetime.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn longest_with_an_announcement<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `e` is never used [INFO] [stdout] --> src/pointers/mod.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn e() {} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RcList` is never used [INFO] [stdout] --> src/pointers/rc.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum RcList { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rc_example` is never used [INFO] [stdout] --> src/pointers/rc.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn rc_example() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/pointers/box.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nested_list` is never used [INFO] [stdout] --> src/pointers/box.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn nested_list() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> src/pointers/defer_trait.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct MyBox(T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pointers/defer_trait.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl MyBox { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 7 | fn new(x: T) -> MyBox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> src/pointers/defer_trait.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn hello(name: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deref_coercion_example` is never used [INFO] [stdout] --> src/pointers/defer_trait.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn deref_coercion_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `no_deref_coercion_example` is never used [INFO] [stdout] --> src/pointers/defer_trait.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn no_deref_coercion_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CustomSmartPointer` is never constructed [INFO] [stdout] --> src/pointers/drop_trait.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct CustomSmartPointer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop_usage_example` is never used [INFO] [stdout] --> src/pointers/drop_trait.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn drop_usage_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop_example` is never used [INFO] [stdout] --> src/pointers/drop_trait.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn drop_example() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/pointers/refcell.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Messenger { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 16 | fn send(&self, msg: &str); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LimitTracker` is never constructed [INFO] [stdout] --> src/pointers/refcell.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct LimitTracker<'a, T: Messenger> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_value` are never used [INFO] [stdout] --> src/pointers/refcell.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 25 | / impl<'a, T> LimitTracker<'a, T> [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | T: Messenger, [INFO] [stdout] | |_____________________- associated items in this implementation [INFO] [stdout] 28 | { [INFO] [stdout] 29 | pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn set_value(&mut self, value: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/pointers/refcell.rs:115:6 [INFO] [stdout] | [INFO] [stdout] 115 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rc_rccell_list_usage` is never used [INFO] [stdout] --> src/pointers/refcell.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn rc_rccell_list_usage() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MmList` is never used [INFO] [stdout] --> src/pointers/memory_leak.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum MmList { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tail` is never used [INFO] [stdout] --> src/pointers/memory_leak.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl MmList { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 11 | fn tail(&self) -> Option<&RefCell>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mem_leak` is never used [INFO] [stdout] --> src/pointers/memory_leak.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn mem_leak() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Node { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(value: T) -> Node { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ll_proto_1` is never used [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn ll_proto_1() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeV2` is never constructed [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct NodeV2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_next`, and `get_value` are never used [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl NodeV2 { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 71 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn set_next(&mut self, node: NodeV2) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn get_value(&self)->&T{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ll_proto_1_1` is never used [INFO] [stdout] --> src/training/linked_list/prototype_1.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn ll_proto_1_1() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeV2` is never constructed [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct NodeV2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `move_next`, `move_prev`, and `remove` are never used [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn add(&mut self, value: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn move_next(&mut self) -> Option>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn move_prev() -> Option>>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn remove(&mut self, index: usize) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ll_proto_2` is never used [INFO] [stdout] --> src/training/linked_list/prototype_2.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn ll_proto_2() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `S1S2Using` should have a snake case name [INFO] [stdout] --> src/trait.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn S1S2Using() -> Box { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `s1_s2_using` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rwlResult` should have a snake case name [INFO] [stdout] --> src/references_with_lifetime.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn rwlResult() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rwl_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 114 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.34s [INFO] running `Command { std: "docker" "inspect" "281c3e379b74f25279b03008f52a66e258f3b7b726570e4270376065b6abd79e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "281c3e379b74f25279b03008f52a66e258f3b7b726570e4270376065b6abd79e", kill_on_drop: false }` [INFO] [stdout] 281c3e379b74f25279b03008f52a66e258f3b7b726570e4270376065b6abd79e