[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/1b832d9f5f79e500a2a5669fe6c29b3cb659a499 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucian-4a25%2Frust-atomic-locks" "/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/Lucian-4a25/rust-atomic-locks on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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-4-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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d9ef2ae605f614534b24c7041e7b06667c5d36fd17452aebdffdd0c3cf531d6 [INFO] running `Command { std: "docker" "start" "-a" "2d9ef2ae605f614534b24c7041e7b06667c5d36fd17452aebdffdd0c3cf531d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d9ef2ae605f614534b24c7041e7b06667c5d36fd17452aebdffdd0c3cf531d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d9ef2ae605f614534b24c7041e7b06667c5d36fd17452aebdffdd0c3cf531d6", kill_on_drop: false }` [INFO] [stdout] 2d9ef2ae605f614534b24c7041e7b06667c5d36fd17452aebdffdd0c3cf531d6 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7013d6c8ffb3f87544ea10f58936433c735d49f40da565707ba7592199f9ddf1 [INFO] running `Command { std: "docker" "start" "-a" "7013d6c8ffb3f87544ea10f58936433c735d49f40da565707ba7592199f9ddf1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [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] [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] [stderr] Fixed src/send_sync_trait.rs (1 fix) [INFO] [stderr] Fixed src/ordering/fences.rs (1 fix) [INFO] [stderr] Fixed src/condition_var.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: 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: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 16 - drop(p); [INFO] [stdout] 16 + let _ = p; [INFO] [stdout] | [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] [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] [stderr] Fixed src/main.rs (1 fix) [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] [stderr] Fixed src/mutex/mod.rs (1 fix) [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: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 16 - drop(p); [INFO] [stdout] 16 + let _ = p; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/arc/mod.rs (1 fix) [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.50s [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] 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 modules [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 structs [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 modules [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 modules [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 this struct [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:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | static A: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [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:42:29 [INFO] [stdout] | [INFO] [stdout] 42 | static A: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `AtomicUsize` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [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:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | black_box(A.store(0, Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [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:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | black_box(A.store(0, Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [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:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | 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:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | black_box(A.load(Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [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:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | black_box(A.load(Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [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:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | 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 this struct [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:57:33 [INFO] [stdout] | [INFO] [stdout] 57 | 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 this struct [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:57:52 [INFO] [stdout] | [INFO] [stdout] 57 | 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 this struct [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:57:71 [INFO] [stdout] | [INFO] [stdout] 57 | 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 this struct [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:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | black_box(&A); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [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:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | A[0].store(0, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [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:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | A[2].store(0, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [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:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | 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:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | black_box(A[1].load(Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [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:65:29 [INFO] [stdout] | [INFO] [stdout] 65 | black_box(A[1].load(Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [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:73:20 [INFO] [stdout] | [INFO] [stdout] 73 | struct Aligned(AtomicU64); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [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:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | Aligned(AtomicU64::new(0)), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `AtomicU64` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [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:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | Aligned(AtomicU64::new(0)), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `AtomicU64` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [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 this struct [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:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | black_box(&A); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [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:83:25 [INFO] [stdout] | [INFO] [stdout] 83 | A[0].0.store(1, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [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:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | A[2].0.store(1, Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [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:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | 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:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | black_box(A[1].0.load(Ordering::Relaxed)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [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:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | 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 enums [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] 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: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 16 - drop(p); [INFO] [stdout] 16 + let _ = p; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [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" "7013d6c8ffb3f87544ea10f58936433c735d49f40da565707ba7592199f9ddf1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7013d6c8ffb3f87544ea10f58936433c735d49f40da565707ba7592199f9ddf1", kill_on_drop: false }` [INFO] [stdout] 7013d6c8ffb3f87544ea10f58936433c735d49f40da565707ba7592199f9ddf1