[INFO] fetching crate static_init 1.0.3... [INFO] checking static_init-1.0.3 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-2 [INFO] extracting crate static_init 1.0.3 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate static_init 1.0.3 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 crates.io crate static_init 1.0.3 [INFO] finished tweaking crates.io crate static_init 1.0.3 [INFO] tweaked toml for crates.io crate static_init 1.0.3 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 78 packages [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.5.0) [INFO] [stderr] Adding cfg_aliases v0.1.1 (latest: v0.2.0) [INFO] [stderr] Adding clap v2.34.0 (latest: v4.5.4) [INFO] [stderr] Adding criterion v0.3.6 (latest: v0.5.1) [INFO] [stderr] Adding criterion-plot v0.4.5 (latest: v0.5.0) [INFO] [stderr] Adding ctor v0.1.26 (latest: v0.2.7) [INFO] [stderr] Adding half v1.8.3 (latest: v2.4.0) [INFO] [stderr] Adding hermit-abi v0.1.19 (latest: v0.3.9) [INFO] [stderr] Adding itertools v0.10.5 (latest: v0.12.1) [INFO] [stderr] Adding parking_lot v0.11.2 (latest: v0.12.1) [INFO] [stderr] Adding parking_lot_core v0.8.6 (latest: v0.9.9) [INFO] [stderr] Adding redox_syscall v0.2.16 (latest: v0.5.1) [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.57) [INFO] [stderr] Adding textwrap v0.11.0 (latest: v0.16.1) [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] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded double-checked-cell v2.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] 9711edbfd0b3751d914b6d80bca5b43890993e2b5e5923d8bd11d5dfeda79bcb [INFO] running `Command { std: "docker" "start" "-a" "9711edbfd0b3751d914b6d80bca5b43890993e2b5e5923d8bd11d5dfeda79bcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9711edbfd0b3751d914b6d80bca5b43890993e2b5e5923d8bd11d5dfeda79bcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9711edbfd0b3751d914b6d80bca5b43890993e2b5e5923d8bd11d5dfeda79bcb", kill_on_drop: false }` [INFO] [stdout] 9711edbfd0b3751d914b6d80bca5b43890993e2b5e5923d8bd11d5dfeda79bcb [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] a33e96dc12e9a00164c328f94567841bc5a3e7a31e6c014f3d3ce8893e17cc4d [INFO] running `Command { std: "docker" "start" "-a" "a33e96dc12e9a00164c328f94567841bc5a3e7a31e6c014f3d3ce8893e17cc4d", kill_on_drop: false }` [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.57 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking crossbeam-channel v0.5.12 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking libc v0.2.153 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling static_init_macro v1.0.2 [INFO] [stderr] Compiling static_init v1.0.3 (/opt/rustwide/workdir) [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking double-checked-cell v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling ctor v0.1.26 [INFO] [stdout] warning: the item `Phase` is imported redundantly [INFO] [stdout] --> src/phase_locker/sync.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::phase::*; [INFO] [stdout] | --------------- the item `Phase` is already imported here [INFO] [stdout] 5 | use crate::{Phase, Phased}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Phase` is imported redundantly [INFO] [stdout] --> src/phase_locker/unsync.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::phase::*; [INFO] [stdout] | --------------- the item `Phase` is already imported here [INFO] [stdout] 3 | use crate::{Phase, Phased}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Phase` is imported redundantly [INFO] [stdout] --> src/phase_locker/sync.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::phase::*; [INFO] [stdout] | --------------- the item `Phase` is already imported here [INFO] [stdout] 5 | use crate::{Phase, Phased}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Phase` is imported redundantly [INFO] [stdout] --> src/phase_locker/unsync.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::phase::*; [INFO] [stdout] | --------------- the item `Phase` is already imported here [INFO] [stdout] 3 | use crate::{Phase, Phased}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `lock_mut` is never used [INFO] [stdout] --> src/lib.rs:393:8 [INFO] [stdout] | [INFO] [stdout] 369 | unsafe trait Sequentializer<'a, T: Sequential + 'a>: Sized + Phased { [INFO] [stdout] | -------------- associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 393 | fn lock_mut(target: &'a mut T) -> Self::WriteGuard; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `commit_phase` is never used [INFO] [stdout] --> src/phase_locker.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) unsafe trait PhaseGuard<'a, T: ?Sized + 'a> { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 41 | fn commit_phase(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `lock_mut` and `phase` are never used [INFO] [stdout] --> src/phase_locker.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) unsafe trait PhaseLocker<'a, T: 'a> { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 71 | fn lock_mut(&'a mut self, value: &'a T) -> Self::WriteGuard; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn phase(&self) -> Phase; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/phase_locker/sync.rs:40:48 [INFO] [stdout] | [INFO] [stdout] 40 | pub(crate) struct MutexGuard<'a, T>(&'a mut T, Lock<'a>); [INFO] [stdout] | ---------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 40 | pub(crate) struct MutexGuard<'a, T>(&'a mut T, ()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `phase` and `xor_phase` are never used [INFO] [stdout] --> src/phase_locker/sync.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 285 | impl<'a> Lock<'a> { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 296 | pub fn phase(&self) -> Phase { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn xor_phase(&self, xor: Phase) -> Phase { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lock_mut` is never used [INFO] [stdout] --> src/phase_locker/sync.rs:691:12 [INFO] [stdout] | [INFO] [stdout] 678 | impl SyncPhaseLocker { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 691 | pub fn lock_mut<'a, T: ?Sized>(&'a mut self, v: &'a T) -> SyncPhaseGuard<'_, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lock_mut` is never used [INFO] [stdout] --> src/phase_locker/unsync.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl UnSyncPhaseLocker { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 261 | pub fn lock_mut<'a, T: ?Sized>(&'a mut self, v: &'a T) -> UnSyncPhaseGuard<'_, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `lock_mut` is never used [INFO] [stdout] --> src/lib.rs:393:8 [INFO] [stdout] | [INFO] [stdout] 369 | unsafe trait Sequentializer<'a, T: Sequential + 'a>: Sized + Phased { [INFO] [stdout] | -------------- associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 393 | fn lock_mut(target: &'a mut T) -> Self::WriteGuard; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `commit_phase` is never used [INFO] [stdout] --> src/phase_locker.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) unsafe trait PhaseGuard<'a, T: ?Sized + 'a> { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 41 | fn commit_phase(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `lock_mut` and `phase` are never used [INFO] [stdout] --> src/phase_locker.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) unsafe trait PhaseLocker<'a, T: 'a> { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 71 | fn lock_mut(&'a mut self, value: &'a T) -> Self::WriteGuard; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn phase(&self) -> Phase; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/phase_locker/sync.rs:40:48 [INFO] [stdout] | [INFO] [stdout] 40 | pub(crate) struct MutexGuard<'a, T>(&'a mut T, Lock<'a>); [INFO] [stdout] | ---------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 40 | pub(crate) struct MutexGuard<'a, T>(&'a mut T, ()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `phase` and `xor_phase` are never used [INFO] [stdout] --> src/phase_locker/sync.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 285 | impl<'a> Lock<'a> { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 296 | pub fn phase(&self) -> Phase { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn xor_phase(&self, xor: Phase) -> Phase { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lock_mut` is never used [INFO] [stdout] --> src/phase_locker/sync.rs:691:12 [INFO] [stdout] | [INFO] [stdout] 678 | impl SyncPhaseLocker { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 691 | pub fn lock_mut<'a, T: ?Sized>(&'a mut self, v: &'a T) -> SyncPhaseGuard<'_, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lock_mut` is never used [INFO] [stdout] --> src/phase_locker/unsync.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl UnSyncPhaseLocker { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 261 | pub fn lock_mut<'a, T: ?Sized>(&'a mut self, v: &'a T) -> UnSyncPhaseGuard<'_, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking criterion v0.3.6 [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> tests/macro.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | assert_eq!(*IX, &IX as *const _ as usize); [INFO] [stdout] | ^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 126 | assert_eq!(*IX, addr_of!(IX) as *const _ as usize); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> tests/macro.rs:127:26 [INFO] [stdout] | [INFO] [stdout] 127 | assert_eq!(*IX2, &IX2 as *const _ as usize); [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 127 | assert_eq!(*IX2, addr_of!(IX2) as *const _ as usize); [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> tests/macro.rs:114:33 [INFO] [stdout] | [INFO] [stdout] 114 | static IX: usize = unsafe { &IX as *const _ as usize }; [INFO] [stdout] | ^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 114 | static IX: usize = unsafe { addr_of!(IX) as *const _ as usize }; [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> tests/macro.rs:116:34 [INFO] [stdout] | [INFO] [stdout] 116 | static IX2: usize = unsafe { &IX2 as *const _ as usize }; [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 116 | static IX2: usize = unsafe { addr_of!(IX2) as *const _ as usize }; [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `UnsafeCell` cannot be shared between threads safely [INFO] [stdout] --> benches/multi_threaded/synchronised_bench.rs:165:46 [INFO] [stdout] | [INFO] [stdout] 165 | spawned.push(s.spawn(move |_| test_init(sender))); [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell` cannot be shared between threads safely [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `UnsafeCell`, which is required by `{closure@benches/multi_threaded/synchronised_bench.rs:165:46: 165:54}: Send` [INFO] [stdout] = note: required for `&UnsafeCell` to implement `Send` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> benches/multi_threaded/synchronised_bench.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | |sender: SyncSender>| loop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> benches/multi_threaded/synchronised_bench.rs:165:46 [INFO] [stdout] | [INFO] [stdout] 165 | spawned.push(s.spawn(move |_| test_init(sender))); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: required by a bound in `crossbeam::thread::Scope::<'env>::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.19/src/thread.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 262 | pub fn spawn<'scope, F, T>(&'scope self, f: F) -> ScopedJoinHandle<'scope, T> [INFO] [stdout] | ----- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 265 | F: Send + 'env, [INFO] [stdout] | ^^^^ required by this bound in `Scope::<'env>::spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Phase` is imported redundantly [INFO] [stdout] --> src/phase_locker/sync.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::phase::*; [INFO] [stdout] | --------------- the item `Phase` is already imported here [INFO] [stdout] 5 | use crate::{Phase, Phased}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Phase` is imported redundantly [INFO] [stdout] --> src/phase_locker/unsync.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::phase::*; [INFO] [stdout] | --------------- the item `Phase` is already imported here [INFO] [stdout] 3 | use crate::{Phase, Phased}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `static_init` (bench "multi_threaded") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: associated function `lock_mut` is never used [INFO] [stdout] --> src/lib.rs:393:8 [INFO] [stdout] | [INFO] [stdout] 369 | unsafe trait Sequentializer<'a, T: Sequential + 'a>: Sized + Phased { [INFO] [stdout] | -------------- associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 393 | fn lock_mut(target: &'a mut T) -> Self::WriteGuard; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `commit_phase` is never used [INFO] [stdout] --> src/phase_locker.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) unsafe trait PhaseGuard<'a, T: ?Sized + 'a> { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 41 | fn commit_phase(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `lock_mut` and `phase` are never used [INFO] [stdout] --> src/phase_locker.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) unsafe trait PhaseLocker<'a, T: 'a> { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 71 | fn lock_mut(&'a mut self, value: &'a T) -> Self::WriteGuard; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn phase(&self) -> Phase; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/phase_locker/sync.rs:40:48 [INFO] [stdout] | [INFO] [stdout] 40 | pub(crate) struct MutexGuard<'a, T>(&'a mut T, Lock<'a>); [INFO] [stdout] | ---------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 40 | pub(crate) struct MutexGuard<'a, T>(&'a mut T, ()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `phase` and `xor_phase` are never used [INFO] [stdout] --> src/phase_locker/sync.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 285 | impl<'a> Lock<'a> { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 296 | pub fn phase(&self) -> Phase { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn xor_phase(&self, xor: Phase) -> Phase { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lock_mut` is never used [INFO] [stdout] --> src/phase_locker/sync.rs:691:12 [INFO] [stdout] | [INFO] [stdout] 678 | impl SyncPhaseLocker { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 691 | pub fn lock_mut<'a, T: ?Sized>(&'a mut self, v: &'a T) -> SyncPhaseGuard<'_, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lock_mut` is never used [INFO] [stdout] --> src/phase_locker/unsync.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl UnSyncPhaseLocker { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 261 | pub fn lock_mut<'a, T: ?Sized>(&'a mut self, v: &'a T) -> UnSyncPhaseGuard<'_, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a33e96dc12e9a00164c328f94567841bc5a3e7a31e6c014f3d3ce8893e17cc4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a33e96dc12e9a00164c328f94567841bc5a3e7a31e6c014f3d3ce8893e17cc4d", kill_on_drop: false }` [INFO] [stdout] a33e96dc12e9a00164c328f94567841bc5a3e7a31e6c014f3d3ce8893e17cc4d