[INFO] cloning repository https://github.com/Gifted-s/Mutex [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Gifted-s/Mutex" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGifted-s%2FMutex", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGifted-s%2FMutex'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 78938122384a766bb2f352684b628083ca0fc218 [INFO] checking Gifted-s/Mutex/78938122384a766bb2f352684b628083ca0fc218 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGifted-s%2FMutex" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Gifted-s/Mutex on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Gifted-s/Mutex [INFO] finished tweaking git repo https://github.com/Gifted-s/Mutex [INFO] tweaked toml for git repo https://github.com/Gifted-s/Mutex written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Gifted-s/Mutex 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8dec72dcf948b26bb06d8c9dfd6b36640b0663034d4824c9ea65f460e717f3f4 [INFO] running `Command { std: "docker" "start" "-a" "8dec72dcf948b26bb06d8c9dfd6b36640b0663034d4824c9ea65f460e717f3f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8dec72dcf948b26bb06d8c9dfd6b36640b0663034d4824c9ea65f460e717f3f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8dec72dcf948b26bb06d8c9dfd6b36640b0663034d4824c9ea65f460e717f3f4", kill_on_drop: false }` [INFO] [stdout] 8dec72dcf948b26bb06d8c9dfd6b36640b0663034d4824c9ea65f460e717f3f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d5ac6ccc66f7cc1953f5e5276dabbdcb9ef8207b6dbcf3aa17c75752a757a40 [INFO] running `Command { std: "docker" "start" "-a" "3d5ac6ccc66f7cc1953f5e5276dabbdcb9ef8207b6dbcf3aa17c75752a757a40", kill_on_drop: false }` [INFO] [stderr] Checking mutex v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `AtomicUsize` [INFO] [stdout] --> src/main.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let z = z.load(Ordering::SeqCst); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | let z = z.load(Ordering::SeqCst); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/main.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let r1 = t1.join().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/main.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let r2 = t2.join().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOCKED` is never used [INFO] [stdout] --> src/main.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const LOCKED: bool = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNLOCKED` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const UNLOCKED: bool = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mutex` is never constructed [INFO] [stdout] --> src/main.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Mutex { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_lock` are never used [INFO] [stdout] --> src/main.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Mutex { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new(t: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn with_lock(&self, f: impl FnOnce(&mut T) -> R) -> R { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOCKED` is never used [INFO] [stdout] --> src/main.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const LOCKED: bool = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNLOCKED` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const UNLOCKED: bool = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mutex` is never constructed [INFO] [stdout] --> src/main.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Mutex { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_lock` are never used [INFO] [stdout] --> src/main.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Mutex { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new(t: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn with_lock(&self, f: impl FnOnce(&mut T) -> R) -> R { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutex_test` is never used [INFO] [stdout] --> src/main.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | fn mutex_test() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "3d5ac6ccc66f7cc1953f5e5276dabbdcb9ef8207b6dbcf3aa17c75752a757a40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d5ac6ccc66f7cc1953f5e5276dabbdcb9ef8207b6dbcf3aa17c75752a757a40", kill_on_drop: false }` [INFO] [stdout] 3d5ac6ccc66f7cc1953f5e5276dabbdcb9ef8207b6dbcf3aa17c75752a757a40