[INFO] cloning repository https://github.com/Harshit933/rust-spin_lock
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Harshit933/rust-spin_lock" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHarshit933%2Frust-spin_lock", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHarshit933%2Frust-spin_lock'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ed14705f9f07c44e80166b25048632a05411537d
[INFO] testing Harshit933/rust-spin_lock against 1.98.0-beta.1 for beta-1.98-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHarshit933%2Frust-spin_lock" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Harshit933/rust-spin_lock
[INFO] finished tweaking git repo https://github.com/Harshit933/rust-spin_lock
[INFO] tweaked toml for git repo https://github.com/Harshit933/rust-spin_lock written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Harshit933/rust-spin_lock on toolchain 1.98.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Harshit933/rust-spin_lock 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" "+1.98.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de
[INFO] running `Command { std: "docker" "start" "f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling spin-lock v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `cell::UnsafeCell` and `env::var`
[INFO] [stdout]  --> src/guard.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{cell::UnsafeCell, env::var, ops::{Deref, DerefMut}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]   --> src/guard.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     use std::thread;
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.18s
[INFO] [stdout] warning: unused import: `crate::spin_lock::SpinLock`
[INFO] [stdout]   --> src/guard.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |     use crate::spin_lock::SpinLock;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `self`, `spawn`, and `sync::atomic::Ordering::Relaxed`
[INFO] [stdout]   --> src/atomic_spin_lock.rs:36:15
[INFO] [stdout]    |
[INFO] [stdout] 36 |     use std::{sync::atomic::Ordering::Relaxed, thread::{self, spawn}};
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^           ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::atomic_spin_lock::SpinLockAtomic`
[INFO] [stdout]   --> src/atomic_spin_lock.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |     use crate::atomic_spin_lock::SpinLockAtomic;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SpinLock` is never constructed
[INFO] [stdout]  --> src/spin_lock.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct SpinLock<T> {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `lock`, and `unlock` are never used
[INFO] [stdout]   --> src/spin_lock.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl<T> SpinLock<T> {
[INFO] [stdout]    | ------------------- associated items in this implementation
[INFO] [stdout] 16 |     pub fn new(value: T) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn lock<'a>(&'a self) -> Guard<T> {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub unsafe fn unlock(&self) {
[INFO] [stdout]    |                   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Guard` is never constructed
[INFO] [stdout]  --> src/guard.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Guard<'a, T> {
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SpinLockAtomic` is never constructed
[INFO] [stdout]   --> src/atomic_spin_lock.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct SpinLockAtomic {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `unlock`, and `lock` are never used
[INFO] [stdout]   --> src/atomic_spin_lock.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | impl SpinLockAtomic {
[INFO] [stdout]    | ------------------- associated items in this implementation
[INFO] [stdout] 19 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn unlock(&self) {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn lock(&self) {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/spin_lock.rs:23:34
[INFO] [stdout]    |
[INFO] [stdout] 23 |     pub fn lock<'a>(&'a self) -> Guard<T> {
[INFO] [stdout]    |                      --          ^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                      |
[INFO] [stdout]    |                      the lifetime is named here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]    |
[INFO] [stdout] 23 |     pub fn lock<'a>(&'a self) -> Guard<'a, T> {
[INFO] [stdout]    |                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] warning: unused imports: `cell::UnsafeCell` and `env::var`
[INFO] [stdout]  --> src/guard.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{cell::UnsafeCell, env::var, ops::{Deref, DerefMut}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]   --> src/guard.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     use std::thread;
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::spin_lock::SpinLock`
[INFO] [stdout]   --> src/guard.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |     use crate::spin_lock::SpinLock;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `self`, `spawn`, and `sync::atomic::Ordering::Relaxed`
[INFO] [stdout]   --> src/atomic_spin_lock.rs:36:15
[INFO] [stdout]    |
[INFO] [stdout] 36 |     use std::{sync::atomic::Ordering::Relaxed, thread::{self, spawn}};
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^           ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::atomic_spin_lock::SpinLockAtomic`
[INFO] [stdout]   --> src/atomic_spin_lock.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |     use crate::atomic_spin_lock::SpinLockAtomic;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SpinLock` is never constructed
[INFO] [stdout]  --> src/spin_lock.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct SpinLock<T> {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `lock`, and `unlock` are never used
[INFO] [stdout]   --> src/spin_lock.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl<T> SpinLock<T> {
[INFO] [stdout]    | ------------------- associated items in this implementation
[INFO] [stdout] 16 |     pub fn new(value: T) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn lock<'a>(&'a self) -> Guard<T> {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub unsafe fn unlock(&self) {
[INFO] [stdout]    |                   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Guard` is never constructed
[INFO] [stdout]  --> src/guard.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Guard<'a, T> {
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SpinLockAtomic` is never constructed
[INFO] [stdout]   --> src/atomic_spin_lock.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct SpinLockAtomic {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `unlock`, and `lock` are never used
[INFO] [stdout]   --> src/atomic_spin_lock.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | impl SpinLockAtomic {
[INFO] [stdout]    | ------------------- associated items in this implementation
[INFO] [stdout] 19 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn unlock(&self) {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn lock(&self) {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/spin_lock.rs:23:34
[INFO] [stdout]    |
[INFO] [stdout] 23 |     pub fn lock<'a>(&'a self) -> Guard<T> {
[INFO] [stdout]    |                      --          ^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                      |
[INFO] [stdout]    |                      the lifetime is named here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]    |
[INFO] [stdout] 23 |     pub fn lock<'a>(&'a self) -> Guard<'a, T> {
[INFO] [stdout]    |                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling spin-lock v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `cell::UnsafeCell` and `env::var`
[INFO] [stdout]  --> src/guard.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{cell::UnsafeCell, env::var, ops::{Deref, DerefMut}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `spawn` and `sync::atomic::Ordering::Relaxed`
[INFO] [stdout]   --> src/atomic_spin_lock.rs:36:15
[INFO] [stdout]    |
[INFO] [stdout] 36 |     use std::{sync::atomic::Ordering::Relaxed, thread::{self, spawn}};
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                 ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `unlock` is never used
[INFO] [stdout]   --> src/spin_lock.rs:37:19
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl<T> SpinLock<T> {
[INFO] [stdout]    | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub unsafe fn unlock(&self) {
[INFO] [stdout]    |                   ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/spin_lock.rs:23:34
[INFO] [stdout]    |
[INFO] [stdout] 23 |     pub fn lock<'a>(&'a self) -> Guard<T> {
[INFO] [stdout]    |                      --          ^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                      |
[INFO] [stdout]    |                      the lifetime is named here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]    |
[INFO] [stdout] 23 |     pub fn lock<'a>(&'a self) -> Guard<'a, T> {
[INFO] [stdout]    |                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s
[INFO] running `Command { std: "docker" "inspect" "f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `cell::UnsafeCell` and `env::var`
[INFO] [stderr]  --> src/guard.rs:1:11
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::{cell::UnsafeCell, env::var, ops::{Deref, DerefMut}};
[INFO] [stderr]   |           ^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::thread`
[INFO] [stderr]   --> src/guard.rs:36:9
[INFO] [stderr]    |
[INFO] [stderr] 36 |     use std::thread;
[INFO] [stderr]    |         ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::spin_lock::SpinLock`
[INFO] [stderr]   --> src/guard.rs:38:9
[INFO] [stderr]    |
[INFO] [stderr] 38 |     use crate::spin_lock::SpinLock;
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `self`, `spawn`, and `sync::atomic::Ordering::Relaxed`
[INFO] [stderr]   --> src/atomic_spin_lock.rs:36:15
[INFO] [stderr]    |
[INFO] [stderr] 36 |     use std::{sync::atomic::Ordering::Relaxed, thread::{self, spawn}};
[INFO] [stderr]    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^           ^^^^  ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::atomic_spin_lock::SpinLockAtomic`
[INFO] [stderr]   --> src/atomic_spin_lock.rs:37:9
[INFO] [stderr]    |
[INFO] [stderr] 37 |     use crate::atomic_spin_lock::SpinLockAtomic;
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `SpinLock` is never constructed
[INFO] [stderr]  --> src/spin_lock.rs:5:12
[INFO] [stdout] 
[INFO] [stderr]   |
[INFO] [stdout] running 2 tests
[INFO] [stderr] 5 | pub struct SpinLock<T> {
[INFO] [stderr]   |            ^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `lock`, and `unlock` are never used
[INFO] [stderr]   --> src/spin_lock.rs:16:12
[INFO] [stderr]    |
[INFO] [stderr] 15 | impl<T> SpinLock<T> {
[INFO] [stderr]    | ------------------- associated items in this implementation
[INFO] [stderr] 16 |     pub fn new(value: T) -> Self {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 23 |     pub fn lock<'a>(&'a self) -> Guard<T> {
[INFO] [stderr]    |            ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 37 |     pub unsafe fn unlock(&self) {
[INFO] [stderr]    |                   ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Guard` is never constructed
[INFO] [stderr]  --> src/guard.rs:7:12
[INFO] [stderr]   |
[INFO] [stderr] 7 | pub struct Guard<'a, T> {
[INFO] [stderr]   |            ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `SpinLockAtomic` is never constructed
[INFO] [stderr]   --> src/atomic_spin_lock.rs:12:12
[INFO] [stderr]    |
[INFO] [stderr] 12 | pub struct SpinLockAtomic {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `unlock`, and `lock` are never used
[INFO] [stderr]   --> src/atomic_spin_lock.rs:19:12
[INFO] [stderr]    |
[INFO] [stderr] 18 | impl SpinLockAtomic {
[INFO] [stderr]    | ------------------- associated items in this implementation
[INFO] [stderr] 19 |     pub fn new() -> Self {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 23 |     pub fn unlock(&self) {
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 27 |     pub fn lock(&self) {
[INFO] [stderr]    |            ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stderr]   --> src/spin_lock.rs:23:34
[INFO] [stderr]    |
[INFO] [stderr] 23 |     pub fn lock<'a>(&'a self) -> Guard<T> {
[INFO] [stderr]    |                      --          ^^^^^^^^ the same lifetime is hidden here
[INFO] [stderr]    |                      |
[INFO] [stderr]    |                      the lifetime is named here
[INFO] [stderr]    |
[INFO] [stderr]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stderr] help: consistently use `'a`
[INFO] [stderr]    |
[INFO] [stderr] 23 |     pub fn lock<'a>(&'a self) -> Guard<'a, T> {
[INFO] [stderr]    |                                        +++
[INFO] [stderr] 
[INFO] [stderr] warning: `spin-lock` (lib) generated 11 warnings (run `cargo fix --lib -p spin-lock` to apply 6 suggestions)
[INFO] [stderr] warning: unused imports: `spawn` and `sync::atomic::Ordering::Relaxed`
[INFO] [stderr]   --> src/atomic_spin_lock.rs:36:15
[INFO] [stderr]    |
[INFO] [stderr] 36 |     use std::{sync::atomic::Ordering::Relaxed, thread::{self, spawn}};
[INFO] [stderr]    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                 ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `unlock` is never used
[INFO] [stderr]   --> src/spin_lock.rs:37:19
[INFO] [stderr]    |
[INFO] [stderr] 15 | impl<T> SpinLock<T> {
[INFO] [stderr]    | ------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 37 |     pub unsafe fn unlock(&self) {
[INFO] [stderr]    |                   ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `spin-lock` (lib test) generated 4 warnings (2 duplicates) (run `cargo fix --lib -p spin-lock --tests` to apply 1 suggestion)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/spin_lock-8db07e518e653303)
[INFO] [stdout] test atomic_spin_lock::tests::try_simple_spin_lock ... ok
[INFO] [stdout] test guard::tests::test_simple_spin_lock ... ok
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests spin_lock
[INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[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" "f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de", kill_on_drop: false }`
[INFO] [stdout] f31315f5e4bc1f4872a6f68b7924ac0377293571898c3ee7db922d468def07de
