[INFO] cloning repository https://github.com/preinpost/Rust-Atomics-and-Locks-code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/preinpost/Rust-Atomics-and-Locks-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpreinpost%2FRust-Atomics-and-Locks-code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpreinpost%2FRust-Atomics-and-Locks-code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8ff5f184fcef667451e6c7bbcd576897ebbf3faf [INFO] checking preinpost/Rust-Atomics-and-Locks-code against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpreinpost%2FRust-Atomics-and-Locks-code" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/preinpost/Rust-Atomics-and-Locks-code on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/preinpost/Rust-Atomics-and-Locks-code [INFO] finished tweaking git repo https://github.com/preinpost/Rust-Atomics-and-Locks-code [INFO] tweaked toml for git repo https://github.com/preinpost/Rust-Atomics-and-Locks-code written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/preinpost/Rust-Atomics-and-Locks-code 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 394495f477f030b401488fed39e17b3f16ea90ceef7153fc10358f5060614d7f [INFO] running `Command { std: "docker" "start" "-a" "394495f477f030b401488fed39e17b3f16ea90ceef7153fc10358f5060614d7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "394495f477f030b401488fed39e17b3f16ea90ceef7153fc10358f5060614d7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "394495f477f030b401488fed39e17b3f16ea90ceef7153fc10358f5060614d7f", kill_on_drop: false }` [INFO] [stdout] 394495f477f030b401488fed39e17b3f16ea90ceef7153fc10358f5060614d7f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 13a6c9d5a473e82b9fde5aace54d9ccc116e17744604c54d4e71f10bfc3def5c [INFO] running `Command { std: "docker" "start" "-a" "13a6c9d5a473e82b9fde5aace54d9ccc116e17744604c54d4e71f10bfc3def5c", kill_on_drop: false }` [INFO] [stderr] Checking rust_playground v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `example3`, `example4`, and `fetch_add_example` [INFO] [stdout] --> src/main.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ch2::atomic::{example3, example4, fetch_add_example}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ch5::channel::safe_channel::run` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ch5::channel::safe_channel::run; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ch5::channel::safe_channel_without_arc::run3` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ch5::channel::safe_channel_without_arc::run3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `example3`, `example4`, and `fetch_add_example` [INFO] [stdout] --> src/main.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ch2::atomic::{example3, example4, fetch_add_example}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ch5::channel::safe_channel::run` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ch5::channel::safe_channel::run; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ch5::channel::safe_channel_without_arc::run3` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ch5::channel::safe_channel_without_arc::run3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Release` [INFO] [stdout] --> src/ch6/arc.rs:77:48 [INFO] [stdout] | [INFO] [stdout] 77 | use std::sync::atomic::Ordering::{Relaxed, Release}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/ch2/atomic.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | for t in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/ch2/atomic.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | for t in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thread_parking` is never used [INFO] [stdout] --> src/ch1/thread_parking.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn thread_parking() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example1` is never used [INFO] [stdout] --> src/ch2/atomic.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn example1() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example2` is never used [INFO] [stdout] --> src/ch2/atomic.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn example2() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example3` is never used [INFO] [stdout] --> src/ch2/atomic.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn example3() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_add_example` is never used [INFO] [stdout] --> src/ch2/atomic.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn fetch_add_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example4` is never used [INFO] [stdout] --> src/ch2/atomic.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn example4() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_item` is never used [INFO] [stdout] --> src/ch2/atomic.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn process_item(i: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `in_use` is never read [INFO] [stdout] --> src/ch5/channel.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Channel { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 9 | message: UnsafeCell>, [INFO] [stdout] 10 | in_use: AtomicBool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `send`, `is_ready`, and `receive` are never used [INFO] [stdout] --> src/ch5/channel.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 16 | impl Channel { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 17 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn send(&self, message: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn is_ready(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn receive(&self) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run1` is never used [INFO] [stdout] --> src/ch5/channel.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn run1() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> src/ch5/channel.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | struct Channel { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sender` is never constructed [INFO] [stdout] --> src/ch5/channel.rs:83:16 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct Sender { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Receiver` is never constructed [INFO] [stdout] --> src/ch5/channel.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct Receiver { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `channel` is never used [INFO] [stdout] --> src/ch5/channel.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn channel() -> (Sender, Receiver) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/ch5/channel.rs:102:16 [INFO] [stdout] | [INFO] [stdout] 101 | impl Sender { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 102 | pub fn send(self, message: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_ready` and `receive` are never used [INFO] [stdout] --> src/ch5/channel.rs:109:16 [INFO] [stdout] | [INFO] [stdout] 108 | impl Receiver { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 109 | pub fn is_ready(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn receive(self) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/ch5/channel.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sender` is never constructed [INFO] [stdout] --> src/ch5/channel.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | pub struct Sender<'a, T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Receiver` is never constructed [INFO] [stdout] --> src/ch5/channel.rs:166:16 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct Receiver<'a, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `split` are never used [INFO] [stdout] --> src/ch5/channel.rs:171:22 [INFO] [stdout] | [INFO] [stdout] 170 | impl Channel { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 171 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn split<'a>(&'a mut self) -> (Sender<'a, T>, Receiver<'a, T>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/ch5/channel.rs:185:16 [INFO] [stdout] | [INFO] [stdout] 184 | impl Sender<'_, T> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 185 | pub fn send(self, message: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_ready` and `receive` are never used [INFO] [stdout] --> src/ch5/channel.rs:192:16 [INFO] [stdout] | [INFO] [stdout] 191 | impl Receiver<'_, T> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 192 | pub fn is_ready(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn receive(self) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run3` is never used [INFO] [stdout] --> src/ch5/channel.rs:212:12 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn run3() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_ready` is never used [INFO] [stdout] --> src/ch5/channel.rs:265:16 [INFO] [stdout] | [INFO] [stdout] 264 | impl Receiver<'_, T> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 265 | pub fn is_ready(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thread_parking` is never used [INFO] [stdout] --> src/ch1/thread_parking.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn thread_parking() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `get_mut` are never used [INFO] [stdout] --> src/ch6/arc.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Arc { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 20 | pub fn new(data: T) -> Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn get_mut(arc: &mut Self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example1` is never used [INFO] [stdout] --> src/ch2/atomic.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn example1() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example2` is never used [INFO] [stdout] --> src/ch2/atomic.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn example2() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example3` is never used [INFO] [stdout] --> src/ch2/atomic.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn example3() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_add_example` is never used [INFO] [stdout] --> src/ch2/atomic.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn fetch_add_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example4` is never used [INFO] [stdout] --> src/ch2/atomic.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn example4() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_item` is never used [INFO] [stdout] --> src/ch2/atomic.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn process_item(i: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `in_use` is never read [INFO] [stdout] --> src/ch5/channel.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Channel { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 9 | message: UnsafeCell>, [INFO] [stdout] 10 | in_use: AtomicBool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `send`, `is_ready`, and `receive` are never used [INFO] [stdout] --> src/ch5/channel.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 16 | impl Channel { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 17 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn send(&self, message: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn is_ready(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn receive(&self) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run1` is never used [INFO] [stdout] --> src/ch5/channel.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn run1() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> src/ch5/channel.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | struct Channel { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sender` is never constructed [INFO] [stdout] --> src/ch5/channel.rs:83:16 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct Sender { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Receiver` is never constructed [INFO] [stdout] --> src/ch5/channel.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct Receiver { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `channel` is never used [INFO] [stdout] --> src/ch5/channel.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn channel() -> (Sender, Receiver) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/ch5/channel.rs:102:16 [INFO] [stdout] | [INFO] [stdout] 101 | impl Sender { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 102 | pub fn send(self, message: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_ready` and `receive` are never used [INFO] [stdout] --> src/ch5/channel.rs:109:16 [INFO] [stdout] | [INFO] [stdout] 108 | impl Receiver { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 109 | pub fn is_ready(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn receive(self) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/ch5/channel.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sender` is never constructed [INFO] [stdout] --> src/ch5/channel.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | pub struct Sender<'a, T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Receiver` is never constructed [INFO] [stdout] --> src/ch5/channel.rs:166:16 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct Receiver<'a, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `split` are never used [INFO] [stdout] --> src/ch5/channel.rs:171:22 [INFO] [stdout] | [INFO] [stdout] 170 | impl Channel { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 171 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn split<'a>(&'a mut self) -> (Sender<'a, T>, Receiver<'a, T>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/ch5/channel.rs:185:16 [INFO] [stdout] | [INFO] [stdout] 184 | impl Sender<'_, T> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 185 | pub fn send(self, message: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_ready` and `receive` are never used [INFO] [stdout] --> src/ch5/channel.rs:192:16 [INFO] [stdout] | [INFO] [stdout] 191 | impl Receiver<'_, T> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 192 | pub fn is_ready(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn receive(self) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run3` is never used [INFO] [stdout] --> src/ch5/channel.rs:212:12 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn run3() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_ready` is never used [INFO] [stdout] --> src/ch5/channel.rs:265:16 [INFO] [stdout] | [INFO] [stdout] 264 | impl Receiver<'_, T> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 265 | pub fn is_ready(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_mut` is never used [INFO] [stdout] --> src/ch6/arc.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Arc { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn get_mut(arc: &mut Self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] running `Command { std: "docker" "inspect" "13a6c9d5a473e82b9fde5aace54d9ccc116e17744604c54d4e71f10bfc3def5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13a6c9d5a473e82b9fde5aace54d9ccc116e17744604c54d4e71f10bfc3def5c", kill_on_drop: false }` [INFO] [stdout] 13a6c9d5a473e82b9fde5aace54d9ccc116e17744604c54d4e71f10bfc3def5c