[INFO] cloning repository https://github.com/htoopyaelinn56/rust_book_practice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/htoopyaelinn56/rust_book_practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhtoopyaelinn56%2Frust_book_practice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhtoopyaelinn56%2Frust_book_practice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 04c9f4661fa2984ae690a51696e0ba58930194d2 [INFO] checking htoopyaelinn56/rust_book_practice against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhtoopyaelinn56%2Frust_book_practice" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/htoopyaelinn56/rust_book_practice [INFO] finished tweaking git repo https://github.com/htoopyaelinn56/rust_book_practice [INFO] tweaked toml for git repo https://github.com/htoopyaelinn56/rust_book_practice written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/htoopyaelinn56/rust_book_practice on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/htoopyaelinn56/rust_book_practice 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded trpl v0.2.0 [INFO] [stderr] Downloaded tower-http v0.6.4 [INFO] [stderr] Downloaded reqwest v0.12.18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ba58b1911b81c69c3d3ed886d8668f03ff841f11abc3720e2f631b6d47290b5 [INFO] running `Command { std: "docker" "start" "-a" "2ba58b1911b81c69c3d3ed886d8668f03ff841f11abc3720e2f631b6d47290b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ba58b1911b81c69c3d3ed886d8668f03ff841f11abc3720e2f631b6d47290b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ba58b1911b81c69c3d3ed886d8668f03ff841f11abc3720e2f631b6d47290b5", kill_on_drop: false }` [INFO] [stdout] 2ba58b1911b81c69c3d3ed886d8668f03ff841f11abc3720e2f631b6d47290b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a813abad312a925e72b75e19c19007b5e26222dc85c8f973f5a7c981b5b27ee [INFO] running `Command { std: "docker" "start" "-a" "6a813abad312a925e72b75e19c19007b5e26222dc85c8f973f5a7c981b5b27ee", kill_on_drop: false }` [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling cc v1.2.25 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking phf_shared v0.11.3 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking dtoa v1.0.10 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking phf_shared v0.10.0 [INFO] [stderr] Compiling html5ever v0.27.0 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Checking servo_arc v0.3.0 [INFO] [stderr] Checking dtoa-short v0.3.5 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking ego-tree v0.6.3 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking string_cache v0.8.9 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling selectors v0.25.0 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling markup5ever v0.12.1 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Checking cssparser v0.31.2 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking tower-http v0.6.4 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking h2 v0.4.10 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking scraper v0.20.0 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.13 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.18 [INFO] [stderr] Checking trpl v0.2.0 [INFO] [stderr] Checking rust_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/vector_test.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | / /// println!("{borrowed}"); <- occurs compile time error [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | /// mutable iteration [INFO] [stdout] | |_________________________^ [INFO] [stdout] 21 | / for i in v.iter_mut() { [INFO] [stdout] 22 | | *i *= -1; [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/error_handling_test.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{ErrorKind, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/trait_test.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/deref_drop_trait_test.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::pin` [INFO] [stdout] --> src/pin_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::pin::pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/vector_test.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | / /// println!("{borrowed}"); <- occurs compile time error [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | /// mutable iteration [INFO] [stdout] | |_________________________^ [INFO] [stdout] 21 | / for i in v.iter_mut() { [INFO] [stdout] 22 | | *i *= -1; [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/error_handling_test.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{ErrorKind, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | mod error_handling_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/trait_test.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | mod trait_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/deref_drop_trait_test.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | mod deref_drop_trait_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::pin` [INFO] [stdout] --> src/pin_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::pin::pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | mod pin_test; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/tuple_test.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let x = { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership_test.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut text = String::from("hello world"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `square` [INFO] [stdout] --> src/struct_test_2.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let square = Rectangle::square(30); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_square` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> src/enum_test.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let home = IpAddr::V4(127, 0, 0, 1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/enum_test.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let loopback = IpAddr::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/enum_test.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let m = Message::Move { x: 1, y: 2 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> src/enum_test.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_char` [INFO] [stdout] --> src/enum_test.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let some_char = Some('e'); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `absent_number` [INFO] [stdout] --> src/enum_test.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let absent_number: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_absent_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/enum_test.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/tuple_test.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let x = { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/enum_test.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let none = plus_one(None); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `None` [INFO] [stdout] | [INFO] [stdout] 42 - let none = plus_one(None); [INFO] [stdout] 42 + let std::prelude::v1::None = plus_one(None); [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 42 | let _none = plus_one(None); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_spaces` [INFO] [stdout] --> src/enum_test.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | fn move_player(num_spaces: u8) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_spaces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership_test.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut text = String::from("hello world"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrowed` [INFO] [stdout] --> src/vector_test.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let borrowed = &v[0]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrowed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `square` [INFO] [stdout] --> src/struct_test_2.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let square = Rectangle::square(30); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_square` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/vector_test.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/string_test.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let s3 = s1 + &s2; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> src/enum_test.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let home = IpAddr::V4(127, 0, 0, 1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/enum_test.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let loopback = IpAddr::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/enum_test.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let m = Message::Move { x: 1, y: 2 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> src/enum_test.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_char` [INFO] [stdout] --> src/enum_test.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let some_char = Some('e'); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `absent_number` [INFO] [stdout] --> src/enum_test.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let absent_number: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_absent_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/enum_test.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/hashmap_test.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let score = scores.get(&team_name).copied().unwrap_or(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file_result` [INFO] [stdout] --> src/error_handling_test.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let greeting_file_result = File::open("hello.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file` [INFO] [stdout] --> src/error_handling_test.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let greeting_file = File::open("hello.txt").unwrap_or_else(|error| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/enum_test.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let none = plus_one(None); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `None` [INFO] [stdout] | [INFO] [stdout] 42 - let none = plus_one(None); [INFO] [stdout] 42 + let std::prelude::v1::None = plus_one(None); [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 42 | let _none = plus_one(None); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_spaces` [INFO] [stdout] --> src/enum_test.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | fn move_player(num_spaces: u8) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_spaces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `borrowed` [INFO] [stdout] --> src/vector_test.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let borrowed = &v[0]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_borrowed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/vector_test.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/string_test.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let s3 = s1 + &s2; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/hashmap_test.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let score = scores.get(&team_name).copied().unwrap_or(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file_result` [INFO] [stdout] --> src/error_handling_test.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let greeting_file_result = File::open("hello.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file` [INFO] [stdout] --> src/error_handling_test.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let greeting_file = File::open("hello.txt").unwrap_or_else(|error| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pinned_struct` [INFO] [stdout] --> src/pin_test.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let pinned_struct = Pin::new(&mut my_struct); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pinned_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/variable_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tuple_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `condition_fn` is never used [INFO] [stdout] --> src/tuple_test.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn condition_fn() -> () { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/loop_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/ownership_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_ownership` is never used [INFO] [stdout] --> src/ownership_test.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn takes_ownership(some_string: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrow_ownership` is never used [INFO] [stdout] --> src/ownership_test.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn borrow_ownership(some_string: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `no_dangle` is never used [INFO] [stdout] --> src/ownership_test.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn no_dangle() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/ownership_test.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn first_word(s: &String) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/struct_test.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> src/struct_test.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Color(i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/struct_test.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Point(i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlwaysEqual` is never constructed [INFO] [stdout] --> src/struct_test.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct AlwaysEqual; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/struct_test.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_user` is never used [INFO] [stdout] --> src/struct_test.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn build_user(username: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/struct_test_2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area`, `can_hold`, and `square` are never used [INFO] [stdout] --> src/struct_test_2.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 8 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn square(size: u32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/struct_test_2.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/enum_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/enum_test.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Message { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 21 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UsState` is never used [INFO] [stdout] --> src/enum_test.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 74 | enum UsState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `existed_in` is never used [INFO] [stdout] --> src/enum_test.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl UsState { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 80 | fn existed_in(&self, year: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/enum_test.rs:89:6 [INFO] [stdout] | [INFO] [stdout] 89 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `value_in_cents` is never used [INFO] [stdout] --> src/enum_test.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn value_in_cents(coin: Coin) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call` is never used [INFO] [stdout] --> src/module_test.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn call() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> src/module_test_2.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn seat_at_table() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/module_test_2.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn take_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/module_test_2.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/module_test_2.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn take_payment() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/vector_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/string_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/hashmap_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/error_handling_test.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file` is never used [INFO] [stdout] --> src/error_handling_test.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_char_of_first_line` is never used [INFO] [stdout] --> src/error_handling_test.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn last_char_of_first_line(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/generics_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mix_up` is never used [INFO] [stdout] --> src/generics_test.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Point { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 9 | fn mix_up(self, other: Point) -> Point { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sum` is never used [INFO] [stdout] --> src/generics_test.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Point { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 18 | fn sum(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/generics_test.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/generics_test.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 29 | 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/generics_test.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 34 | / impl Pair [INFO] [stdout] 35 | | where [INFO] [stdout] 36 | | T: Display + PartialOrd, [INFO] [stdout] | |____________________________- method in this implementation [INFO] [stdout] 37 | { [INFO] [stdout] 38 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/generics_test.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summary` is never used [INFO] [stdout] --> src/trait_test.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Summary { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NewsArticle` is never constructed [INFO] [stdout] --> src/trait_test.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct NewsArticle { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tweet` is never constructed [INFO] [stdout] --> src/trait_test.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Tweet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> src/trait_test.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/trait_test.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn notify(item: &T) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/trait_test.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/lifetime_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/lifetime_test.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/test_cases.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn add(left: u64, right: u64) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/test_cases.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/test_cases.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 12 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greeting` is never used [INFO] [stdout] --> src/test_cases.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `panic_fn` is never used [INFO] [stdout] --> src/test_cases.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn panic_fn(num: u64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_duplicates` is never used [INFO] [stdout] --> src/two_pointer_remove_duplicates.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn remove_duplicates(nums: &mut Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/two_pointer_remove_duplicates.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/closure_test.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/closure_test.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/iterator_test.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/iterator_test.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shoes_in_size` is never used [INFO] [stdout] --> src/iterator_test.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn shoes_in_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/linked_list.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/linked_list.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> src/deref_drop_trait_test.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/deref_drop_trait_test.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 `main` is never used [INFO] [stdout] --> src/deref_drop_trait_test.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/reference_counting_test.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `perform` is never used [INFO] [stdout] --> src/reference_counting_test.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn perform(arg : &Rc) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `perform_by_ref_cell` is never used [INFO] [stdout] --> src/reference_counting_test.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn perform_by_ref_cell(arg : &Rc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/ref_cell_test.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/memory_leak_test.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/memory_leak_test.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 12 | fn new(value: i32) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeWithWeakRef` is never constructed [INFO] [stdout] --> src/memory_leak_test.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct NodeWithWeakRef { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/memory_leak_test.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl NodeWithWeakRef { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 29 | fn new(value: i32) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/memory_leak_test.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memory_leak` is never used [INFO] [stdout] --> src/memory_leak_test.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn memory_leak() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prevent_memory_leak` is never used [INFO] [stdout] --> src/memory_leak_test.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn prevent_memory_leak() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/thread_test.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/message_passing.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/shared_state_concurrency_test.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyStruct` is never constructed [INFO] [stdout] --> src/pin_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct MyStruct { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_without_pin` is never used [INFO] [stdout] --> src/pin_test.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn example_without_pin() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_with_pin` is never used [INFO] [stdout] --> src/pin_test.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn example_with_pin() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_data` is never used [INFO] [stdout] --> src/pin_test.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn move_data(my_data: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pinned_struct` [INFO] [stdout] --> src/pin_test.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let pinned_struct = Pin::new(&mut my_struct); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pinned_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/variable_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tuple_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `condition_fn` is never used [INFO] [stdout] --> src/tuple_test.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn condition_fn() -> () { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/loop_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/ownership_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_ownership` is never used [INFO] [stdout] --> src/ownership_test.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn takes_ownership(some_string: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrow_ownership` is never used [INFO] [stdout] --> src/ownership_test.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn borrow_ownership(some_string: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `no_dangle` is never used [INFO] [stdout] --> src/ownership_test.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn no_dangle() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/ownership_test.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn first_word(s: &String) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/struct_test.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Color` is never constructed [INFO] [stdout] --> src/struct_test.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Color(i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/struct_test.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Point(i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlwaysEqual` is never constructed [INFO] [stdout] --> src/struct_test.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct AlwaysEqual; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/struct_test.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_user` is never used [INFO] [stdout] --> src/struct_test.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn build_user(username: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/struct_test_2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area`, `can_hold`, and `square` are never used [INFO] [stdout] --> src/struct_test_2.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 8 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn square(size: u32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/struct_test_2.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/enum_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/enum_test.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Message { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 21 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UsState` is never used [INFO] [stdout] --> src/enum_test.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 74 | enum UsState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `existed_in` is never used [INFO] [stdout] --> src/enum_test.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl UsState { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 80 | fn existed_in(&self, year: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/enum_test.rs:89:6 [INFO] [stdout] | [INFO] [stdout] 89 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `value_in_cents` is never used [INFO] [stdout] --> src/enum_test.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn value_in_cents(coin: Coin) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call` is never used [INFO] [stdout] --> src/module_test.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn call() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> src/module_test_2.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn seat_at_table() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/module_test_2.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn take_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/module_test_2.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/module_test_2.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn take_payment() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/vector_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/string_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/hashmap_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/error_handling_test.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file` is never used [INFO] [stdout] --> src/error_handling_test.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_char_of_first_line` is never used [INFO] [stdout] --> src/error_handling_test.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn last_char_of_first_line(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/generics_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mix_up` is never used [INFO] [stdout] --> src/generics_test.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Point { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 9 | fn mix_up(self, other: Point) -> Point { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sum` is never used [INFO] [stdout] --> src/generics_test.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Point { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 18 | fn sum(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/generics_test.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/generics_test.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 29 | 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/generics_test.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 34 | / impl Pair [INFO] [stdout] 35 | | where [INFO] [stdout] 36 | | T: Display + PartialOrd, [INFO] [stdout] | |____________________________- method in this implementation [INFO] [stdout] 37 | { [INFO] [stdout] 38 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/generics_test.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summary` is never used [INFO] [stdout] --> src/trait_test.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Summary { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NewsArticle` is never constructed [INFO] [stdout] --> src/trait_test.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct NewsArticle { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tweet` is never constructed [INFO] [stdout] --> src/trait_test.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Tweet { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> src/trait_test.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/trait_test.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn notify(item: &T) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/trait_test.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/lifetime_test.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/lifetime_test.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_duplicates` is never used [INFO] [stdout] --> src/two_pointer_remove_duplicates.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn remove_duplicates(nums: &mut Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/two_pointer_remove_duplicates.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/closure_test.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/closure_test.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/iterator_test.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/linked_list.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/linked_list.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> src/deref_drop_trait_test.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/deref_drop_trait_test.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 `main` is never used [INFO] [stdout] --> src/deref_drop_trait_test.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/reference_counting_test.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `perform` is never used [INFO] [stdout] --> src/reference_counting_test.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn perform(arg : &Rc) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `perform_by_ref_cell` is never used [INFO] [stdout] --> src/reference_counting_test.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn perform_by_ref_cell(arg : &Rc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/ref_cell_test.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/memory_leak_test.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/memory_leak_test.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 12 | fn new(value: i32) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeWithWeakRef` is never constructed [INFO] [stdout] --> src/memory_leak_test.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct NodeWithWeakRef { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/memory_leak_test.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl NodeWithWeakRef { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 29 | fn new(value: i32) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/memory_leak_test.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memory_leak` is never used [INFO] [stdout] --> src/memory_leak_test.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn memory_leak() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prevent_memory_leak` is never used [INFO] [stdout] --> src/memory_leak_test.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn prevent_memory_leak() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/thread_test.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/message_passing.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/shared_state_concurrency_test.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_with_pin` is never used [INFO] [stdout] --> src/pin_test.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn example_with_pin() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.30s [INFO] running `Command { std: "docker" "inspect" "6a813abad312a925e72b75e19c19007b5e26222dc85c8f973f5a7c981b5b27ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a813abad312a925e72b75e19c19007b5e26222dc85c8f973f5a7c981b5b27ee", kill_on_drop: false }` [INFO] [stdout] 6a813abad312a925e72b75e19c19007b5e26222dc85c8f973f5a7c981b5b27ee