[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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust/objects/info: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 2) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 3) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 4) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 5) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 6) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 7) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 8) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 9) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 10) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 11) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 12) [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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 13) [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] testing suryxks/atomic-rust against try#ed7f3d77595b4831fdf085f2529aa13b5b51ff7d for pr-134530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuryxks%2Fatomic-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/suryxks/atomic-rust on toolchain ed7f3d77595b4831fdf085f2529aa13b5b51ff7d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-4-tc2/source/Cargo.toml [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" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cccd79840c255fadc226a804eeddfb31d25dbc5b21ed14c26c7f728503c1bf37 [INFO] running `Command { std: "docker" "start" "-a" "cccd79840c255fadc226a804eeddfb31d25dbc5b21ed14c26c7f728503c1bf37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cccd79840c255fadc226a804eeddfb31d25dbc5b21ed14c26c7f728503c1bf37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cccd79840c255fadc226a804eeddfb31d25dbc5b21ed14c26c7f728503c1bf37", kill_on_drop: false }` [INFO] [stdout] cccd79840c255fadc226a804eeddfb31d25dbc5b21ed14c26c7f728503c1bf37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f17e337922484ee10fb240aea1b8f3021722ae3ea189e7a0fa30b730c7344f7 [INFO] running `Command { std: "docker" "start" "-a" "0f17e337922484ee10fb240aea1b8f3021722ae3ea189e7a0fa30b730c7344f7", kill_on_drop: false }` [INFO] [stderr] Compiling 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 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: 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 `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 `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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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.24s [INFO] running `Command { std: "docker" "inspect" "0f17e337922484ee10fb240aea1b8f3021722ae3ea189e7a0fa30b730c7344f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f17e337922484ee10fb240aea1b8f3021722ae3ea189e7a0fa30b730c7344f7", kill_on_drop: false }` [INFO] [stdout] 0f17e337922484ee10fb240aea1b8f3021722ae3ea189e7a0fa30b730c7344f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bfedad96517655eb03a4dd84592df8ed043390a3653061151e04aaabb0eae0a4 [INFO] running `Command { std: "docker" "start" "-a" "bfedad96517655eb03a4dd84592df8ed043390a3653061151e04aaabb0eae0a4", kill_on_drop: false }` [INFO] [stderr] Compiling 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 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: 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 `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 `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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "bfedad96517655eb03a4dd84592df8ed043390a3653061151e04aaabb0eae0a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfedad96517655eb03a4dd84592df8ed043390a3653061151e04aaabb0eae0a4", kill_on_drop: false }` [INFO] [stdout] bfedad96517655eb03a4dd84592df8ed043390a3653061151e04aaabb0eae0a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] bb06babf33c78dbffffe15fe3fb82e9685caf36b2dac5594b44bd8d0cb894f8e [INFO] running `Command { std: "docker" "start" "-a" "bb06babf33c78dbffffe15fe3fb82e9685caf36b2dac5594b44bd8d0cb894f8e", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `core::num` [INFO] [stderr] --> src/ch_1.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use core::num; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AtomicI32` and `Ordering` [INFO] [stderr] --> src/main.rs:2:26 [INFO] [stderr] | [INFO] [stderr] 2 | use std::sync::atomic::{ AtomicI32, Ordering }; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ch_1::ch_1` [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use ch_1::ch_1; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `AtomicBool` [INFO] [stderr] --> src/ch_2.rs:2:21 [INFO] [stderr] | [INFO] [stderr] 2 | sync::atomic::{ AtomicBool, AtomicU32, AtomicU64, AtomicUsize, Ordering::Relaxed }, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ch_2::ch_2` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use ch_2::ch_2; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AtomicPtr`, `AtomicU64`, and `yield_now` [INFO] [stderr] --> src/ch_3.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | AtomicPtr, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 6 | AtomicU64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 9 | thread::{ self, yield_now }, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/ch_2.rs:11:17 [INFO] [stderr] | [INFO] [stderr] 11 | fn process_item(i: usize) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `ch_1` is never used [INFO] [stderr] --> src/ch_1.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn ch_1() { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `f` is never used [INFO] [stderr] --> src/ch_1.rs:26:4 [INFO] [stderr] | [INFO] [stderr] 26 | fn f() { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: function `scoped_threads` is never used [INFO] [stderr] --> src/ch_1.rs:33:4 [INFO] [stderr] | [INFO] [stderr] 33 | fn scoped_threads() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `reference_counting` is never used [INFO] [stderr] --> src/ch_1.rs:46:4 [INFO] [stderr] | [INFO] [stderr] 46 | fn reference_counting() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `mutex` is never used [INFO] [stderr] --> src/ch_1.rs:59:4 [INFO] [stderr] | [INFO] [stderr] 59 | fn mutex() { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `thread_parking` is never used [INFO] [stderr] --> src/ch_1.rs:105:4 [INFO] [stderr] | [INFO] [stderr] 105 | fn thread_parking() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `conditional_variables` is never used [INFO] [stderr] --> src/ch_1.rs:126:4 [INFO] [stderr] | [INFO] [stderr] 126 | fn conditional_variables() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `ch_2` is never used [INFO] [stderr] --> src/ch_2.rs:7:8 [INFO] [stderr] | [INFO] [stderr] 7 | pub fn ch_2() { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `process_item` is never used [INFO] [stderr] --> src/ch_2.rs:11:4 [INFO] [stderr] | [INFO] [stderr] 11 | fn process_item(i: usize) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `example_process_reporting_multiple_threads` is never used [INFO] [stderr] --> src/ch_2.rs:15:4 [INFO] [stderr] | [INFO] [stderr] 15 | fn example_process_reporting_multiple_threads() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `example_statistics` is never used [INFO] [stderr] --> src/ch_2.rs:43:4 [INFO] [stderr] | [INFO] [stderr] 43 | fn example_statistics() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `increment` is never used [INFO] [stderr] --> src/ch_2.rs:82:4 [INFO] [stderr] | [INFO] [stderr] 82 | fn increment(a: &AtomicU32) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `id_allocation` is never used [INFO] [stderr] --> src/ch_2.rs:96:4 [INFO] [stderr] | [INFO] [stderr] 96 | fn id_allocation() -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `X` is never used [INFO] [stderr] --> src/ch_3.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | static X: AtomicI32 = AtomicI32::new(0); [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: static `Y` is never used [INFO] [stderr] --> src/ch_3.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | static Y: AtomicI32 = AtomicI32::new(0); [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: static `DATA` is never used [INFO] [stderr] --> src/ch_3.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 15 | static mut DATA: String = String::new(); [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `LOCKED` is never used [INFO] [stderr] --> src/ch_3.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | static LOCKED: AtomicBool = AtomicBool::new(false); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `a` is never used [INFO] [stderr] --> src/ch_3.rs:18:4 [INFO] [stderr] | [INFO] [stderr] 18 | fn a() { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: function `b` is never used [INFO] [stderr] --> src/ch_3.rs:22:4 [INFO] [stderr] | [INFO] [stderr] 22 | fn b() { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: function `f` is never used [INFO] [stderr] --> src/ch_3.rs:45:4 [INFO] [stderr] | [INFO] [stderr] 45 | fn f() { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: function `ex` is never used [INFO] [stderr] --> src/ch_3.rs:49:4 [INFO] [stderr] | [INFO] [stderr] 49 | fn ex() { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: function `release_and_acquire_ordering` is never used [INFO] [stderr] --> src/ch_3.rs:63:4 [INFO] [stderr] | [INFO] [stderr] 63 | fn release_and_acquire_ordering() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `ex_locking` is never used [INFO] [stderr] --> src/ch_3.rs:83:4 [INFO] [stderr] | [INFO] [stderr] 83 | fn ex_locking() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/ch_3.rs:86:13 [INFO] [stderr] | [INFO] [stderr] 86 | DATA.push('!'); [INFO] [stderr] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/ch_3.rs:101:17 [INFO] [stderr] | [INFO] [stderr] 101 | S.push('!'); [INFO] [stderr] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/ch_3.rs:109:17 [INFO] [stderr] | [INFO] [stderr] 109 | S.push('1'); [INFO] [stderr] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/ch_3.rs:116:31 [INFO] [stderr] | [INFO] [stderr] 116 | println!("{:?}", unsafe { S.as_str() }) [INFO] [stderr] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: `atomic-rust` (bin "atomic-rust" test) generated 34 warnings (run `cargo fix --bin "atomic-rust" --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/atomic_rust-666465add7fb234b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "bb06babf33c78dbffffe15fe3fb82e9685caf36b2dac5594b44bd8d0cb894f8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb06babf33c78dbffffe15fe3fb82e9685caf36b2dac5594b44bd8d0cb894f8e", kill_on_drop: false }` [INFO] [stdout] bb06babf33c78dbffffe15fe3fb82e9685caf36b2dac5594b44bd8d0cb894f8e