[INFO] cloning repository https://github.com/suryxks/atomic-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/suryxks/atomic-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fd97adb497db6c1a4f3d5b9f8b2bcdb5ebc230b1 [INFO] checking suryxks/atomic-rust against try#dd2d87b6cc31907ae305875eb6be399783dc0256 for pr-143929 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/suryxks/atomic-rust [INFO] finished tweaking git repo https://github.com/suryxks/atomic-rust [INFO] tweaked toml for git repo https://github.com/suryxks/atomic-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/suryxks/atomic-rust on toolchain dd2d87b6cc31907ae305875eb6be399783dc0256 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/suryxks/atomic-rust 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" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking suryxks/atomic-rust against try#dd2d87b6cc31907ae305875eb6be399783dc0256 for pr-143929 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/suryxks/atomic-rust [INFO] finished tweaking git repo https://github.com/suryxks/atomic-rust [INFO] tweaked toml for git repo https://github.com/suryxks/atomic-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/suryxks/atomic-rust on toolchain dd2d87b6cc31907ae305875eb6be399783dc0256 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/suryxks/atomic-rust 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" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab02bd0da7ff2e37cd75310a388874ae2ad265f03d80c77d692ac8166ab93b62 [INFO] running `Command { std: "docker" "start" "-a" "ab02bd0da7ff2e37cd75310a388874ae2ad265f03d80c77d692ac8166ab93b62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab02bd0da7ff2e37cd75310a388874ae2ad265f03d80c77d692ac8166ab93b62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab02bd0da7ff2e37cd75310a388874ae2ad265f03d80c77d692ac8166ab93b62", kill_on_drop: false }` [INFO] [stdout] ab02bd0da7ff2e37cd75310a388874ae2ad265f03d80c77d692ac8166ab93b62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6e1bb2423c8136486cc996b1896f3ffe953e63c6ee02acd8d2dcb408bd3a348e [INFO] running `Command { std: "docker" "start" "-a" "6e1bb2423c8136486cc996b1896f3ffe953e63c6ee02acd8d2dcb408bd3a348e", kill_on_drop: false }` [INFO] [stderr] Checking atomic-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/ch_1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicI32` and `Ordering` [INFO] [stdout] --> src/main.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::atomic::{ AtomicI32, Ordering }; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ch_1::ch_1` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ch_1::ch_1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AtomicBool` [INFO] [stdout] --> src/ch_2.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | sync::atomic::{ AtomicBool, AtomicU32, AtomicU64, AtomicUsize, Ordering::Relaxed }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ch_2::ch_2` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ch_2::ch_2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/ch_1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicPtr`, `AtomicU64`, and `yield_now` [INFO] [stdout] --> src/ch_3.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | AtomicPtr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | AtomicU64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | thread::{ self, yield_now }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicI32` and `Ordering` [INFO] [stdout] --> src/main.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::atomic::{ AtomicI32, Ordering }; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ch_1::ch_1` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ch_1::ch_1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AtomicBool` [INFO] [stdout] --> src/ch_2.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | sync::atomic::{ AtomicBool, AtomicU32, AtomicU64, AtomicUsize, Ordering::Relaxed }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ch_2::ch_2` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ch_2::ch_2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicPtr`, `AtomicU64`, and `yield_now` [INFO] [stdout] --> src/ch_3.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | AtomicPtr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | AtomicU64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | thread::{ self, yield_now }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ch_2.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | fn process_item(i: usize) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ch_2.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | fn process_item(i: usize) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ch_1` is never used [INFO] [stdout] --> src/ch_1.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn ch_1() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f` is never used [INFO] [stdout] --> src/ch_1.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn f() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scoped_threads` is never used [INFO] [stdout] --> src/ch_1.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn scoped_threads() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_counting` is never used [INFO] [stdout] --> src/ch_1.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn reference_counting() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutex` is never used [INFO] [stdout] --> src/ch_1.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn mutex() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thread_parking` is never used [INFO] [stdout] --> src/ch_1.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn thread_parking() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `conditional_variables` is never used [INFO] [stdout] --> src/ch_1.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn conditional_variables() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ch_2` is never used [INFO] [stdout] --> src/ch_2.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn ch_2() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ch_1` is never used [INFO] [stdout] --> src/ch_1.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn ch_1() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f` is never used [INFO] [stdout] --> src/ch_1.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn f() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scoped_threads` is never used [INFO] [stdout] --> src/ch_1.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn scoped_threads() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_counting` is never used [INFO] [stdout] --> src/ch_1.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn reference_counting() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_item` is never used [INFO] [stdout] --> src/ch_2.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn process_item(i: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_process_reporting_multiple_threads` is never used [INFO] [stdout] --> src/ch_2.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn example_process_reporting_multiple_threads() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutex` is never used [INFO] [stdout] --> src/ch_1.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn mutex() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_statistics` is never used [INFO] [stdout] --> src/ch_2.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn example_statistics() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `increment` is never used [INFO] [stdout] --> src/ch_2.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn increment(a: &AtomicU32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thread_parking` is never used [INFO] [stdout] --> src/ch_1.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn thread_parking() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `id_allocation` is never used [INFO] [stdout] --> src/ch_2.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn id_allocation() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `X` is never used [INFO] [stdout] --> src/ch_3.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | static X: AtomicI32 = AtomicI32::new(0); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `Y` is never used [INFO] [stdout] --> src/ch_3.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | static Y: AtomicI32 = AtomicI32::new(0); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `conditional_variables` is never used [INFO] [stdout] --> src/ch_1.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn conditional_variables() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DATA` is never used [INFO] [stdout] --> src/ch_3.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | static mut DATA: String = String::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LOCKED` is never used [INFO] [stdout] --> src/ch_3.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | static LOCKED: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `a` is never used [INFO] [stdout] --> src/ch_3.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn a() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ch_2` is never used [INFO] [stdout] --> src/ch_2.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn ch_2() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `b` is never used [INFO] [stdout] --> src/ch_3.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn b() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f` is never used [INFO] [stdout] --> src/ch_3.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn f() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ex` is never used [INFO] [stdout] --> src/ch_3.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn ex() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_item` is never used [INFO] [stdout] --> src/ch_2.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn process_item(i: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `release_and_acquire_ordering` is never used [INFO] [stdout] --> src/ch_3.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn release_and_acquire_ordering() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ex_locking` is never used [INFO] [stdout] --> src/ch_3.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn ex_locking() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_process_reporting_multiple_threads` is never used [INFO] [stdout] --> src/ch_2.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn example_process_reporting_multiple_threads() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_statistics` is never used [INFO] [stdout] --> src/ch_2.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn example_statistics() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `increment` is never used [INFO] [stdout] --> src/ch_2.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn increment(a: &AtomicU32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `id_allocation` is never used [INFO] [stdout] --> src/ch_2.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn id_allocation() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `X` is never used [INFO] [stdout] --> src/ch_3.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | static X: AtomicI32 = AtomicI32::new(0); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `Y` is never used [INFO] [stdout] --> src/ch_3.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | static Y: AtomicI32 = AtomicI32::new(0); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DATA` is never used [INFO] [stdout] --> src/ch_3.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | static mut DATA: String = String::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LOCKED` is never used [INFO] [stdout] --> src/ch_3.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | static LOCKED: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `a` is never used [INFO] [stdout] --> src/ch_3.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn a() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `b` is never used [INFO] [stdout] --> src/ch_3.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn b() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f` is never used [INFO] [stdout] --> src/ch_3.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn f() { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ex` is never used [INFO] [stdout] --> src/ch_3.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn ex() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `release_and_acquire_ordering` is never used [INFO] [stdout] --> src/ch_3.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn release_and_acquire_ordering() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ex_locking` is never used [INFO] [stdout] --> src/ch_3.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn ex_locking() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ch_3.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | DATA.push('!'); [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ch_3.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | S.push('!'); [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ch_3.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | S.push('1'); [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ch_3.rs:116:31 [INFO] [stdout] | [INFO] [stdout] 116 | println!("{:?}", unsafe { S.as_str() }) [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ch_3.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | DATA.push('!'); [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ch_3.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | S.push('!'); [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ch_3.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | S.push('1'); [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ch_3.rs:116:31 [INFO] [stdout] | [INFO] [stdout] 116 | println!("{:?}", unsafe { S.as_str() }) [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] running `Command { std: "docker" "inspect" "6e1bb2423c8136486cc996b1896f3ffe953e63c6ee02acd8d2dcb408bd3a348e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e1bb2423c8136486cc996b1896f3ffe953e63c6ee02acd8d2dcb408bd3a348e", kill_on_drop: false }` [INFO] [stdout] 6e1bb2423c8136486cc996b1896f3ffe953e63c6ee02acd8d2dcb408bd3a348e