[INFO] cloning repository https://github.com/evrenokcu/rust-features [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/evrenokcu/rust-features" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevrenokcu%2Frust-features", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevrenokcu%2Frust-features'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1475e3dfddfc6db9a93b78610ecceebfc2fcb9fc [INFO] building evrenokcu/rust-features against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevrenokcu%2Frust-features" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/evrenokcu/rust-features on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-1-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/evrenokcu/rust-features [INFO] finished tweaking git repo https://github.com/evrenokcu/rust-features [INFO] tweaked toml for git repo https://github.com/evrenokcu/rust-features written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/evrenokcu/rust-features already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 48734183411d10e9f26db280663eacaf8cb9f09da1fa24829fc1bd9ff03972d4 [INFO] running `Command { std: "docker" "start" "-a" "48734183411d10e9f26db280663eacaf8cb9f09da1fa24829fc1bd9ff03972d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "48734183411d10e9f26db280663eacaf8cb9f09da1fa24829fc1bd9ff03972d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48734183411d10e9f26db280663eacaf8cb9f09da1fa24829fc1bd9ff03972d4", kill_on_drop: false }` [INFO] [stdout] 48734183411d10e9f26db280663eacaf8cb9f09da1fa24829fc1bd9ff03972d4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b66bae9572580d98bffc7a9858eb5d5efbdd97dc80bcf3f0fe9d0250693e688c [INFO] running `Command { std: "docker" "start" "-a" "b66bae9572580d98bffc7a9858eb5d5efbdd97dc80bcf3f0fe9d0250693e688c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling rust-features v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/concurrency/rc.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Thread` [INFO] [stdout] --> src/concurrency/send_sync.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ sync::mpsc, thread::{self, Thread}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/concurrency/send_sync.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Thread` [INFO] [stdout] --> src/concurrency/thread_channel_mutex.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | thread::{self, Builder, Thread}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/generics_traits/generics.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::{write, Display}, ops::Add}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blanket_traits::execute` [INFO] [stdout] --> src/generics_traits/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use blanket_traits::execute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::clone` [INFO] [stdout] --> src/generics_traits/extension_traits.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::clone; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File` and `path::*` [INFO] [stdout] --> src/generics_traits/std_traits/as_ref.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, path::*}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Borrow` [INFO] [stdout] --> src/generics_traits/std_traits/cow.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | use std::borrow::{Borrow, Cow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read` [INFO] [stdout] --> src/patterns/command/command.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{read, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::Borrow` [INFO] [stdout] --> src/concurrency/linked_list.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a2` [INFO] [stdout] --> src/concurrency/arc_mutex.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let a2 = arc.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a3` [INFO] [stdout] --> src/concurrency/arc_mutex.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let a3 = arc.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concurrency/arc_mutex.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut counter = Arc::new(Mutex::new(0)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another` [INFO] [stdout] --> src/concurrency/life_time.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_desc(&self,another: &str)->&str{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coffee1` [INFO] [stdout] --> src/concurrency/struct_with_str_ref.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let coffee1 = AnotherCoffee { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coffee1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coffee2` [INFO] [stdout] --> src/concurrency/struct_with_str_ref.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let coffee2 = AnotherCoffee { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coffee2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread1` [INFO] [stdout] --> src/concurrency/thread_channel_mutex.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let thread1 = thread::spawn(|| println!("thread 1")); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/generics_traits/default_generic_type.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let t=*other as i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/generics_traits/downcasting.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let x = String::from("evren"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/generics_traits/downcasting.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | if let Some(obj) = item.downcast_ref::() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/generics_traits/downcasting.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | } else if let Some(obj) = item.downcast_ref::() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/generics_traits/fully_qualified_syntax.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let p=Printer2{}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/generics_traits/std_traits/cow.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let y = Cow::Borrowed(&x); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my` [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let my: MyStruct = Default::default(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_my` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my2` [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let my2 = MyStruct { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_my2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `otherMy2` [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let otherMy2 = MyStruct { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_otherMy2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/matches/match_partially.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let x: Option = None; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/old_main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let x = if true { 2 } else { 3 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/old_main.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | .filter(|(k, v)| *k == 1) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/old_main.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | .map(|(k, v)| v) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/types/options.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let s = x.as_str(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arc` is never used [INFO] [stdout] --> src/concurrency/arc_mutex.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn arc() { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/concurrency/life_time.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 52 | struct Person<'a>{ [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 53 | name:&'a str, [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: static `y` is never used [INFO] [stdout] --> src/concurrency/life_time.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | static mut y:&'static str="okcu"; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/concurrency/linked_list.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct ListItem { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 22 | data: ItemData, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cur_iter` is never read [INFO] [stdout] --> src/concurrency/linked_list.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct LinkedList { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 35 | head: ListItemPtr, [INFO] [stdout] 36 | cur_iter: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `iter`, `iter_mut`, and `into_iter` are never used [INFO] [stdout] --> src/concurrency/linked_list.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl LinkedList { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn iter_mut(&mut self) -> IterMut { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn into_iter(&mut self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Iter` is never constructed [INFO] [stdout] --> src/concurrency/linked_list.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | struct Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IterMut` is never constructed [INFO] [stdout] --> src/concurrency/linked_list.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct IterMut { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntoIter` is never constructed [INFO] [stdout] --> src/concurrency/linked_list.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | struct IntoIter { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/concurrency/rc.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | struct MyStruct { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 29 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/concurrency/ref_cell.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 84 | struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 85 | value: i32, [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: field `name` is never read [INFO] [stdout] --> src/concurrency/rw_lock.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct MyStruct { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 36 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyStruct` 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 `Coffee2` is never constructed [INFO] [stdout] --> src/concurrency/send_sync.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct Coffee2{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `cost`, and `size` are never read [INFO] [stdout] --> src/concurrency/struct_with_str_ref.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct AnotherCoffee<'a, C, S> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 2 | name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | cost: C, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | size: S, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `s` and `i` are never read [INFO] [stdout] --> src/generics_traits/associated_types.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct AnyStruct{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 25 | s:String, [INFO] [stdout] | ^ [INFO] [stdout] 26 | i:i8, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/generics_traits/blanket_traits.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct MyStruct { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 22 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buf` is never read [INFO] [stdout] --> src/generics_traits/const_generics.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct MyBuffer { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 11 | buf: [T; LENGTH], [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyBuffer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/generics_traits/downcasting.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct MyStruct1<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 22 | data: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `item` is never read [INFO] [stdout] --> src/generics_traits/marker_traits.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct FullFeaturedContainer { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 22 | item: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FullFeaturedContainer` 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 `default_trait` is never used [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn default_trait() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Drink` is never used [INFO] [stdout] --> src/old_main.rs:60:7 [INFO] [stdout] | [INFO] [stdout] 60 | trait Drink: Brew {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/old_main.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | HOT(Option), [INFO] [stdout] | --- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TempCategory` has derived impls for the traits `Clone` and `Debug`, but these are 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] 201 | HOT(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `make`, `model`, `size`, and `color` are never read [INFO] [stdout] --> src/patterns/builder/builder.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bicycle { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | make: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | color: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bicycle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `make`, `model`, `size`, and `color` are never used [INFO] [stdout] --> src/patterns/builder/builder.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl Bicycle { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 16 | fn make(&self) -> &String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn model(&self) -> &String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn size(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn color(&self) -> &String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/patterns/new_type/new_type.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | struct ByteCount(i32); [INFO] [stdout] | --------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `ByteCount` 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 `to_bits` is never used [INFO] [stdout] --> src/patterns/new_type/new_type.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl ByteCount { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 18 | fn to_bits(&self) -> BitCount { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `detach` is never used [INFO] [stdout] --> src/patterns/observer/another_observer.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 21 | trait Observable { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn detach(&mut self, observer: Self::Observer); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `state` is never used [INFO] [stdout] --> src/patterns/observer/another_observer.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Subject { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn state(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `resume_from` is never used [INFO] [stdout] --> src/patterns/state_machine/mod.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Session { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | fn resume_from(sessionId: Uuid) -> ResumeResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ResumeResult` is never used [INFO] [stdout] --> src/patterns/state_machine/mod.rs:63:6 [INFO] [stdout] | [INFO] [stdout] 63 | enum ResumeResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/reference_objects/reference_objects_lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Student { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 3 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Student` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `id` are never used [INFO] [stdout] --> src/reference_objects/reference_objects_lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Student { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 10 | fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn id(&self) -> i32 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/concurrency/arc_mutex.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | thread.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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = thread.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `x` should have an upper case name [INFO] [stdout] --> src/concurrency/life_time.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | const x:&'static str="evren"; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `X` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `y` should have an upper case name [INFO] [stdout] --> src/concurrency/life_time.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | static mut y:&'static str="okcu"; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/concurrency/thread_channel_mutex.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | thread3.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = thread3.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `coordinateI32` should have a snake case name [INFO] [stdout] --> src/generics_traits/generics.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let coordinateI32:Coordinate=Coordinate{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `coordinate_i32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printDisplay` should have a snake case name [INFO] [stdout] --> src/generics_traits/generics.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | fn printDisplay(&self){ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `print_display` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printDisplay2` should have a snake case name [INFO] [stdout] --> src/generics_traits/generics.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | fn printDisplay2(&self){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `print_display2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `otherMy2` should have a snake case name [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let otherMy2 = MyStruct { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `other_my2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `otherMy2` should have a snake case name [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let otherMy2 = MyStruct { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `other_my2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `sessionId` should have a snake case name [INFO] [stdout] --> src/patterns/state_machine/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | sessionId: Uuid, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `session_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sessionId` should have a snake case name [INFO] [stdout] --> src/patterns/state_machine/mod.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | fn resume_from(sessionId: Uuid) -> ResumeResult { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `session_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.75s [INFO] running `Command { std: "docker" "inspect" "b66bae9572580d98bffc7a9858eb5d5efbdd97dc80bcf3f0fe9d0250693e688c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b66bae9572580d98bffc7a9858eb5d5efbdd97dc80bcf3f0fe9d0250693e688c", kill_on_drop: false }` [INFO] [stdout] b66bae9572580d98bffc7a9858eb5d5efbdd97dc80bcf3f0fe9d0250693e688c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23869eff64cdf6ef414c086bded88a6b7cb9a268dcfb3859b10d43b29d3ce61a [INFO] running `Command { std: "docker" "start" "-a" "23869eff64cdf6ef414c086bded88a6b7cb9a268dcfb3859b10d43b29d3ce61a", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/concurrency/rc.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Thread` [INFO] [stdout] --> src/concurrency/send_sync.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ sync::mpsc, thread::{self, Thread}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/concurrency/send_sync.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Thread` [INFO] [stdout] --> src/concurrency/thread_channel_mutex.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | thread::{self, Builder, Thread}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/generics_traits/generics.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::{write, Display}, ops::Add}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blanket_traits::execute` [INFO] [stdout] --> src/generics_traits/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use blanket_traits::execute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::clone` [INFO] [stdout] --> src/generics_traits/extension_traits.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::clone; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File` and `path::*` [INFO] [stdout] --> src/generics_traits/std_traits/as_ref.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, path::*}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Borrow` [INFO] [stdout] --> src/generics_traits/std_traits/cow.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | use std::borrow::{Borrow, Cow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read` [INFO] [stdout] --> src/patterns/command/command.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{read, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::Borrow` [INFO] [stdout] --> src/concurrency/linked_list.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a2` [INFO] [stdout] --> src/concurrency/arc_mutex.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let a2 = arc.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a3` [INFO] [stdout] --> src/concurrency/arc_mutex.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let a3 = arc.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concurrency/arc_mutex.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut counter = Arc::new(Mutex::new(0)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another` [INFO] [stdout] --> src/concurrency/life_time.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_desc(&self,another: &str)->&str{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coffee1` [INFO] [stdout] --> src/concurrency/struct_with_str_ref.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let coffee1 = AnotherCoffee { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coffee1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coffee2` [INFO] [stdout] --> src/concurrency/struct_with_str_ref.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let coffee2 = AnotherCoffee { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coffee2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread1` [INFO] [stdout] --> src/concurrency/thread_channel_mutex.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let thread1 = thread::spawn(|| println!("thread 1")); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/generics_traits/default_generic_type.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let t=*other as i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/generics_traits/downcasting.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let x = String::from("evren"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/generics_traits/downcasting.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | if let Some(obj) = item.downcast_ref::() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/generics_traits/downcasting.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | } else if let Some(obj) = item.downcast_ref::() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/generics_traits/fully_qualified_syntax.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let p=Printer2{}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/generics_traits/std_traits/cow.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let y = Cow::Borrowed(&x); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my` [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let my: MyStruct = Default::default(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_my` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my2` [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let my2 = MyStruct { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_my2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `otherMy2` [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let otherMy2 = MyStruct { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_otherMy2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/matches/match_partially.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let x: Option = None; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/old_main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let x = if true { 2 } else { 3 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/old_main.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | .filter(|(k, v)| *k == 1) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/old_main.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | .map(|(k, v)| v) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/types/options.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let s = x.as_str(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arc` is never used [INFO] [stdout] --> src/concurrency/arc_mutex.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn arc() { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/concurrency/life_time.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 52 | struct Person<'a>{ [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 53 | name:&'a str, [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: static `y` is never used [INFO] [stdout] --> src/concurrency/life_time.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | static mut y:&'static str="okcu"; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/concurrency/linked_list.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct ListItem { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 22 | data: ItemData, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cur_iter` is never read [INFO] [stdout] --> src/concurrency/linked_list.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct LinkedList { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 35 | head: ListItemPtr, [INFO] [stdout] 36 | cur_iter: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `iter`, `iter_mut`, and `into_iter` are never used [INFO] [stdout] --> src/concurrency/linked_list.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl LinkedList { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn iter_mut(&mut self) -> IterMut { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn into_iter(&mut self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Iter` is never constructed [INFO] [stdout] --> src/concurrency/linked_list.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | struct Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IterMut` is never constructed [INFO] [stdout] --> src/concurrency/linked_list.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct IterMut { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntoIter` is never constructed [INFO] [stdout] --> src/concurrency/linked_list.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | struct IntoIter { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/concurrency/rc.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | struct MyStruct { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 29 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/concurrency/ref_cell.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 84 | struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 85 | value: i32, [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: field `name` is never read [INFO] [stdout] --> src/concurrency/rw_lock.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct MyStruct { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 36 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyStruct` 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 `Coffee2` is never constructed [INFO] [stdout] --> src/concurrency/send_sync.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct Coffee2{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `cost`, and `size` are never read [INFO] [stdout] --> src/concurrency/struct_with_str_ref.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct AnotherCoffee<'a, C, S> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 2 | name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | cost: C, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | size: S, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `s` and `i` are never read [INFO] [stdout] --> src/generics_traits/associated_types.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct AnyStruct{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 25 | s:String, [INFO] [stdout] | ^ [INFO] [stdout] 26 | i:i8, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/generics_traits/blanket_traits.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct MyStruct { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 22 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buf` is never read [INFO] [stdout] --> src/generics_traits/const_generics.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct MyBuffer { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 11 | buf: [T; LENGTH], [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyBuffer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/generics_traits/downcasting.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct MyStruct1<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 22 | data: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `item` is never read [INFO] [stdout] --> src/generics_traits/marker_traits.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct FullFeaturedContainer { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 22 | item: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FullFeaturedContainer` 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 `default_trait` is never used [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn default_trait() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Drink` is never used [INFO] [stdout] --> src/old_main.rs:60:7 [INFO] [stdout] | [INFO] [stdout] 60 | trait Drink: Brew {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/old_main.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | HOT(Option), [INFO] [stdout] | --- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TempCategory` has derived impls for the traits `Clone` and `Debug`, but these are 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] 201 | HOT(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `make`, `model`, `size`, and `color` are never read [INFO] [stdout] --> src/patterns/builder/builder.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bicycle { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | make: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | color: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bicycle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `make`, `model`, `size`, and `color` are never used [INFO] [stdout] --> src/patterns/builder/builder.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl Bicycle { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 16 | fn make(&self) -> &String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn model(&self) -> &String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn size(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn color(&self) -> &String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/patterns/new_type/new_type.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | struct ByteCount(i32); [INFO] [stdout] | --------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `ByteCount` 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 `to_bits` is never used [INFO] [stdout] --> src/patterns/new_type/new_type.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl ByteCount { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 18 | fn to_bits(&self) -> BitCount { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `detach` is never used [INFO] [stdout] --> src/patterns/observer/another_observer.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 21 | trait Observable { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn detach(&mut self, observer: Self::Observer); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `state` is never used [INFO] [stdout] --> src/patterns/observer/another_observer.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Subject { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn state(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `resume_from` is never used [INFO] [stdout] --> src/patterns/state_machine/mod.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Session { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | fn resume_from(sessionId: Uuid) -> ResumeResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ResumeResult` is never used [INFO] [stdout] --> src/patterns/state_machine/mod.rs:63:6 [INFO] [stdout] | [INFO] [stdout] 63 | enum ResumeResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/reference_objects/reference_objects_lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Student { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 3 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Student` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `id` are never used [INFO] [stdout] --> src/reference_objects/reference_objects_lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Student { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 10 | fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn id(&self) -> i32 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/concurrency/arc_mutex.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | thread.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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = thread.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `x` should have an upper case name [INFO] [stdout] --> src/concurrency/life_time.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | const x:&'static str="evren"; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `X` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `y` should have an upper case name [INFO] [stdout] --> src/concurrency/life_time.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | static mut y:&'static str="okcu"; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/concurrency/thread_channel_mutex.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | thread3.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = thread3.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `coordinateI32` should have a snake case name [INFO] [stdout] --> src/generics_traits/generics.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let coordinateI32:Coordinate=Coordinate{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `coordinate_i32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printDisplay` should have a snake case name [INFO] [stdout] --> src/generics_traits/generics.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | fn printDisplay(&self){ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `print_display` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printDisplay2` should have a snake case name [INFO] [stdout] --> src/generics_traits/generics.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | fn printDisplay2(&self){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `print_display2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `otherMy2` should have a snake case name [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let otherMy2 = MyStruct { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `other_my2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `otherMy2` should have a snake case name [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let otherMy2 = MyStruct { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `other_my2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-features v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: structure field `sessionId` should have a snake case name [INFO] [stdout] --> src/patterns/state_machine/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | sessionId: Uuid, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `session_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sessionId` should have a snake case name [INFO] [stdout] --> src/patterns/state_machine/mod.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | fn resume_from(sessionId: Uuid) -> ResumeResult { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `session_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/concurrency/rc.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Thread` [INFO] [stdout] --> src/concurrency/send_sync.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ sync::mpsc, thread::{self, Thread}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/concurrency/send_sync.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Thread` [INFO] [stdout] --> src/concurrency/thread_channel_mutex.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | thread::{self, Builder, Thread}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/generics_traits/generics.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::{write, Display}, ops::Add}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blanket_traits::execute` [INFO] [stdout] --> src/generics_traits/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use blanket_traits::execute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::clone` [INFO] [stdout] --> src/generics_traits/extension_traits.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::clone; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File` and `path::*` [INFO] [stdout] --> src/generics_traits/std_traits/as_ref.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, path::*}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Borrow` [INFO] [stdout] --> src/generics_traits/std_traits/cow.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | use std::borrow::{Borrow, Cow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read` [INFO] [stdout] --> src/patterns/command/command.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{read, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::Borrow` [INFO] [stdout] --> src/concurrency/linked_list.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a2` [INFO] [stdout] --> src/concurrency/arc_mutex.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let a2 = arc.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a3` [INFO] [stdout] --> src/concurrency/arc_mutex.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let a3 = arc.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/concurrency/arc_mutex.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut counter = Arc::new(Mutex::new(0)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another` [INFO] [stdout] --> src/concurrency/life_time.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_desc(&self,another: &str)->&str{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coffee1` [INFO] [stdout] --> src/concurrency/struct_with_str_ref.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let coffee1 = AnotherCoffee { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coffee1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coffee2` [INFO] [stdout] --> src/concurrency/struct_with_str_ref.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let coffee2 = AnotherCoffee { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coffee2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread1` [INFO] [stdout] --> src/concurrency/thread_channel_mutex.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let thread1 = thread::spawn(|| println!("thread 1")); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/generics_traits/default_generic_type.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let t=*other as i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/generics_traits/downcasting.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let x = String::from("evren"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/generics_traits/downcasting.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | if let Some(obj) = item.downcast_ref::() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/generics_traits/downcasting.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | } else if let Some(obj) = item.downcast_ref::() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/generics_traits/fully_qualified_syntax.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let p=Printer2{}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/generics_traits/std_traits/cow.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let y = Cow::Borrowed(&x); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my` [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let my: MyStruct = Default::default(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_my` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my2` [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let my2 = MyStruct { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_my2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `otherMy2` [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let otherMy2 = MyStruct { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_otherMy2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/matches/match_partially.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let x: Option = None; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/old_main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let x = if true { 2 } else { 3 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/old_main.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | .filter(|(k, v)| *k == 1) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/old_main.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | .map(|(k, v)| v) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/types/options.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let s = x.as_str(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arc` is never used [INFO] [stdout] --> src/concurrency/arc_mutex.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn arc() { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/concurrency/life_time.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 52 | struct Person<'a>{ [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 53 | name:&'a str, [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: static `y` is never used [INFO] [stdout] --> src/concurrency/life_time.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | static mut y:&'static str="okcu"; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/concurrency/linked_list.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct ListItem { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 22 | data: ItemData, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cur_iter` is never read [INFO] [stdout] --> src/concurrency/linked_list.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct LinkedList { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 35 | head: ListItemPtr, [INFO] [stdout] 36 | cur_iter: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `iter`, `iter_mut`, and `into_iter` are never used [INFO] [stdout] --> src/concurrency/linked_list.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl LinkedList { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn iter_mut(&mut self) -> IterMut { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn into_iter(&mut self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Iter` is never constructed [INFO] [stdout] --> src/concurrency/linked_list.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | struct Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IterMut` is never constructed [INFO] [stdout] --> src/concurrency/linked_list.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct IterMut { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntoIter` is never constructed [INFO] [stdout] --> src/concurrency/linked_list.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | struct IntoIter { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/concurrency/rc.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | struct MyStruct { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 29 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/concurrency/ref_cell.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 84 | struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 85 | value: i32, [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: field `name` is never read [INFO] [stdout] --> src/concurrency/rw_lock.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct MyStruct { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 36 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyStruct` 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 `Coffee2` is never constructed [INFO] [stdout] --> src/concurrency/send_sync.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct Coffee2{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `cost`, and `size` are never read [INFO] [stdout] --> src/concurrency/struct_with_str_ref.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct AnotherCoffee<'a, C, S> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 2 | name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | cost: C, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | size: S, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `s` and `i` are never read [INFO] [stdout] --> src/generics_traits/associated_types.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct AnyStruct{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 25 | s:String, [INFO] [stdout] | ^ [INFO] [stdout] 26 | i:i8, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/generics_traits/blanket_traits.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct MyStruct { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 22 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buf` is never read [INFO] [stdout] --> src/generics_traits/const_generics.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct MyBuffer { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 11 | buf: [T; LENGTH], [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyBuffer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/generics_traits/downcasting.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct MyStruct1<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 22 | data: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `item` is never read [INFO] [stdout] --> src/generics_traits/marker_traits.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct FullFeaturedContainer { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 22 | item: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FullFeaturedContainer` 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 `default_trait` is never used [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn default_trait() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Drink` is never used [INFO] [stdout] --> src/old_main.rs:60:7 [INFO] [stdout] | [INFO] [stdout] 60 | trait Drink: Brew {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/old_main.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | HOT(Option), [INFO] [stdout] | --- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TempCategory` has derived impls for the traits `Clone` and `Debug`, but these are 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] 201 | HOT(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `make`, `model`, `size`, and `color` are never read [INFO] [stdout] --> src/patterns/builder/builder.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bicycle { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | make: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | color: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bicycle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `make`, `model`, `size`, and `color` are never used [INFO] [stdout] --> src/patterns/builder/builder.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl Bicycle { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 16 | fn make(&self) -> &String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn model(&self) -> &String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn size(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn color(&self) -> &String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/patterns/new_type/new_type.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | struct ByteCount(i32); [INFO] [stdout] | --------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `ByteCount` 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 `to_bits` is never used [INFO] [stdout] --> src/patterns/new_type/new_type.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl ByteCount { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 18 | fn to_bits(&self) -> BitCount { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `detach` is never used [INFO] [stdout] --> src/patterns/observer/another_observer.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 21 | trait Observable { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn detach(&mut self, observer: Self::Observer); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `state` is never used [INFO] [stdout] --> src/patterns/observer/another_observer.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Subject { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn state(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `resume_from` is never used [INFO] [stdout] --> src/patterns/state_machine/mod.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Session { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | fn resume_from(sessionId: Uuid) -> ResumeResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ResumeResult` is never used [INFO] [stdout] --> src/patterns/state_machine/mod.rs:63:6 [INFO] [stdout] | [INFO] [stdout] 63 | enum ResumeResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/reference_objects/reference_objects_lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Student { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 3 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Student` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `id` are never used [INFO] [stdout] --> src/reference_objects/reference_objects_lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Student { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 10 | fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn id(&self) -> i32 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/concurrency/arc_mutex.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | thread.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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = thread.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `x` should have an upper case name [INFO] [stdout] --> src/concurrency/life_time.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | const x:&'static str="evren"; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `X` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `y` should have an upper case name [INFO] [stdout] --> src/concurrency/life_time.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | static mut y:&'static str="okcu"; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/concurrency/thread_channel_mutex.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | thread3.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = thread3.join(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `coordinateI32` should have a snake case name [INFO] [stdout] --> src/generics_traits/generics.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let coordinateI32:Coordinate=Coordinate{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `coordinate_i32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printDisplay` should have a snake case name [INFO] [stdout] --> src/generics_traits/generics.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | fn printDisplay(&self){ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `print_display` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printDisplay2` should have a snake case name [INFO] [stdout] --> src/generics_traits/generics.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | fn printDisplay2(&self){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `print_display2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `otherMy2` should have a snake case name [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let otherMy2 = MyStruct { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `other_my2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `otherMy2` should have a snake case name [INFO] [stdout] --> src/generics_traits/std_traits/mod.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let otherMy2 = MyStruct { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `other_my2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `sessionId` should have a snake case name [INFO] [stdout] --> src/patterns/state_machine/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | sessionId: Uuid, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `session_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sessionId` should have a snake case name [INFO] [stdout] --> src/patterns/state_machine/mod.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | fn resume_from(sessionId: Uuid) -> ResumeResult { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `session_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "23869eff64cdf6ef414c086bded88a6b7cb9a268dcfb3859b10d43b29d3ce61a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23869eff64cdf6ef414c086bded88a6b7cb9a268dcfb3859b10d43b29d3ce61a", kill_on_drop: false }` [INFO] [stdout] 23869eff64cdf6ef414c086bded88a6b7cb9a268dcfb3859b10d43b29d3ce61a