[INFO] fetching crate shared_singleton 0.2.1... [INFO] testing shared_singleton-0.2.1 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate shared_singleton 0.2.1 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate shared_singleton 0.2.1 [INFO] finished tweaking crates.io crate shared_singleton 0.2.1 [INFO] tweaked toml for crates.io crate shared_singleton 0.2.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate shared_singleton 0.2.1 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 7 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f4a8d846fc18e45f72b4b7d7562b70fec19c2f6dc413fae14749bc7eefe8814b [INFO] running `Command { std: "docker" "start" "-a" "f4a8d846fc18e45f72b4b7d7562b70fec19c2f6dc413fae14749bc7eefe8814b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f4a8d846fc18e45f72b4b7d7562b70fec19c2f6dc413fae14749bc7eefe8814b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4a8d846fc18e45f72b4b7d7562b70fec19c2f6dc413fae14749bc7eefe8814b", kill_on_drop: false }` [INFO] [stdout] f4a8d846fc18e45f72b4b7d7562b70fec19c2f6dc413fae14749bc7eefe8814b [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 834b653550be214d740c4d475658cb6c44915ef856c0e6c243eea5da9787890a [INFO] running `Command { std: "docker" "start" "-a" "834b653550be214d740c4d475658cb6c44915ef856c0e6c243eea5da9787890a", kill_on_drop: false }` [INFO] [stderr] Compiling shared_singleton v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `doc_cfg` [INFO] [stdout] --> src/lib.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(doc_cfg, feature(doc_cfg))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_cfg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(doc_cfg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] running `Command { std: "docker" "inspect" "834b653550be214d740c4d475658cb6c44915ef856c0e6c243eea5da9787890a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "834b653550be214d740c4d475658cb6c44915ef856c0e6c243eea5da9787890a", kill_on_drop: false }` [INFO] [stdout] 834b653550be214d740c4d475658cb6c44915ef856c0e6c243eea5da9787890a [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef6c4f7c44e4e21f6f472bf2e27589503d04c3b8c11c1897887955947d880e71 [INFO] running `Command { std: "docker" "start" "-a" "ef6c4f7c44e4e21f6f472bf2e27589503d04c3b8c11c1897887955947d880e71", kill_on_drop: false }` [INFO] [stdout] warning: unexpected `cfg` condition name: `doc_cfg` [INFO] [stdout] --> src/lib.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(doc_cfg, feature(doc_cfg))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_cfg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(doc_cfg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tokio v1.52.1 [INFO] [stderr] Compiling shared_singleton v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `doc_cfg` [INFO] [stdout] --> src/lib.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(doc_cfg, feature(doc_cfg))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_cfg)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(doc_cfg)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/singleton.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 119 | impl_singleton_rc!(Foo, Foo); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [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: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_rc` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/singleton.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 126 | impl_singleton_rc_cell!(Foo, Foo); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [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: for more information, see [INFO] [stdout] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_rc_cell` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/singleton.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 133 | impl_singleton_rc_refcell!(Foo, Foo); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [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: for more information, see [INFO] [stdout] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_rc_refcell` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/singleton.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 140 | impl_singleton_arc!(Foo, Foo); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [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: for more information, see [INFO] [stdout] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_arc` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/singleton.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 147 | impl_singleton_arc_mutex!(Foo, Foo); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [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: for more information, see [INFO] [stdout] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_arc_mutex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/singleton.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 154 | impl_singleton_arc_rwlock!(Foo, Foo); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [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: for more information, see [INFO] [stdout] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_arc_rwlock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.64s [INFO] running `Command { std: "docker" "inspect" "ef6c4f7c44e4e21f6f472bf2e27589503d04c3b8c11c1897887955947d880e71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef6c4f7c44e4e21f6f472bf2e27589503d04c3b8c11c1897887955947d880e71", kill_on_drop: false }` [INFO] [stdout] ef6c4f7c44e4e21f6f472bf2e27589503d04c3b8c11c1897887955947d880e71 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 16fa5e8c1b8c9b7797a1626797897e99c22ac4c4eacd7c31c9034e6a8bf43b40 [INFO] running `Command { std: "docker" "start" "-a" "16fa5e8c1b8c9b7797a1626797897e99c22ac4c4eacd7c31c9034e6a8bf43b40", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition name: `doc_cfg` [INFO] [stderr] --> src/lib.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | #![cfg_attr(doc_cfg, feature(doc_cfg))] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_cfg)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(doc_cfg)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `shared_singleton` (lib) generated 1 warning [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/singleton.rs:20:26 [INFO] [stderr] | [INFO] [stderr] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stderr] | ^^^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 119 | impl_singleton_rc!(Foo, Foo); [INFO] [stderr] | ---------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_rc` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/singleton.rs:20:26 [INFO] [stderr] | [INFO] [stderr] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stderr] | ^^^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 126 | impl_singleton_rc_cell!(Foo, Foo); [INFO] [stderr] | --------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: for more information, see [INFO] [stderr] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_rc_cell` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/singleton.rs:20:26 [INFO] [stderr] | [INFO] [stderr] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stderr] | ^^^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 133 | impl_singleton_rc_refcell!(Foo, Foo); [INFO] [stderr] | ------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: for more information, see [INFO] [stderr] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_rc_refcell` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/singleton.rs:20:26 [INFO] [stderr] | [INFO] [stderr] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stderr] | ^^^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 140 | impl_singleton_arc!(Foo, Foo); [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: for more information, see [INFO] [stderr] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_arc` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/singleton.rs:20:26 [INFO] [stderr] | [INFO] [stderr] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stderr] | ^^^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 147 | impl_singleton_arc_mutex!(Foo, Foo); [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: for more information, see [INFO] [stderr] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_arc_mutex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/singleton.rs:20:26 [INFO] [stderr] | [INFO] [stderr] 20 | unsafe { INSTANCE.clone().unwrap() } [INFO] [stderr] | ^^^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 154 | impl_singleton_arc_rwlock!(Foo, Foo); [INFO] [stderr] | ------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: for more information, see [INFO] [stderr] = note: this warning originates in the macro `__impl_singleton_base` which comes from the expansion of the macro `impl_singleton_arc_rwlock` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `shared_singleton` (lib test) generated 7 warnings (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/shared_singleton-a0ae43a4b0d488eb) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test singleton::tests::arc_mutex_test ... ok [INFO] [stdout] test singleton::tests::arc_rwlock_test ... ok [INFO] [stdout] test singleton::tests::rc_cell_test ... ok [INFO] [stdout] test singleton::tests::rc_refcell_test ... ok [INFO] [stdout] test singleton::tests::rc_test ... ok [INFO] [stdout] test singleton::tests::arc_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests shared_singleton [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - (line 142) ... ignored [INFO] [stdout] test src/lib.rs - (line 172) ... ignored [INFO] [stdout] test src/lib.rs - (line 29) ... ok [INFO] [stdout] test src/lib.rs - (line 48) ... ok [INFO] [stdout] test src/lib.rs - (line 13) ... ok [INFO] [stdout] test src/lib.rs - (line 66) ... ok [INFO] [stdout] test src/lib.rs - (line 109) ... ok [INFO] [stdout] test src/lib.rs - (line 82) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.49s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "16fa5e8c1b8c9b7797a1626797897e99c22ac4c4eacd7c31c9034e6a8bf43b40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16fa5e8c1b8c9b7797a1626797897e99c22ac4c4eacd7c31c9034e6a8bf43b40", kill_on_drop: false }` [INFO] [stdout] 16fa5e8c1b8c9b7797a1626797897e99c22ac4c4eacd7c31c9034e6a8bf43b40