[INFO] cloning repository https://github.com/0xAsten/hello_guessing_game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0xAsten/hello_guessing_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xAsten%2Fhello_guessing_game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xAsten%2Fhello_guessing_game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f13cba1ebe528327e81b366d37b06794d5303921 [INFO] building 0xAsten/hello_guessing_game against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xAsten%2Fhello_guessing_game" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/0xAsten/hello_guessing_game on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/0xAsten/hello_guessing_game [INFO] finished tweaking git repo https://github.com/0xAsten/hello_guessing_game [INFO] tweaked toml for git repo https://github.com/0xAsten/hello_guessing_game written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/0xAsten/hello_guessing_game already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b8c6afc4df450cd3d4dd3c7cd841bab989fe0b22bb823e4d0bf0dbb611b2033b [INFO] running `Command { std: "docker" "start" "-a" "b8c6afc4df450cd3d4dd3c7cd841bab989fe0b22bb823e4d0bf0dbb611b2033b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b8c6afc4df450cd3d4dd3c7cd841bab989fe0b22bb823e4d0bf0dbb611b2033b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8c6afc4df450cd3d4dd3c7cd841bab989fe0b22bb823e4d0bf0dbb611b2033b", kill_on_drop: false }` [INFO] [stdout] b8c6afc4df450cd3d4dd3c7cd841bab989fe0b22bb823e4d0bf0dbb611b2033b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 566264b3237887d672c2f4cb6bca078028e6dcb06dcf055fa76ea4ada46a60d9 [INFO] running `Command { std: "docker" "start" "-a" "566264b3237887d672c2f4cb6bca078028e6dcb06dcf055fa76ea4ada46a60d9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling rustix v0.38.4 [INFO] [stderr] Compiling linux-raw-sys v0.4.3 [INFO] [stderr] Compiling bitflags v2.3.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling colored v2.0.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hello_guessing_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/bin/generics/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 3 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 4 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x` and `mix` are never used [INFO] [stdout] --> src/bin/generics/main.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Point { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 8 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn mix(self, other: Point) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/error_handling/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/error_handling/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let f = File::open("hello.text").unwrap_or_else(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/error_handling/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut f = File::open("hello.txt")?.read_to_string(&mut s)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/error_handling/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut f = File::open("hello.txt")?.read_to_string(&mut s)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_file_1` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn open_file_1() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_1` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn read_username_from_file_1() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_2` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn read_username_from_file_2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_3` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn read_username_from_file_3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let b = Cons(3, Rc::clone(&a)); // doesn't make deep copy of a only increments the reference count of a [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let c = 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: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 3 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Messenger` is never used [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | trait Messenger { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LimitTracker` is never constructed [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct LimitTracker<'a, T: Messenger> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/bin/smart_pointer/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_value` are never used [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 33 | / impl<'a, T> LimitTracker<'a, T> [INFO] [stdout] 34 | | where [INFO] [stdout] 35 | | T: Messenger, [INFO] [stdout] | |_________________- associated items in this implementation [INFO] [stdout] 36 | { [INFO] [stdout] 37 | fn new(messenger: &T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn set_value(&mut self, value: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cached_result` [INFO] [stdout] --> src/bin/closures/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut cached_result = Cacher::new(|num| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cached_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/bin/closures/main.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | fn generate_workout(num: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/closures/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut cached_result = Cacher::new(|num| { [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/smart_pointer/main.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cacher` is never constructed [INFO] [stdout] --> src/bin/closures/main.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Cacher [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/bin/closures/main.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 11 | / impl Cacher [INFO] [stdout] 12 | | where [INFO] [stdout] 13 | | T: Fn(u32) -> u32, [INFO] [stdout] | |______________________- associated items in this implementation [INFO] [stdout] 14 | { [INFO] [stdout] 15 | fn new(calculation: T) -> Cacher { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn value(&mut self, arg: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> src/bin/smart_pointer/main.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct MyBox(T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl MyBox { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 17 | fn new(x: T) -> MyBox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_mybox` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn use_mybox() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn hello(name: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CustomSmartPointer` is never constructed [INFO] [stdout] --> src/bin/smart_pointer/main.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct CustomSmartPointer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop_before_end` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn drop_before_end() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_workout` is never used [INFO] [stdout] --> src/bin/closures/main.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn generate_workout(num: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closuer_env` is never used [INFO] [stdout] --> src/bin/closures/main.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn closuer_env() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closuer_env_FnOnce` is never used [INFO] [stdout] --> src/bin/closures/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn closuer_env_FnOnce() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closuer_env_FnOnce` should have a snake case name [INFO] [stdout] --> src/bin/closures/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn closuer_env_FnOnce() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `closuer_env_fn_once` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/generic_lifetime_annotation/main.rs:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | fn longest_2<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/bin/generic_lifetime_annotation/main.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `return_part` is never used [INFO] [stdout] --> src/bin/generic_lifetime_annotation/main.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 8 | fn return_part(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector` is never used [INFO] [stdout] --> src/bin/collections/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn vector() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string` is never used [INFO] [stdout] --> src/bin/collections/main.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn string() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/bin/iterator/main.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | struct Counter { [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/bin/iterator/main.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 59 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guessing_game` is never used [INFO] [stdout] --> src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn guessing_game() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item1` [INFO] [stdout] --> src/bin/traits/main.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | fn notify_3(item1: &impl Summary, item2: &impl Summary) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/bin/traits/main.rs:40:35 [INFO] [stdout] | [INFO] [stdout] 40 | fn notify_3(item1: &impl Summary, item2: &impl Summary) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item1` [INFO] [stdout] --> src/bin/traits/main.rs:44:25 [INFO] [stdout] | [INFO] [stdout] 44 | fn notify_4(item1: &T, item2: &T) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/bin/traits/main.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 44 | fn notify_4(item1: &T, item2: &T) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/traits/main.rs:49:53 [INFO] [stdout] | [INFO] [stdout] 49 | fn some_fun_1(t: &T, u: &U) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/bin/traits/main.rs:49:60 [INFO] [stdout] | [INFO] [stdout] 49 | fn some_fun_1(t: &T, u: &U) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/traits/main.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | fn some_fun_2(t: &T, u: &U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/bin/traits/main.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | fn some_fun_2(t: &T, u: &U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `headline` is never read [INFO] [stdout] --> src/bin/traits/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 4 | author: String, [INFO] [stdout] 5 | headline: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tweet` is never constructed [INFO] [stdout] --> src/bin/traits/main.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Tweet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_2` is never used [INFO] [stdout] --> src/bin/traits/main.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn notify_2(item: &T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_3` is never used [INFO] [stdout] --> src/bin/traits/main.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn notify_3(item1: &impl Summary, item2: &impl Summary) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_4` is never used [INFO] [stdout] --> src/bin/traits/main.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn notify_4(item1: &T, item2: &T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_fun_1` is never used [INFO] [stdout] --> src/bin/traits/main.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn some_fun_1(t: &T, u: &U) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_fun_2` is never used [INFO] [stdout] --> src/bin/traits/main.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn some_fun_2(t: &T, u: &U) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> src/bin/traits/main.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/bin/traits/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/traits/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 77 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compare` is never used [INFO] [stdout] --> src/bin/traits/main.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 82 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 83 | fn compare(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/concurrency/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> src/bin/advanced_trait/main.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/bin/advanced_trait/main.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Counter {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator2` is never used [INFO] [stdout] --> src/bin/advanced_trait/main.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | trait Iterator2 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OutlinePrint` is never used [INFO] [stdout] --> src/bin/advanced_trait/main.rs:130:7 [INFO] [stdout] | [INFO] [stdout] 130 | trait OutlinePrint: fmt::Display {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.73s [INFO] running `Command { std: "docker" "inspect" "566264b3237887d672c2f4cb6bca078028e6dcb06dcf055fa76ea4ada46a60d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "566264b3237887d672c2f4cb6bca078028e6dcb06dcf055fa76ea4ada46a60d9", kill_on_drop: false }` [INFO] [stdout] 566264b3237887d672c2f4cb6bca078028e6dcb06dcf055fa76ea4ada46a60d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d1f892e5eadf10d0c02405f8e1fe3d139e37cd426742d0bddb7c0e19229f5fc [INFO] running `Command { std: "docker" "start" "-a" "5d1f892e5eadf10d0c02405f8e1fe3d139e37cd426742d0bddb7c0e19229f5fc", kill_on_drop: false }` [INFO] [stderr] Compiling hello_guessing_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/bin/smart_pointer/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/smart_pointer/main.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> src/bin/smart_pointer/main.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct MyBox(T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl MyBox { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 17 | fn new(x: T) -> MyBox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_mybox` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn use_mybox() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn hello(name: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CustomSmartPointer` is never constructed [INFO] [stdout] --> src/bin/smart_pointer/main.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct CustomSmartPointer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop_before_end` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn drop_before_end() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let b = Cons(3, Rc::clone(&a)); // doesn't make deep copy of a only increments the reference count of a [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let c = 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: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 3 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Messenger` is never used [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | trait Messenger { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LimitTracker` is never constructed [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | 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/bin/smart_pointer_rc/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 33 | / impl<'a, T> LimitTracker<'a, T> [INFO] [stdout] 34 | | where [INFO] [stdout] 35 | | T: Messenger, [INFO] [stdout] | |_________________- associated items in this implementation [INFO] [stdout] 36 | { [INFO] [stdout] 37 | fn new(messenger: &T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn set_value(&mut self, value: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/generic_lifetime_annotation/main.rs:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | fn longest_2<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/bin/generic_lifetime_annotation/main.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `return_part` is never used [INFO] [stdout] --> src/bin/generic_lifetime_annotation/main.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 8 | fn return_part(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guessing_game` is never used [INFO] [stdout] --> src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn guessing_game() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> src/bin/advanced_trait/main.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/bin/advanced_trait/main.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Counter {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator2` is never used [INFO] [stdout] --> src/bin/advanced_trait/main.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | trait Iterator2 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OutlinePrint` is never used [INFO] [stdout] --> src/bin/advanced_trait/main.rs:130:7 [INFO] [stdout] | [INFO] [stdout] 130 | trait OutlinePrint: fmt::Display {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/concurrency/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/bin/iterator/main.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | struct Counter { [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/bin/iterator/main.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 59 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/bin/generics/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 3 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 4 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x` and `mix` are never used [INFO] [stdout] --> src/bin/generics/main.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Point { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 8 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn mix(self, other: Point) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item1` [INFO] [stdout] --> src/bin/traits/main.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | fn notify_3(item1: &impl Summary, item2: &impl Summary) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/bin/traits/main.rs:40:35 [INFO] [stdout] | [INFO] [stdout] 40 | fn notify_3(item1: &impl Summary, item2: &impl Summary) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item1` [INFO] [stdout] --> src/bin/traits/main.rs:44:25 [INFO] [stdout] | [INFO] [stdout] 44 | fn notify_4(item1: &T, item2: &T) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/bin/traits/main.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 44 | fn notify_4(item1: &T, item2: &T) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/traits/main.rs:49:53 [INFO] [stdout] | [INFO] [stdout] 49 | fn some_fun_1(t: &T, u: &U) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/bin/traits/main.rs:49:60 [INFO] [stdout] | [INFO] [stdout] 49 | fn some_fun_1(t: &T, u: &U) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/traits/main.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | fn some_fun_2(t: &T, u: &U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/bin/traits/main.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | fn some_fun_2(t: &T, u: &U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `headline` is never read [INFO] [stdout] --> src/bin/traits/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 4 | author: String, [INFO] [stdout] 5 | headline: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tweet` is never constructed [INFO] [stdout] --> src/bin/traits/main.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Tweet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_2` is never used [INFO] [stdout] --> src/bin/traits/main.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn notify_2(item: &T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_3` is never used [INFO] [stdout] --> src/bin/traits/main.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn notify_3(item1: &impl Summary, item2: &impl Summary) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_4` is never used [INFO] [stdout] --> src/bin/traits/main.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn notify_4(item1: &T, item2: &T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_fun_1` is never used [INFO] [stdout] --> src/bin/traits/main.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn some_fun_1(t: &T, u: &U) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_fun_2` is never used [INFO] [stdout] --> src/bin/traits/main.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn some_fun_2(t: &T, u: &U) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> src/bin/traits/main.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/bin/traits/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/traits/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 77 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compare` is never used [INFO] [stdout] --> src/bin/traits/main.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 82 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 83 | fn compare(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let b = Cons(3, Rc::clone(&a)); // doesn't make deep copy of a only increments the reference count of a [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let c = 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: `i` [INFO] [stdout] --> src/bin/concurrency/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/smart_pointer_rc/main.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 3 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> src/bin/advanced_trait/main.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/bin/advanced_trait/main.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Counter {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator2` is never used [INFO] [stdout] --> src/bin/advanced_trait/main.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | trait Iterator2 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OutlinePrint` is never used [INFO] [stdout] --> src/bin/advanced_trait/main.rs:130:7 [INFO] [stdout] | [INFO] [stdout] 130 | trait OutlinePrint: fmt::Display {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cached_result` [INFO] [stdout] --> src/bin/closures/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut cached_result = Cacher::new(|num| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cached_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/bin/closures/main.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | fn generate_workout(num: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/closures/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut cached_result = Cacher::new(|num| { [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cacher` is never constructed [INFO] [stdout] --> src/bin/closures/main.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Cacher [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/bin/closures/main.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 11 | / impl Cacher [INFO] [stdout] 12 | | where [INFO] [stdout] 13 | | T: Fn(u32) -> u32, [INFO] [stdout] | |______________________- associated items in this implementation [INFO] [stdout] 14 | { [INFO] [stdout] 15 | fn new(calculation: T) -> Cacher { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn value(&mut self, arg: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_workout` is never used [INFO] [stdout] --> src/bin/closures/main.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn generate_workout(num: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closuer_env` is never used [INFO] [stdout] --> src/bin/closures/main.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn closuer_env() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closuer_env_FnOnce` is never used [INFO] [stdout] --> src/bin/closures/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn closuer_env_FnOnce() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closuer_env_FnOnce` should have a snake case name [INFO] [stdout] --> src/bin/closures/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn closuer_env_FnOnce() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `closuer_env_fn_once` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guessing_game` is never used [INFO] [stdout] --> src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn guessing_game() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/generic_lifetime_annotation/main.rs:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | fn longest_2<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/bin/generic_lifetime_annotation/main.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `return_part` is never used [INFO] [stdout] --> src/bin/generic_lifetime_annotation/main.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 8 | fn return_part(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/bin/smart_pointer/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item1` [INFO] [stdout] --> src/bin/traits/main.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | fn notify_3(item1: &impl Summary, item2: &impl Summary) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/bin/generics/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 3 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 4 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector` is never used [INFO] [stdout] --> src/bin/collections/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn vector() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string` is never used [INFO] [stdout] --> src/bin/collections/main.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn string() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x` and `mix` are never used [INFO] [stdout] --> src/bin/generics/main.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Point { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 8 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn mix(self, other: Point) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/bin/traits/main.rs:40:35 [INFO] [stdout] | [INFO] [stdout] 40 | fn notify_3(item1: &impl Summary, item2: &impl Summary) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/smart_pointer/main.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> src/bin/smart_pointer/main.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct MyBox(T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl MyBox { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 17 | fn new(x: T) -> MyBox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item1` [INFO] [stdout] --> src/bin/traits/main.rs:44:25 [INFO] [stdout] | [INFO] [stdout] 44 | fn notify_4(item1: &T, item2: &T) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_mybox` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn use_mybox() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn hello(name: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CustomSmartPointer` is never constructed [INFO] [stdout] --> src/bin/smart_pointer/main.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct CustomSmartPointer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/bin/traits/main.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 44 | fn notify_4(item1: &T, item2: &T) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/traits/main.rs:49:53 [INFO] [stdout] | [INFO] [stdout] 49 | fn some_fun_1(t: &T, u: &U) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/bin/traits/main.rs:49:60 [INFO] [stdout] | [INFO] [stdout] 49 | fn some_fun_1(t: &T, u: &U) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/traits/main.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | fn some_fun_2(t: &T, u: &U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/bin/traits/main.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | fn some_fun_2(t: &T, u: &U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop_before_end` is never used [INFO] [stdout] --> src/bin/smart_pointer/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn drop_before_end() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `headline` is never read [INFO] [stdout] --> src/bin/traits/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 4 | author: String, [INFO] [stdout] 5 | headline: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tweet` is never constructed [INFO] [stdout] --> src/bin/traits/main.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Tweet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_2` is never used [INFO] [stdout] --> src/bin/traits/main.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn notify_2(item: &T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_3` is never used [INFO] [stdout] --> src/bin/traits/main.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn notify_3(item1: &impl Summary, item2: &impl Summary) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_4` is never used [INFO] [stdout] --> src/bin/traits/main.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn notify_4(item1: &T, item2: &T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_fun_1` is never used [INFO] [stdout] --> src/bin/traits/main.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn some_fun_1(t: &T, u: &U) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_fun_2` is never used [INFO] [stdout] --> src/bin/traits/main.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn some_fun_2(t: &T, u: &U) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> src/bin/traits/main.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/bin/traits/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/traits/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 77 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compare` is never used [INFO] [stdout] --> src/bin/traits/main.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 82 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 83 | fn compare(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/error_handling/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/error_handling/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let f = File::open("hello.text").unwrap_or_else(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/error_handling/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut f = File::open("hello.txt")?.read_to_string(&mut s)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/error_handling/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut f = File::open("hello.txt")?.read_to_string(&mut s)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_file_1` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn open_file_1() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_1` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn read_username_from_file_1() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_2` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn read_username_from_file_2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_3` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn read_username_from_file_3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector` is never used [INFO] [stdout] --> src/bin/collections/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn vector() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string` is never used [INFO] [stdout] --> src/bin/collections/main.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn string() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cached_result` [INFO] [stdout] --> src/bin/closures/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut cached_result = Cacher::new(|num| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cached_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/bin/closures/main.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | fn generate_workout(num: u32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/closures/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut cached_result = Cacher::new(|num| { [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cacher` is never constructed [INFO] [stdout] --> src/bin/closures/main.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Cacher [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/bin/closures/main.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 11 | / impl Cacher [INFO] [stdout] 12 | | where [INFO] [stdout] 13 | | T: Fn(u32) -> u32, [INFO] [stdout] | |______________________- associated items in this implementation [INFO] [stdout] 14 | { [INFO] [stdout] 15 | fn new(calculation: T) -> Cacher { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn value(&mut self, arg: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_workout` is never used [INFO] [stdout] --> src/bin/closures/main.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn generate_workout(num: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closuer_env` is never used [INFO] [stdout] --> src/bin/closures/main.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn closuer_env() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closuer_env_FnOnce` is never used [INFO] [stdout] --> src/bin/closures/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn closuer_env_FnOnce() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closuer_env_FnOnce` should have a snake case name [INFO] [stdout] --> src/bin/closures/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn closuer_env_FnOnce() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `closuer_env_fn_once` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/error_handling/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/error_handling/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let f = File::open("hello.text").unwrap_or_else(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/error_handling/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut f = File::open("hello.txt")?.read_to_string(&mut s)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/error_handling/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut f = File::open("hello.txt")?.read_to_string(&mut s)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_file_1` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn open_file_1() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_1` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn read_username_from_file_1() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_2` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn read_username_from_file_2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_3` is never used [INFO] [stdout] --> src/bin/error_handling/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn read_username_from_file_3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "5d1f892e5eadf10d0c02405f8e1fe3d139e37cd426742d0bddb7c0e19229f5fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d1f892e5eadf10d0c02405f8e1fe3d139e37cd426742d0bddb7c0e19229f5fc", kill_on_drop: false }` [INFO] [stdout] 5d1f892e5eadf10d0c02405f8e1fe3d139e37cd426742d0bddb7c0e19229f5fc