[INFO] cloning repository https://github.com/LOKESH-999/mpsc-channels [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LOKESH-999/mpsc-channels" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLOKESH-999%2Fmpsc-channels", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLOKESH-999%2Fmpsc-channels'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ab3a40204cbe266e63fe91fcd31b0125ff24235c [INFO] linting LOKESH-999/mpsc-channels against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLOKESH-999%2Fmpsc-channels" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LOKESH-999/mpsc-channels [INFO] finished tweaking git repo https://github.com/LOKESH-999/mpsc-channels [INFO] tweaked toml for git repo https://github.com/LOKESH-999/mpsc-channels written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LOKESH-999/mpsc-channels on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LOKESH-999/mpsc-channels 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a213fd2e382677b49fbf927447aa9a98f2e52dd7b1049e2eb138b98d1038a8a1 [INFO] running `Command { std: "docker" "start" "-a" "a213fd2e382677b49fbf927447aa9a98f2e52dd7b1049e2eb138b98d1038a8a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a213fd2e382677b49fbf927447aa9a98f2e52dd7b1049e2eb138b98d1038a8a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a213fd2e382677b49fbf927447aa9a98f2e52dd7b1049e2eb138b98d1038a8a1", kill_on_drop: false }` [INFO] [stdout] a213fd2e382677b49fbf927447aa9a98f2e52dd7b1049e2eb138b98d1038a8a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eabd8de5feb89e7cb75eecbec152dbd95652c2a5155a1bf665266754ff8b9661 [INFO] running `Command { std: "docker" "start" "-a" "eabd8de5feb89e7cb75eecbec152dbd95652c2a5155a1bf665266754ff8b9661", kill_on_drop: false }` [INFO] [stderr] Checking channels v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ptr::NonNull` [INFO] [stdout] --> src/new_chanel.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::VecDeque, ptr::NonNull}; [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: `Acquire` and `Release` [INFO] [stdout] --> src/new_chanel.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | Acquire, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Release, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ptr::NonNull` [INFO] [stdout] --> src/new_chanel.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::VecDeque, ptr::NonNull}; [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: `Acquire` and `Release` [INFO] [stdout] --> src/new_chanel.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | Acquire, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Release, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/channel.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut x=self.ptr.as_ref(); [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: variable does not need to be mutable [INFO] [stdout] --> src/channel.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let mut x=self.ptr.read(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/channel.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let b=Base{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `base` [INFO] [stdout] --> src/channel.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | let base=self.ptr.read(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_base` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/channel.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut x=self.ptr.as_ref(); [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: variable does not need to be mutable [INFO] [stdout] --> src/channel.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let mut x=self.ptr.read(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/channel.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let b=Base{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `base` [INFO] [stdout] --> src/channel.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | let base=self.ptr.read(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_base` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `barrier_clone` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let barrier_clone = Arc::clone(&barrier); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_barrier_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Base` is never constructed [INFO] [stdout] --> src/channel.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Base{ [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 `Channel` is never constructed [INFO] [stdout] --> src/channel.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Channel; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sender` is never constructed [INFO] [stdout] --> src/channel.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Sender{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Reciver` is never constructed [INFO] [stdout] --> src/channel.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Reciver{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/channel.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Sender{ [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 28 | pub fn send(&self,data:T){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read` and `is_available` are never used [INFO] [stdout] --> src/channel.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Reciver{ [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 40 | pub fn read(&self)->Option{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub unsafe fn is_available(&self)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/channel.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Channel{ [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 58 | pub fn new()->(Sender,Reciver){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clone` is never used [INFO] [stdout] --> src/channel.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl Sender{ [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 92 | pub fn clone(&self)->Self{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BaseData` is never constructed [INFO] [stdout] --> src/new_chanel.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct BaseData{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Base` is never constructed [INFO] [stdout] --> src/new_chanel.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Base{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> src/new_chanel.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Channel; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sender` is never constructed [INFO] [stdout] --> src/new_chanel.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Sender{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Reciver` is never constructed [INFO] [stdout] --> src/new_chanel.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Reciver{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/new_chanel.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Channel { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 54 | pub fn new()->(Sender,Reciver){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `barrier_clone` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let barrier_clone = Arc::clone(&barrier); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_barrier_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Base` is never constructed [INFO] [stdout] --> src/channel.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Base{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary operation [INFO] [stdout] --> src/channel.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | &mut(*x.data.get()).push_front(data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: statement can be reduced to: `(*x.data.get()).push_front(data);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation [INFO] [stdout] = note: `#[warn(clippy::unnecessary_operation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> src/channel.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Channel; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sender` is never constructed [INFO] [stdout] --> src/channel.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Sender{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Reciver` is never constructed [INFO] [stdout] --> src/channel.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Reciver{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/channel.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Sender{ [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 28 | pub fn send(&self,data:T){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read` and `is_available` are never used [INFO] [stdout] --> src/channel.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Reciver{ [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 40 | pub fn read(&self)->Option{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub unsafe fn is_available(&self)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/channel.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Channel{ [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 58 | pub fn new()->(Sender,Reciver){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/channel.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | !((*self.ptr.as_ref().data.get()).len()>0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((*self.ptr.as_ref().data.get()).len() <= 0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clone` is never used [INFO] [stdout] --> src/channel.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl Sender{ [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 92 | pub fn clone(&self)->Self{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BaseData` is never constructed [INFO] [stdout] --> src/new_chanel.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct BaseData{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/channel.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | !((*self.ptr.as_ref().data.get()).len()>0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!(*self.ptr.as_ref().data.get()).is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Base` is never constructed [INFO] [stdout] --> src/new_chanel.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Base{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> src/new_chanel.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Channel; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sender` is never constructed [INFO] [stdout] --> src/new_chanel.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Sender{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> src/channel.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / pub fn new()->(Sender,Reciver){ [INFO] [stdout] 59 | | let b=Base{ [INFO] [stdout] 60 | | data:UnsafeCell::new(VecDeque::::with_capacity(15)), [INFO] [stdout] 61 | | lock:AtomicBool::new(false), [INFO] [stdout] ... | [INFO] [stdout] 69 | | (Sender{ptr:NonNull::new(ptr).unwrap()},Reciver{ptr:NonNull::new(ptr).unwrap()}) [INFO] [stdout] 70 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] = note: `#[warn(clippy::new_ret_no_self)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Reciver` is never constructed [INFO] [stdout] --> src/new_chanel.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Reciver{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/new_chanel.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Channel { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 54 | pub fn new()->(Sender,Reciver){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary operation [INFO] [stdout] --> src/channel.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | &mut(*x.data.get()).push_front(data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: statement can be reduced to: `(*x.data.get()).push_front(data);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation [INFO] [stdout] = note: `#[warn(clippy::unnecessary_operation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/channel.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | !((*self.ptr.as_ref().data.get()).len()>0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((*self.ptr.as_ref().data.get()).len() <= 0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/channel.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | !((*self.ptr.as_ref().data.get()).len()>0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!(*self.ptr.as_ref().data.get()).is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> src/channel.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / pub fn new()->(Sender,Reciver){ [INFO] [stdout] 59 | | let b=Base{ [INFO] [stdout] 60 | | data:UnsafeCell::new(VecDeque::::with_capacity(15)), [INFO] [stdout] 61 | | lock:AtomicBool::new(false), [INFO] [stdout] ... | [INFO] [stdout] 69 | | (Sender{ptr:NonNull::new(ptr).unwrap()},Reciver{ptr:NonNull::new(ptr).unwrap()}) [INFO] [stdout] 70 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] = note: `#[warn(clippy::new_ret_no_self)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/dequeue.rs:164:19 [INFO] [stdout] | [INFO] [stdout] 164 | iter: &self, [INFO] [stdout] | ^^^^^ help: change this to: `self` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> src/new_chanel.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / pub fn new()->(Sender,Reciver){ [INFO] [stdout] 55 | | todo!() [INFO] [stdout] 56 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/dequeue.rs:164:19 [INFO] [stdout] | [INFO] [stdout] 164 | iter: &self, [INFO] [stdout] | ^^^^^ help: change this to: `self` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/mpsc/mod.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | while let Some(_) = data.pop_back() {} // Clear the queue. [INFO] [stdout] | ----------^^^^^^^------------------ help: try: `while data.pop_back().is_some()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> src/new_chanel.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / pub fn new()->(Sender,Reciver){ [INFO] [stdout] 55 | | todo!() [INFO] [stdout] 56 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/mpsc/mod.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | while let Some(_) = data.pop_back() {} // Clear the queue. [INFO] [stdout] | ----------^^^^^^^------------------ help: try: `while data.pop_back().is_some()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/channel.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | &mut(*x.data.get()).push_front(data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [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] 34 | let _ = &mut(*x.data.get()).push_front(data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dequeue.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn iter(&self)->Iter{ [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] 162 | pub fn iter(&self)->Iter<'_, T>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dequeue.rs:169:21 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn iter_mut(&mut self)->IterMut{ [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 169 | pub fn iter_mut(&mut self)->IterMut<'_, T>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/channel.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | &mut(*x.data.get()).push_front(data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [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] 34 | let _ = &mut(*x.data.get()).push_front(data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dequeue.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn iter(&self)->Iter{ [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] 162 | pub fn iter(&self)->Iter<'_, T>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dequeue.rs:169:21 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn iter_mut(&mut self)->IterMut{ [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 169 | pub fn iter_mut(&mut self)->IterMut<'_, T>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "eabd8de5feb89e7cb75eecbec152dbd95652c2a5155a1bf665266754ff8b9661", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eabd8de5feb89e7cb75eecbec152dbd95652c2a5155a1bf665266754ff8b9661", kill_on_drop: false }` [INFO] [stdout] eabd8de5feb89e7cb75eecbec152dbd95652c2a5155a1bf665266754ff8b9661