[INFO] cloning repository https://github.com/UnicornRust/Rust-Grammer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/UnicornRust/Rust-Grammer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnicornRust%2FRust-Grammer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnicornRust%2FRust-Grammer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f907226d342c807da60b29b0b72d231e333755cd [INFO] checking UnicornRust/Rust-Grammer against try#50d7e48beb74b48bd17c3749bfb73843c9ae0166 for pr-151102 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnicornRust%2FRust-Grammer" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/UnicornRust/Rust-Grammer [INFO] finished tweaking git repo https://github.com/UnicornRust/Rust-Grammer [INFO] tweaked toml for git repo https://github.com/UnicornRust/Rust-Grammer written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/UnicornRust/Rust-Grammer on toolchain 50d7e48beb74b48bd17c3749bfb73843c9ae0166 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/UnicornRust/Rust-Grammer 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" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking UnicornRust/Rust-Grammer against try#50d7e48beb74b48bd17c3749bfb73843c9ae0166 for pr-151102 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnicornRust%2FRust-Grammer" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/UnicornRust/Rust-Grammer [INFO] finished tweaking git repo https://github.com/UnicornRust/Rust-Grammer [INFO] tweaked toml for git repo https://github.com/UnicornRust/Rust-Grammer written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/UnicornRust/Rust-Grammer on toolchain 50d7e48beb74b48bd17c3749bfb73843c9ae0166 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/UnicornRust/Rust-Grammer 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" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41a23d8af5def401758de79ceca86ec816057640d1c3b584204d0b94d609f55f [INFO] running `Command { std: "docker" "start" "-a" "41a23d8af5def401758de79ceca86ec816057640d1c3b584204d0b94d609f55f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41a23d8af5def401758de79ceca86ec816057640d1c3b584204d0b94d609f55f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41a23d8af5def401758de79ceca86ec816057640d1c3b584204d0b94d609f55f", kill_on_drop: false }` [INFO] [stdout] 41a23d8af5def401758de79ceca86ec816057640d1c3b584204d0b94d609f55f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c841398dd4908b4f06d1b56d6674986c9940a57d458e4dc0495cd90c966bb9d [INFO] running `Command { std: "docker" "start" "-a" "2c841398dd4908b4f06d1b56d6674986c9940a57d458e4dc0495cd90c966bb9d", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling syn v2.0.70 [INFO] [stderr] Checking rayon-core v1.13.0 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking rs_grammer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/intellpoint/phantomData.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [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 imports: `cmp::Ordering` and `io` [INFO] [stdout] --> src/loops/loop_use.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::Ordering, io}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::personality` [INFO] [stdout] --> src/thread/mutex.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use libc::personality; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Thread` [INFO] [stdout] --> src/thread/rwlock.rs:18:47 [INFO] [stdout] | [INFO] [stdout] 18 | use std::{sync::{Arc, RwLock}, thread::{self, Thread}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/variable/varray.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/variable/vvec.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/traits/embed.rs:209:22 [INFO] [stdout] | [INFO] [stdout] 209 | let ref_my_box = (m.deref()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 209 - let ref_my_box = (m.deref()); [INFO] [stdout] 209 + let ref_my_box = m.deref(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/prelude/result.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/ipc/shmem.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ptr, sync::Arc, thread, time::Duration}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SocketAddr` [INFO] [stdout] --> src/ipc/unix.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs, io::{Read, Write}, os::unix::net::{SocketAddr, UnixListener, UnixStream}, thread}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/intellpoint/phantomData.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [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 imports: `cmp::Ordering` and `io` [INFO] [stdout] --> src/loops/loop_use.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::Ordering, io}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::personality` [INFO] [stdout] --> src/thread/mutex.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use libc::personality; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Thread` [INFO] [stdout] --> src/thread/rwlock.rs:18:47 [INFO] [stdout] | [INFO] [stdout] 18 | use std::{sync::{Arc, RwLock}, thread::{self, Thread}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/variable/varray.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/variable/vvec.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/traits/embed.rs:209:22 [INFO] [stdout] | [INFO] [stdout] 209 | let ref_my_box = (m.deref()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 209 - let ref_my_box = (m.deref()); [INFO] [stdout] 209 + let ref_my_box = m.deref(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/prelude/result.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/ipc/shmem.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ptr, sync::Arc, thread, time::Duration}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SocketAddr` [INFO] [stdout] --> src/ipc/unix.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs, io::{Read, Write}, os::unix::net::{SocketAddr, UnixListener, UnixStream}, thread}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/intellpoint/cycle_ref.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::BorrowMut, cell::RefCell, rc::{Rc, Weak}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/advance/raw.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let r = address as *const i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/advance/alias.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | fn take_long_type(f: Box) { [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/advance/alias.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | fn take_short_type(f: Thunk){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/blog/statemode.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/branch/match_use.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | fn all_handle(other: i8) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/closures/closure_args.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | fn call_fn(f: F) {} [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/closures/closure_args.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | fn call_fn_mut(f: F){} [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/closures/closure_args.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | fn call_fn_once(f: F) {} [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/closures/closure_args.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut c = || { [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: `item1` [INFO] [stdout] --> src/generic/gentrait.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | fn notify_1(item1: &impl Summary, item2: &impl Summary) {} [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/generic/gentrait.rs:107:35 [INFO] [stdout] | [INFO] [stdout] 107 | fn notify_1(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/generic/gentrait.rs:112:25 [INFO] [stdout] | [INFO] [stdout] 112 | fn notify_2(item1: &T, item: &T) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/generic/gentrait.rs:112:36 [INFO] [stdout] | [INFO] [stdout] 112 | fn notify_2(item1: &T, item: &T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/generic/gentrait.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | fn notify_3(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/generic/gentrait.rs:120:35 [INFO] [stdout] | [INFO] [stdout] 120 | fn notify_4(item: &T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/generic/gentrait.rs:127:51 [INFO] [stdout] | [INFO] [stdout] 127 | fn some_fun(t: &T, u: &U) -> i32 { [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/generic/gentrait.rs:127:58 [INFO] [stdout] | [INFO] [stdout] 127 | fn some_fun(t: &T, u: &U) -> i32 { [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/generic/gentrait.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | fn some_fun_1(t: &T, u: &U) -> i32 [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/generic/gentrait.rs:132:28 [INFO] [stdout] | [INFO] [stdout] 132 | fn some_fun_1(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/iofs/pathfile.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut output = match output { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/iofs/pathfile.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let file = OpenOptions::new() [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/iofs/pathfile.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let mut file = File::open(path).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/iofs/pathfile.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let mut file2 = File::open(path).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership/dynamicsize.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut string_data = String::from("hello world"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owner_new` [INFO] [stdout] --> src/ownership/dynamicsize.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let owner_new = owner_old; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_owner_new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership/shareReference.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut dynamic_source = String::from("Content"); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role2` [INFO] [stdout] --> src/ownership/shareReference.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let role2 = role1; // 只有 role1 把 所有权交给 role2, role2 才能访问 [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_role2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rela1` [INFO] [stdout] --> src/ownership/shareReference.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let rela1 = container.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rela1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rela2` [INFO] [stdout] --> src/ownership/shareReference.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let rela2 = container.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rela2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/intellpoint/cycle_ref.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::BorrowMut, cell::RefCell, rc::{Rc, Weak}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership/ownership.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut data = String::from("The value world is True"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/ownership/ownership.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let y = s; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/ownership/ownership.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let r1 = &s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/ownership/ownership.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let r2 = &s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/ownership/ownership.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let s1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/advance/raw.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let r = address as *const i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pattern/matching.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/pattern/pgrammer.rs:162:11 [INFO] [stdout] | [INFO] [stdout] 162 | let ((feet, inches), Point { x, y }) = ((3, 19), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/pattern/pgrammer.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let ((feet, inches), Point { x, y }) = ((3, 19), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pattern/pgrammer.rs:162:34 [INFO] [stdout] | [INFO] [stdout] 162 | let ((feet, inches), Point { x, y }) = ((3, 19), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/pattern/pgrammer.rs:162:37 [INFO] [stdout] | [INFO] [stdout] 162 | let ((feet, inches), Point { x, y }) = ((3, 19), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/advance/alias.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | fn take_long_type(f: Box) { [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/advance/alias.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | fn take_short_type(f: Thunk){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/blog/statemode.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/branch/match_use.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | fn all_handle(other: i8) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/closures/closure_args.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | fn call_fn(f: F) {} [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/closures/closure_args.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | fn call_fn_mut(f: F){} [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/closures/closure_args.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | fn call_fn_once(f: F) {} [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/closures/closure_args.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut c = || { [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: `i` [INFO] [stdout] --> src/thread/rwlock.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item1` [INFO] [stdout] --> src/generic/gentrait.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | fn notify_1(item1: &impl Summary, item2: &impl Summary) {} [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/generic/gentrait.rs:107:35 [INFO] [stdout] | [INFO] [stdout] 107 | fn notify_1(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/generic/gentrait.rs:112:25 [INFO] [stdout] | [INFO] [stdout] 112 | fn notify_2(item1: &T, item: &T) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/generic/gentrait.rs:112:36 [INFO] [stdout] | [INFO] [stdout] 112 | fn notify_2(item1: &T, item: &T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/generic/gentrait.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | fn notify_3(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/generic/gentrait.rs:120:35 [INFO] [stdout] | [INFO] [stdout] 120 | fn notify_4(item: &T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/generic/gentrait.rs:127:51 [INFO] [stdout] | [INFO] [stdout] 127 | fn some_fun(t: &T, u: &U) -> i32 { [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/generic/gentrait.rs:127:58 [INFO] [stdout] | [INFO] [stdout] 127 | fn some_fun(t: &T, u: &U) -> i32 { [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/generic/gentrait.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | fn some_fun_1(t: &T, u: &U) -> i32 [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/generic/gentrait.rs:132:28 [INFO] [stdout] | [INFO] [stdout] 132 | fn some_fun_1(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/variable/vvec.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut vec2 = vec![1, 2, 3, 4]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/eventloop/handler.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let message = format!("{} => {}", event, data); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/iofs/pathfile.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut output = match output { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/iofs/pathfile.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let file = OpenOptions::new() [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/iofs/pathfile.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let mut file = File::open(path).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/iofs/pathfile.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let mut file2 = File::open(path).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owner_two` [INFO] [stdout] --> src/traits/embed.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let owner_two = owner_one; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_owner_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> src/traits/embed.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let v2 = v1.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3` [INFO] [stdout] --> src/traits/embed.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let v3 = v.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/traits/embed.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let mut user = User { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/traits/embed.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let mut user = User { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ref_my_box` [INFO] [stdout] --> src/traits/embed.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | let ref_my_box = *m; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ref_my_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/prelude/option.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let hello = Some("hello"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/prelude/option.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let number = Some(5); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/prelude/option.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let none: Option = 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] 14 - let none: Option = None; [INFO] [stdout] 14 + let std::prelude::v1::None: Option = None; [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 14 | let _none: Option = None; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership/dynamicsize.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut string_data = String::from("hello world"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owner_new` [INFO] [stdout] --> src/ownership/dynamicsize.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let owner_new = owner_old; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_owner_new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/ipc/unix.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let handle = thread::spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership/shareReference.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut dynamic_source = String::from("Content"); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role2` [INFO] [stdout] --> src/ownership/shareReference.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let role2 = role1; // 只有 role1 把 所有权交给 role2, role2 才能访问 [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_role2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rela1` [INFO] [stdout] --> src/ownership/shareReference.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let rela1 = container.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rela1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rela2` [INFO] [stdout] --> src/ownership/shareReference.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let rela2 = container.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rela2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership/ownership.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut data = String::from("The value world is True"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/ownership/ownership.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let y = s; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/ownership/ownership.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let r1 = &s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/ownership/ownership.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let r2 = &s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/ownership/ownership.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let s1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafecode/metype.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut engine = Box::pin(Self { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map_ptr` [INFO] [stdout] --> src/unsafecode/metype.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let map_ptr: *const HashMap = &engine.map; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_map_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pattern/matching.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/pattern/pgrammer.rs:162:11 [INFO] [stdout] | [INFO] [stdout] 162 | let ((feet, inches), Point { x, y }) = ((3, 19), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/pattern/pgrammer.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let ((feet, inches), Point { x, y }) = ((3, 19), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pattern/pgrammer.rs:162:34 [INFO] [stdout] | [INFO] [stdout] 162 | let ((feet, inches), Point { x, y }) = ((3, 19), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/advance/union.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/pattern/pgrammer.rs:162:37 [INFO] [stdout] | [INFO] [stdout] 162 | let ((feet, inches), Point { x, y }) = ((3, 19), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Millimeters` is never constructed [INFO] [stdout] --> src/advance/union.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct Millimeters(u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Meters` is never constructed [INFO] [stdout] --> src/advance/union.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | struct Meters(u32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/advance/abi.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abs` is never used [INFO] [stdout] --> src/advance/abi.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn abs(input: i32) -> i32; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/advance/global.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn run() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/advance/newtype.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct People { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 15 | notes: HashMap, [INFO] [stdout] 16 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `People` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_long_type` is never used [INFO] [stdout] --> src/advance/alias.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn take_long_type(f: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Thunk` is never used [INFO] [stdout] --> src/advance/alias.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | type Thunk = Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_short_type` is never used [INFO] [stdout] --> src/advance/alias.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn take_short_type(f: Thunk){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/advance/alias.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_number` is never used [INFO] [stdout] --> src/advance/nevertype.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn guess_number() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/advance/usestatic.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn run() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_handle` is never used [INFO] [stdout] --> src/branch/match_use.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn all_handle(other: i8) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reroll` is never used [INFO] [stdout] --> src/branch/match_use.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn reroll() {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_one_fun` is never used [INFO] [stdout] --> src/closures/closure.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn add_one_fun(x: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/closures/closure.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 226 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 227 | width: u32, [INFO] [stdout] 228 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_fn` is never used [INFO] [stdout] --> src/closures/closure_args.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn call_fn(f: F) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_fn_mut` is never used [INFO] [stdout] --> src/closures/closure_args.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn call_fn_mut(f: F){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_fn_once` is never used [INFO] [stdout] --> src/closures/closure_args.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn call_fn_once(f: F) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_closure` is never used [INFO] [stdout] --> src/closures/closure_args.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn use_closure() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_fn` is never used [INFO] [stdout] --> src/closures/closure_args.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn return_fn() -> impl Fn() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_fn_mut` is never used [INFO] [stdout] --> src/closures/closure_args.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn return_fn_mut() -> impl FnMut() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_fn_once` is never used [INFO] [stdout] --> src/closures/closure_args.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn return_fn_once() -> impl FnOnce() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_linux_ip_with_address` is never used [INFO] [stdout] --> src/command/syscall.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn parse_linux_ip_with_address() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_linux_ip` is never used [INFO] [stdout] --> src/command/syscall.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn get_linux_ip(output: &str) -> Ipv4Addr { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_1` is never used [INFO] [stdout] --> src/generic/gentrait.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn notify_1(item1: &impl Summary, item2: &impl Summary) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_2` is never used [INFO] [stdout] --> src/generic/gentrait.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn notify_2(item1: &T, item: &T) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_3` is never used [INFO] [stdout] --> src/generic/gentrait.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn notify_3(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_4` is never used [INFO] [stdout] --> src/generic/gentrait.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn notify_4(item: &T) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_fun` is never used [INFO] [stdout] --> src/generic/gentrait.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | fn some_fun(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_fun_1` is never used [INFO] [stdout] --> src/generic/gentrait.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn some_fun_1(t: &T, u: &U) -> i32 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_summarizable` is never used [INFO] [stdout] --> src/generic/gentrait.rs:149:4 [INFO] [stdout] | [INFO] [stdout] 149 | fn return_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lagest_reference` is never used [INFO] [stdout] --> src/generic/gentype.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn lagest_reference(list: &[T]) -> &T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generic/gentype.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 71 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 72 | y: T, [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] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/generic/gentype.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 84 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 85 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_origin` is never used [INFO] [stdout] --> src/generic/gentype.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 93 | impl Point { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 94 | fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `level` is never used [INFO] [stdout] --> src/generic/lifetimes.rs:281:8 [INFO] [stdout] | [INFO] [stdout] 280 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 281 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/generic/lifetimes.rs:304:4 [INFO] [stdout] | [INFO] [stdout] 304 | fn longest_with_an_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_panic` is never used [INFO] [stdout] --> src/handlerr/panic_macro.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn make_panic() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_char_of_lastline` is never used [INFO] [stdout] --> src/handlerr/result.rs:157:4 [INFO] [stdout] | [INFO] [stdout] 157 | fn last_char_of_lastline(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/intellpoint/boxtype.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 27 - Cons(i32, Box), [INFO] [stdout] 27 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/intellpoint/rctype.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 10 - Cons(i32, Rc), [INFO] [stdout] 10 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/intellpoint/rc_refcell.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 8 - Cons(Rc>, Rc), [INFO] [stdout] 8 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/intellpoint/rc_refcell.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | Crons(i32, RefCell>), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Cycle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 42 - Crons(i32, RefCell>), [INFO] [stdout] 42 + Crons((), RefCell>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/intellpoint/cycle_ref.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | parent: RefCell>, [INFO] [stdout] 11 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WorkType` is never constructed [INFO] [stdout] --> src/intellpoint/phantomData.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct WorkType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/intellpoint/phantomData.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl WorkType { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 13 | fn new(t: T) -> WorkType { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_phantom_data` is never used [INFO] [stdout] --> src/intellpoint/phantomData.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn test_phantom_data() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterator_collection` is never used [INFO] [stdout] --> src/iterator/iter.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn iterator_collection() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iter_borrow_and_ownership` is never used [INFO] [stdout] --> src/iterator/iter.rs:168:4 [INFO] [stdout] | [INFO] [stdout] 168 | fn iter_borrow_and_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_struct` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn unwrap_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/pattern/pgrammer.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_enum` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn unwrap_enum() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:120:6 [INFO] [stdout] | [INFO] [stdout] 120 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_nest_enum_struct` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn unwrap_nest_enum_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Color` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:143:6 [INFO] [stdout] | [INFO] [stdout] 143 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Msg` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:148:6 [INFO] [stdout] | [INFO] [stdout] 148 | enum Msg { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_struct_tuple` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn unwrap_struct_tuple() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ignore_double_dot` is never used [INFO] [stdout] --> src/pattern/ignore.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn ignore_double_dot() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/pattern/ignore.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iter_recv` is never used [INFO] [stdout] --> src/thread/channel.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn iter_recv() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `channel` is never used [INFO] [stdout] --> src/thread/channel.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn channel() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutex_api` is never used [INFO] [stdout] --> src/thread/mutex.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn mutex_api() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiple_thread_with_mutex` is never used [INFO] [stdout] --> src/thread/mutex.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn multiple_thread_with_mutex() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `name` are never read [INFO] [stdout] --> src/thread/thread.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `broadcast` is never used [INFO] [stdout] --> src/thread/librayon.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn broadcast() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nest_scope` is never used [INFO] [stdout] --> src/thread/librayon.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn nest_scope() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `custom_pool` is never used [INFO] [stdout] --> src/thread/librayon.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn custom_pool() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_val` is never used [INFO] [stdout] --> src/thread/librayon.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn sum_val() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_primes` is never used [INFO] [stdout] --> src/thread/librayon.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn find_primes() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_prime` is never used [INFO] [stdout] --> src/thread/librayon.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn is_prime(n: u64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> src/variable/venum.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 15 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/variable/venum.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | V4(u8,u8,u8,u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 41 - V4(u8,u8,u8,u8), [INFO] [stdout] 41 + V4((),(),(),()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address` is never read [INFO] [stdout] --> src/variable/venum.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | V6{ [INFO] [stdout] | -- field in this variant [INFO] [stdout] 43 | address: String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/variable/vstruct.rs:90:19 [INFO] [stdout] | [INFO] [stdout] 90 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `2` are never read [INFO] [stdout] --> src/variable/vstruct.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [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] 91 - struct Point(i32, i32, i32); [INFO] [stdout] 91 + struct Point((), i32, ()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/variable/vstruct.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 126 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/variable/vvec.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadSheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 116 - Int(i32), [INFO] [stdout] 116 + Int(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/variable/vvec.rs:117:11 [INFO] [stdout] | [INFO] [stdout] 117 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadSheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 117 - Float(f64), [INFO] [stdout] 117 + Float(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/variable/vvec.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 118 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadSheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 118 - Text(String), [INFO] [stdout] 118 + Text(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Yris` is never used [INFO] [stdout] --> src/traits/objects.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Yris { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Xris` is never used [INFO] [stdout] --> src/traits/objects.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | pub trait Xris { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `A` is never used [INFO] [stdout] --> src/traits/objects.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 80 | trait A { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `X` is never constructed [INFO] [stdout] --> src/traits/objects.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | struct X; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_clone` is never used [INFO] [stdout] --> src/traits/embed.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn copy_clone() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `into` is never used [INFO] [stdout] --> src/traits/embed.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn into() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `as_ref_mut` is never used [INFO] [stdout] --> src/traits/embed.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn as_ref_mut() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterator_for` is never used [INFO] [stdout] --> src/traits/embed.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn iterator_for() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/traits/embed.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> src/traits/embed.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | struct MyBox(T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop_user_trait` is never used [INFO] [stdout] --> src/traits/embed.rs:191:4 [INFO] [stdout] | [INFO] [stdout] 191 | fn drop_user_trait() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dref_box` is never used [INFO] [stdout] --> src/traits/embed.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn dref_box() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_string_ref` is never used [INFO] [stdout] --> src/traits/embed.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn take_string_ref(v: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `phantomData` should have a snake case name [INFO] [stdout] --> src/intellpoint/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | mod phantomData; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `phantom_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/intellpoint/refcell.rs:105:26 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn new(messager: &T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 105 | pub fn new(messager: &T, max: usize) -> LimitTracker<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Counter` should have a snake case name [INFO] [stdout] --> src/iterator/custom_iter.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | let mut Counter = Counter::new(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `shareReference` should have a snake case name [INFO] [stdout] --> src/ownership/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod shareReference; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `share_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/thread/builder.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | handler.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 11 | let _ = handler.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/thread/share_data.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | println!("{DATA:?}"); [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/thread/rwlock.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/variable/vvec.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut vec2 = vec![1, 2, 3, 4]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/eventloop/handler.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let message = format!("{} => {}", event, data); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owner_two` [INFO] [stdout] --> src/traits/embed.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let owner_two = owner_one; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_owner_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> src/traits/embed.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let v2 = v1.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3` [INFO] [stdout] --> src/traits/embed.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let v3 = v.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/traits/embed.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let mut user = User { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/traits/embed.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let mut user = User { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ref_my_box` [INFO] [stdout] --> src/traits/embed.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | let ref_my_box = *m; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ref_my_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/prelude/option.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let hello = Some("hello"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/prelude/option.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let number = Some(5); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/prelude/option.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let none: Option = 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] 14 - let none: Option = None; [INFO] [stdout] 14 + let std::prelude::v1::None: Option = None; [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 14 | let _none: Option = None; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/ipc/unix.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let handle = thread::spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafecode/metype.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut engine = Box::pin(Self { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map_ptr` [INFO] [stdout] --> src/unsafecode/metype.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let map_ptr: *const HashMap = &engine.map; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_map_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/advance/union.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Millimeters` is never constructed [INFO] [stdout] --> src/advance/union.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct Millimeters(u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Meters` is never constructed [INFO] [stdout] --> src/advance/union.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | struct Meters(u32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/advance/abi.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abs` is never used [INFO] [stdout] --> src/advance/abi.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn abs(input: i32) -> i32; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/advance/global.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn run() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/advance/newtype.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct People { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 15 | notes: HashMap, [INFO] [stdout] 16 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `People` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_long_type` is never used [INFO] [stdout] --> src/advance/alias.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn take_long_type(f: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Thunk` is never used [INFO] [stdout] --> src/advance/alias.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | type Thunk = Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_short_type` is never used [INFO] [stdout] --> src/advance/alias.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn take_short_type(f: Thunk){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/advance/alias.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_number` is never used [INFO] [stdout] --> src/advance/nevertype.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn guess_number() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/advance/usestatic.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn run() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_handle` is never used [INFO] [stdout] --> src/branch/match_use.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn all_handle(other: i8) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reroll` is never used [INFO] [stdout] --> src/branch/match_use.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn reroll() {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_one_fun` is never used [INFO] [stdout] --> src/closures/closure.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn add_one_fun(x: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/closures/closure.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 226 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 227 | width: u32, [INFO] [stdout] 228 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/closures/cache.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 14 | / impl Cache [INFO] [stdout] 15 | | where T: Fn(U) -> R, [INFO] [stdout] 16 | | U : Eq + std::hash::Hash + Clone, [INFO] [stdout] 17 | | R : std::clone::Clone, [INFO] [stdout] | |______________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | fn new(calculate: T) -> Cache { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_fn` is never used [INFO] [stdout] --> src/closures/closure_args.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn call_fn(f: F) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_fn_mut` is never used [INFO] [stdout] --> src/closures/closure_args.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn call_fn_mut(f: F){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_fn_once` is never used [INFO] [stdout] --> src/closures/closure_args.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn call_fn_once(f: F) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_closure` is never used [INFO] [stdout] --> src/closures/closure_args.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn use_closure() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_fn` is never used [INFO] [stdout] --> src/closures/closure_args.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn return_fn() -> impl Fn() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_fn_mut` is never used [INFO] [stdout] --> src/closures/closure_args.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn return_fn_mut() -> impl FnMut() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_fn_once` is never used [INFO] [stdout] --> src/closures/closure_args.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn return_fn_once() -> impl FnOnce() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_linux_ip_with_address` is never used [INFO] [stdout] --> src/command/syscall.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn parse_linux_ip_with_address() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_linux_ip` is never used [INFO] [stdout] --> src/command/syscall.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn get_linux_ip(output: &str) -> Ipv4Addr { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_1` is never used [INFO] [stdout] --> src/generic/gentrait.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn notify_1(item1: &impl Summary, item2: &impl Summary) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_2` is never used [INFO] [stdout] --> src/generic/gentrait.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn notify_2(item1: &T, item: &T) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_3` is never used [INFO] [stdout] --> src/generic/gentrait.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn notify_3(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_4` is never used [INFO] [stdout] --> src/generic/gentrait.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn notify_4(item: &T) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_fun` is never used [INFO] [stdout] --> src/generic/gentrait.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | fn some_fun(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_fun_1` is never used [INFO] [stdout] --> src/generic/gentrait.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn some_fun_1(t: &T, u: &U) -> i32 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_summarizable` is never used [INFO] [stdout] --> src/generic/gentrait.rs:149:4 [INFO] [stdout] | [INFO] [stdout] 149 | fn return_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lagest_reference` is never used [INFO] [stdout] --> src/generic/gentype.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn lagest_reference(list: &[T]) -> &T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generic/gentype.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 71 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 72 | y: T, [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] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/generic/gentype.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 84 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 85 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_origin` is never used [INFO] [stdout] --> src/generic/gentype.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 93 | impl Point { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 94 | fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `level` is never used [INFO] [stdout] --> src/generic/lifetimes.rs:281:8 [INFO] [stdout] | [INFO] [stdout] 280 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 281 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/generic/lifetimes.rs:304:4 [INFO] [stdout] | [INFO] [stdout] 304 | fn longest_with_an_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_panic` is never used [INFO] [stdout] --> src/handlerr/panic_macro.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn make_panic() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_char_of_lastline` is never used [INFO] [stdout] --> src/handlerr/result.rs:157:4 [INFO] [stdout] | [INFO] [stdout] 157 | fn last_char_of_lastline(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/intellpoint/boxtype.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 27 - Cons(i32, Box), [INFO] [stdout] 27 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/intellpoint/rctype.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 10 - Cons(i32, Rc), [INFO] [stdout] 10 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/intellpoint/rc_refcell.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 8 - Cons(Rc>, Rc), [INFO] [stdout] 8 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/intellpoint/rc_refcell.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | Crons(i32, RefCell>), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Cycle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 42 - Crons(i32, RefCell>), [INFO] [stdout] 42 + Crons((), RefCell>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/intellpoint/cycle_ref.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | parent: RefCell>, [INFO] [stdout] 11 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WorkType` is never constructed [INFO] [stdout] --> src/intellpoint/phantomData.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct WorkType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/intellpoint/phantomData.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl WorkType { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 13 | fn new(t: T) -> WorkType { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_phantom_data` is never used [INFO] [stdout] --> src/intellpoint/phantomData.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn test_phantom_data() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterator_collection` is never used [INFO] [stdout] --> src/iterator/iter.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn iterator_collection() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iter_borrow_and_ownership` is never used [INFO] [stdout] --> src/iterator/iter.rs:168:4 [INFO] [stdout] | [INFO] [stdout] 168 | fn iter_borrow_and_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_struct` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn unwrap_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/pattern/pgrammer.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_enum` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn unwrap_enum() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:120:6 [INFO] [stdout] | [INFO] [stdout] 120 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_nest_enum_struct` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn unwrap_nest_enum_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Color` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:143:6 [INFO] [stdout] | [INFO] [stdout] 143 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Msg` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:148:6 [INFO] [stdout] | [INFO] [stdout] 148 | enum Msg { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_struct_tuple` is never used [INFO] [stdout] --> src/pattern/pgrammer.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn unwrap_struct_tuple() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ignore_double_dot` is never used [INFO] [stdout] --> src/pattern/ignore.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn ignore_double_dot() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/pattern/ignore.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iter_recv` is never used [INFO] [stdout] --> src/thread/channel.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn iter_recv() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `channel` is never used [INFO] [stdout] --> src/thread/channel.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn channel() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutex_api` is never used [INFO] [stdout] --> src/thread/mutex.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn mutex_api() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiple_thread_with_mutex` is never used [INFO] [stdout] --> src/thread/mutex.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn multiple_thread_with_mutex() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `name` are never read [INFO] [stdout] --> src/thread/thread.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `broadcast` is never used [INFO] [stdout] --> src/thread/librayon.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn broadcast() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nest_scope` is never used [INFO] [stdout] --> src/thread/librayon.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn nest_scope() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `custom_pool` is never used [INFO] [stdout] --> src/thread/librayon.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn custom_pool() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_val` is never used [INFO] [stdout] --> src/thread/librayon.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn sum_val() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_primes` is never used [INFO] [stdout] --> src/thread/librayon.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn find_primes() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_prime` is never used [INFO] [stdout] --> src/thread/librayon.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn is_prime(n: u64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> src/variable/venum.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 15 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/variable/venum.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | V4(u8,u8,u8,u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 41 - V4(u8,u8,u8,u8), [INFO] [stdout] 41 + V4((),(),(),()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address` is never read [INFO] [stdout] --> src/variable/venum.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | V6{ [INFO] [stdout] | -- field in this variant [INFO] [stdout] 43 | address: String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/variable/vstruct.rs:90:19 [INFO] [stdout] | [INFO] [stdout] 90 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `2` are never read [INFO] [stdout] --> src/variable/vstruct.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [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] 91 - struct Point(i32, i32, i32); [INFO] [stdout] 91 + struct Point((), i32, ()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/variable/vstruct.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 126 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/variable/vvec.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadSheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 116 - Int(i32), [INFO] [stdout] 116 + Int(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/variable/vvec.rs:117:11 [INFO] [stdout] | [INFO] [stdout] 117 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadSheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 117 - Float(f64), [INFO] [stdout] 117 + Float(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/variable/vvec.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 118 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadSheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 118 - Text(String), [INFO] [stdout] 118 + Text(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Yris` is never used [INFO] [stdout] --> src/traits/objects.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Yris { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Xris` is never used [INFO] [stdout] --> src/traits/objects.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | pub trait Xris { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `A` is never used [INFO] [stdout] --> src/traits/objects.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 80 | trait A { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `X` is never constructed [INFO] [stdout] --> src/traits/objects.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | struct X; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_clone` is never used [INFO] [stdout] --> src/traits/embed.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn copy_clone() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `into` is never used [INFO] [stdout] --> src/traits/embed.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn into() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `as_ref_mut` is never used [INFO] [stdout] --> src/traits/embed.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn as_ref_mut() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterator_for` is never used [INFO] [stdout] --> src/traits/embed.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn iterator_for() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/traits/embed.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> src/traits/embed.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | struct MyBox(T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop_user_trait` is never used [INFO] [stdout] --> src/traits/embed.rs:191:4 [INFO] [stdout] | [INFO] [stdout] 191 | fn drop_user_trait() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dref_box` is never used [INFO] [stdout] --> src/traits/embed.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn dref_box() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_string_ref` is never used [INFO] [stdout] --> src/traits/embed.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn take_string_ref(v: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `phantomData` should have a snake case name [INFO] [stdout] --> src/intellpoint/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | mod phantomData; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `phantom_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/intellpoint/refcell.rs:105:26 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn new(messager: &T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 105 | pub fn new(messager: &T, max: usize) -> LimitTracker<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `shareReference` should have a snake case name [INFO] [stdout] --> src/ownership/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod shareReference; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `share_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/thread/builder.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | handler.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 11 | let _ = handler.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/thread/share_data.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | println!("{DATA:?}"); [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `unsafecode` [INFO] [stdout] --> src/main.rs:4:61 [INFO] [stdout] | [INFO] [stdout] 4 | iofs, ipc, iterator, loops, ownership, pattern, thread, unsafecode, variable, [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: `unsafecode` [INFO] [stdout] --> src/main.rs:4:61 [INFO] [stdout] | [INFO] [stdout] 4 | iofs, ipc, iterator, loops, ownership, pattern, thread, unsafecode, variable, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `premain` is never used [INFO] [stdout] --> src/main.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn premain() { [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 `premain` is never used [INFO] [stdout] --> src/main.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn premain() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.82s [INFO] running `Command { std: "docker" "inspect" "2c841398dd4908b4f06d1b56d6674986c9940a57d458e4dc0495cd90c966bb9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c841398dd4908b4f06d1b56d6674986c9940a57d458e4dc0495cd90c966bb9d", kill_on_drop: false }` [INFO] [stdout] 2c841398dd4908b4f06d1b56d6674986c9940a57d458e4dc0495cd90c966bb9d