[INFO] fetching crate optimistic_lock_coupling 0.2.5... [INFO] checking optimistic_lock_coupling-0.2.5 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate optimistic_lock_coupling 0.2.5 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate optimistic_lock_coupling 0.2.5 [INFO] finished tweaking crates.io crate optimistic_lock_coupling 0.2.5 [INFO] tweaked toml for crates.io crate optimistic_lock_coupling 0.2.5 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate optimistic_lock_coupling 0.2.5 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 72 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.3.6 (available: v0.7.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e5e3340c6b7902e01e1a41c868964fa84b5a46a6bb2dc16eabd0b717acd8886a [INFO] running `Command { std: "docker" "start" "-a" "e5e3340c6b7902e01e1a41c868964fa84b5a46a6bb2dc16eabd0b717acd8886a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e5e3340c6b7902e01e1a41c868964fa84b5a46a6bb2dc16eabd0b717acd8886a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5e3340c6b7902e01e1a41c868964fa84b5a46a6bb2dc16eabd0b717acd8886a", kill_on_drop: false }` [INFO] [stdout] e5e3340c6b7902e01e1a41c868964fa84b5a46a6bb2dc16eabd0b717acd8886a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15733d16e780ca1e5a35a396ddc8042ebaeffc5140c40a6daed535935ce5322b [INFO] running `Command { std: "docker" "start" "-a" "15733d16e780ca1e5a35a396ddc8042ebaeffc5140c40a6daed535935ce5322b", kill_on_drop: false }` [INFO] [stderr] Checking csv-core v0.1.12 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking criterion-plot v0.4.5 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking optimistic_lock_coupling v0.2.5 (/opt/rustwide/workdir) [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking criterion v0.3.6 [INFO] [stdout] warning: unused imports: `BenchmarkId` and `ParameterizedBenchmark` [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use criterion::{criterion_group, BenchmarkId, Criterion, Fun, ParameterizedBenchmark}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BenchmarkId` and `ParameterizedBenchmark` [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use criterion::{criterion_group, BenchmarkId, Criterion, Fun, ParameterizedBenchmark}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BenchmarkId` and `ParameterizedBenchmark` [INFO] [stdout] --> benches/benchmarks/compare_read_only.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use criterion::{criterion_group, BenchmarkId, Criterion, Fun, ParameterizedBenchmark}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BenchmarkId` and `ParameterizedBenchmark` [INFO] [stdout] --> benches/benchmarks/compare_write_only.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use criterion::{criterion_group, BenchmarkId, Criterion, Fun, ParameterizedBenchmark}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> benches/benchmarks/mod.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc, Mutex, RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lock` should have an upper case name [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | static mut lock: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 7 - static mut lock: Option = None; [INFO] [stdout] 7 + static mut LOCK: Option = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | lock.as_ref().unwrap().set2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | lock.as_ref().unwrap().set3(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | lock.as_ref().unwrap().get_all(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | lock.as_ref().unwrap().get2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | unsafe { assert_eq!(lock.as_ref().unwrap().get2(), 2 * i) } [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lock` should have an upper case name [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | static mut lock: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 43 - static mut lock: Option = None; [INFO] [stdout] 43 + static mut LOCK: Option = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | lock.as_ref().unwrap().set2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | lock.as_ref().unwrap().set3(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | lock.as_ref().unwrap().get_all(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | lock.as_ref().unwrap().get2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_read.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | unsafe { assert_eq!(lock.as_ref().unwrap().get2(), 2 * i) } [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lock` should have an upper case name [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | static mut lock: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 7 - static mut lock: Option = None; [INFO] [stdout] 7 + static mut LOCK: Option = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | lock.as_ref().unwrap().set2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | lock.as_ref().unwrap().set3(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | lock.as_ref().unwrap().get_all(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | lock.as_ref().unwrap().get2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | unsafe { assert_eq!(lock.as_ref().unwrap().get2(), 3 * i) } [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lock` should have an upper case name [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | static mut lock: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 43 - static mut lock: Option = None; [INFO] [stdout] 43 + static mut LOCK: Option = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | lock.as_ref().unwrap().set2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | lock.as_ref().unwrap().set3(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | lock.as_ref().unwrap().get_all(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | lock.as_ref().unwrap().get2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_heavy_write.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | unsafe { assert_eq!(lock.as_ref().unwrap().get2(), 3 * i) } [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lock` should have an upper case name [INFO] [stdout] --> benches/benchmarks/compare_read_only.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | static mut lock: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 7 - static mut lock: Option = None; [INFO] [stdout] 7 + static mut LOCK: Option = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_read_only.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | lock.as_ref().unwrap().get_all(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_read_only.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | lock.as_ref().unwrap().get2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lock` should have an upper case name [INFO] [stdout] --> benches/benchmarks/compare_read_only.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | static mut lock: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 34 - static mut lock: Option = None; [INFO] [stdout] 34 + static mut LOCK: Option = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_read_only.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | lock.as_ref().unwrap().get_all(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_read_only.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | lock.as_ref().unwrap().get2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lock` should have an upper case name [INFO] [stdout] --> benches/benchmarks/compare_write_only.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | static mut lock: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 7 - static mut lock: Option = None; [INFO] [stdout] 7 + static mut LOCK: Option = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_write_only.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | lock.as_ref().unwrap().set2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_write_only.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | lock.as_ref().unwrap().set3(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_write_only.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | unsafe { assert_eq!(lock.as_ref().unwrap().get2(), 5 * i) } [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lock` should have an upper case name [INFO] [stdout] --> benches/benchmarks/compare_write_only.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 31 | static mut lock: Option = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 31 - static mut lock: Option = None; [INFO] [stdout] 31 + static mut LOCK: Option = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_write_only.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | lock.as_ref().unwrap().set2(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_write_only.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | lock.as_ref().unwrap().set3(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> benches/benchmarks/compare_write_only.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe { assert_eq!(lock.as_ref().unwrap().get2(), 5 * i) } [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/test.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | std::thread::sleep_ms(5000); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lock` should have an upper case name [INFO] [stdout] --> src/test.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | static mut lock: Option> = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 37 - static mut lock: Option> = None; [INFO] [stdout] 37 + static mut LOCK: Option> = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/test.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 44 | match (&lock).as_ref().unwrap().write() { [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 44 | match (&raw const lock).as_ref().unwrap().write() { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/test.rs:65:20 [INFO] [stdout] | [INFO] [stdout] 65 | let read = lock.as_ref().unwrap().read().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.50s [INFO] running `Command { std: "docker" "inspect" "15733d16e780ca1e5a35a396ddc8042ebaeffc5140c40a6daed535935ce5322b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15733d16e780ca1e5a35a396ddc8042ebaeffc5140c40a6daed535935ce5322b", kill_on_drop: false }` [INFO] [stdout] 15733d16e780ca1e5a35a396ddc8042ebaeffc5140c40a6daed535935ce5322b