[INFO] cloning repository https://github.com/Lucian-4a25/rust-atomic-locks [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lucian-4a25/rust-atomic-locks" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucian-4a25%2Frust-atomic-locks", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucian-4a25%2Frust-atomic-locks'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1b832d9f5f79e500a2a5669fe6c29b3cb659a499 [INFO] checking Lucian-4a25/rust-atomic-locks against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucian-4a25%2Frust-atomic-locks" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Lucian-4a25/rust-atomic-locks on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Lucian-4a25/rust-atomic-locks [INFO] finished tweaking git repo https://github.com/Lucian-4a25/rust-atomic-locks [INFO] tweaked toml for git repo https://github.com/Lucian-4a25/rust-atomic-locks written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Lucian-4a25/rust-atomic-locks 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded atomic-wait v1.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab6eda2ee39849d4deea1557ccaae89742ef086cf6b28e4b10c2c08b3320ed6b [INFO] running `Command { std: "docker" "start" "-a" "ab6eda2ee39849d4deea1557ccaae89742ef086cf6b28e4b10c2c08b3320ed6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab6eda2ee39849d4deea1557ccaae89742ef086cf6b28e4b10c2c08b3320ed6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab6eda2ee39849d4deea1557ccaae89742ef086cf6b28e4b10c2c08b3320ed6b", kill_on_drop: false }` [INFO] [stdout] ab6eda2ee39849d4deea1557ccaae89742ef086cf6b28e4b10c2c08b3320ed6b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d4ca9cef26162960f0f343d5818d2f11fe15eefbed524d09542f5d98ece1e74 [INFO] running `Command { std: "docker" "start" "-a" "0d4ca9cef26162960f0f343d5818d2f11fe15eefbed524d09542f5d98ece1e74", kill_on_drop: false }` [INFO] [stderr] Checking atomic-wait v1.1.0 [INFO] [stderr] Checking rust-atomic-locks v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `AtomicU16` [INFO] [stdout] --> src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | sync::atomic::{AtomicU16, AtomicU64, AtomicUsize, Ordering}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wake_all` [INFO] [stdout] --> src/mutex/mod.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use atomic_wait::{wait, wake_all, wake_one}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AtomicU16` [INFO] [stdout] --> src/mutex/mod.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | sync::atomic::{AtomicI16, AtomicU16, AtomicU32, Ordering}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Duration` [INFO] [stdout] --> src/ordering/fences.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicUsize`, `fmt::Write` [INFO] [stdout] --> src/rwlock/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | fmt::Write, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | ops::{Deref, DerefMut}, [INFO] [stdout] 6 | sync::atomic::{AtomicU32, AtomicUsize, Ordering}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/send_sync_trait.rs:1:52 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::Cell, marker::PhantomData, rc::Rc, thread}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `arc_into_inner` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(arc_into_inner)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicU16`, `AtomicU64`, `AtomicUsize`, `Ordering`, `hint::black_box`, `time::Instant` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | hint::black_box, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | sync::atomic::{AtomicU16, AtomicU64, AtomicUsize, Ordering}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 5 | thread, [INFO] [stdout] 6 | time::Instant, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/arc/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/cond_var/mod.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::mutex::{Mutex, MutexGuard}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/cond_var/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wake_all` [INFO] [stdout] --> src/mutex/mod.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use atomic_wait::{wait, wake_all, wake_one}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicI16`, `AtomicU16`, `thread`, `time::Instant` [INFO] [stdout] --> src/mutex/mod.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | sync::atomic::{AtomicI16, AtomicU16, AtomicU32, Ordering}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 7 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | time::Instant, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Duration` [INFO] [stdout] --> src/ordering/fences.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicUsize`, `fmt::Write` [INFO] [stdout] --> src/rwlock/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | fmt::Write, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | ops::{Deref, DerefMut}, [INFO] [stdout] 6 | sync::atomic::{AtomicU32, AtomicUsize, Ordering}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/send_sync_trait.rs:1:52 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::Cell, marker::PhantomData, rc::Rc, thread}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `arc_into_inner` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(arc_into_inner)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/send_sync_trait.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let a = Rc::new([1]); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/ordering/lazy_load_ordering.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | drop(p); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut usize` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/send_sync_trait.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let a = Rc::new([1]); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/ordering/lazy_load_ordering.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | drop(p); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut usize` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "0d4ca9cef26162960f0f343d5818d2f11fe15eefbed524d09542f5d98ece1e74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d4ca9cef26162960f0f343d5818d2f11fe15eefbed524d09542f5d98ece1e74", kill_on_drop: false }` [INFO] [stdout] 0d4ca9cef26162960f0f343d5818d2f11fe15eefbed524d09542f5d98ece1e74 [INFO] checking Lucian-4a25/rust-atomic-locks against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucian-4a25%2Frust-atomic-locks" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Lucian-4a25/rust-atomic-locks on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Lucian-4a25/rust-atomic-locks [INFO] finished tweaking git repo https://github.com/Lucian-4a25/rust-atomic-locks [INFO] tweaked toml for git repo https://github.com/Lucian-4a25/rust-atomic-locks written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Lucian-4a25/rust-atomic-locks 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6ae2c58eb8b4fa9af26c343609d629b7a40c759be9d23439cc327cae98ef0104 [INFO] running `Command { std: "docker" "start" "-a" "6ae2c58eb8b4fa9af26c343609d629b7a40c759be9d23439cc327cae98ef0104", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6ae2c58eb8b4fa9af26c343609d629b7a40c759be9d23439cc327cae98ef0104", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ae2c58eb8b4fa9af26c343609d629b7a40c759be9d23439cc327cae98ef0104", kill_on_drop: false }` [INFO] [stdout] 6ae2c58eb8b4fa9af26c343609d629b7a40c759be9d23439cc327cae98ef0104 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ef9c6bda1d81e977c6b946a5918dc95e35e8d012aa7baa5f85901a9145a6908 [INFO] running `Command { std: "docker" "start" "-a" "0ef9c6bda1d81e977c6b946a5918dc95e35e8d012aa7baa5f85901a9145a6908", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking atomic-wait v1.1.0 [INFO] [stderr] Checking rust-atomic-locks v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/channel/mod.rs (2 fixes) [INFO] [stderr] Fixed src/ordering/fences.rs (1 fix) [INFO] [stderr] Fixed src/send_sync_trait.rs (1 fix) [INFO] [stderr] Fixed src/rwlock/mod.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stderr] Fixed src/mutex/mod.rs (2 fixes) [INFO] [stdout] warning: the feature `arc_into_inner` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(arc_into_inner)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/send_sync_trait.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let a = Rc::new([1]); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/ordering/lazy_load_ordering.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | drop(p); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut usize` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/cond_var/mod.rs (2 fixes) [INFO] [stderr] Fixed src/mutex/mod.rs (1 fix) [INFO] [stderr] Fixed src/arc/mod.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stdout] warning: the feature `arc_into_inner` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(arc_into_inner)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/send_sync_trait.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let a = Rc::new([1]); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/ordering/lazy_load_ordering.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | drop(p); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut usize` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.84s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rust-atomic-locks v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: the feature `arc_into_inner` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(arc_into_inner)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/send_sync_trait.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let a = Rc::new([1]); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/ordering/lazy_load_ordering.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | drop(p); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut usize` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/arc/mod.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let t = thread::spawn(move || { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `thread` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use crate::thread; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/cond_var/mod.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let m = Mutex::new(0); [INFO] [stdout] | ^^^^^ use of undeclared type `Mutex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use crate::mutex::Mutex; [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/cond_var/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | thread::scope(|s| { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `thread` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use crate::thread; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/mutex/mod.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | let start = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/mutex/mod.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | let start = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/mutex/mod.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | thread::scope(|s| { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `thread` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use crate::thread; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicI16` [INFO] [stdout] --> src/mutex/mod.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | let a = AtomicI16::new(i16::MAX); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `AtomicI16` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 152 | let a = AtomicU32::new(i16::MAX); [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use core::sync::atomic::AtomicI16; [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::atomic::AtomicI16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AtomicUsize` in this scope [INFO] [stdout] --> src/main.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | static A: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicUsize` [INFO] [stdout] --> src/main.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | static A: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `AtomicUsize` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `black_box` in this scope [INFO] [stdout] --> src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | black_box(A.store(0, Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::hint::black_box; [INFO] [stdout] | [INFO] [stdout] 2 + use std::hint::black_box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:46:30 [INFO] [stdout] | [INFO] [stdout] 46 | black_box(A.store(0, Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/main.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let start = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `black_box` in this scope [INFO] [stdout] --> src/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | black_box(A.load(Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::hint::black_box; [INFO] [stdout] | [INFO] [stdout] 2 + use std::hint::black_box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:51:26 [INFO] [stdout] | [INFO] [stdout] 51 | black_box(A.load(Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AtomicU64` in this scope [INFO] [stdout] --> src/main.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 59 | static A: [AtomicU64; 3] = [AtomicU64::new(0), AtomicU64::new(0), AtomicU64::new(0)]; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicU64` [INFO] [stdout] --> src/main.rs:59:33 [INFO] [stdout] | [INFO] [stdout] 59 | static A: [AtomicU64; 3] = [AtomicU64::new(0), AtomicU64::new(0), AtomicU64::new(0)]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `AtomicU64` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicU64` [INFO] [stdout] --> src/main.rs:59:52 [INFO] [stdout] | [INFO] [stdout] 59 | static A: [AtomicU64; 3] = [AtomicU64::new(0), AtomicU64::new(0), AtomicU64::new(0)]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `AtomicU64` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicU64` [INFO] [stdout] --> src/main.rs:59:71 [INFO] [stdout] | [INFO] [stdout] 59 | static A: [AtomicU64; 3] = [AtomicU64::new(0), AtomicU64::new(0), AtomicU64::new(0)]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `AtomicU64` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `black_box` in this scope [INFO] [stdout] --> src/main.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | black_box(&A); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::hint::black_box; [INFO] [stdout] | [INFO] [stdout] 2 + use std::hint::black_box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | A[0].store(0, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:63:23 [INFO] [stdout] | [INFO] [stdout] 63 | A[2].store(0, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/main.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | let start = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `black_box` in this scope [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | black_box(A[1].load(Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::hint::black_box; [INFO] [stdout] | [INFO] [stdout] 2 + use std::hint::black_box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | black_box(A[1].load(Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AtomicU64` in this scope [INFO] [stdout] --> src/main.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | struct Aligned(AtomicU64); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicU64` [INFO] [stdout] --> src/main.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | Aligned(AtomicU64::new(0)), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `AtomicU64` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicU64` [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Aligned(AtomicU64::new(0)), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `AtomicU64` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicU64` [INFO] [stdout] --> src/main.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | Aligned(AtomicU64::new(0)), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `AtomicU64` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::AtomicU64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `black_box` in this scope [INFO] [stdout] --> src/main.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | black_box(&A); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::hint::black_box; [INFO] [stdout] | [INFO] [stdout] 2 + use std::hint::black_box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | A[0].0.store(1, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | A[2].0.store(1, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/main.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let start = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `black_box` in this scope [INFO] [stdout] --> src/main.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | black_box(A[1].0.load(Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::hint::black_box; [INFO] [stdout] | [INFO] [stdout] 2 + use std::hint::black_box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:90:31 [INFO] [stdout] | [INFO] [stdout] 90 | black_box(A[1].0.load(Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use core::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `arc_into_inner` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(arc_into_inner)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/send_sync_trait.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let a = Rc::new([1]); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 34 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-atomic-locks` (bin "rust-atomic-locks" test) due to 35 previous errors; 2 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "0ef9c6bda1d81e977c6b946a5918dc95e35e8d012aa7baa5f85901a9145a6908", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ef9c6bda1d81e977c6b946a5918dc95e35e8d012aa7baa5f85901a9145a6908", kill_on_drop: false }` [INFO] [stdout] 0ef9c6bda1d81e977c6b946a5918dc95e35e8d012aa7baa5f85901a9145a6908