[INFO] fetching crate shared_singleton 0.2.1... [INFO] testing shared_singleton-0.2.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate shared_singleton 0.2.1 into /workspace/builds/worker-0-tc2/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-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate shared_singleton 0.2.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 32 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f347156e6ea519bed3f49a857717833121d63e7bb305d0d8338d82abe11b487 [INFO] running `Command { std: "docker" "start" "-a" "8f347156e6ea519bed3f49a857717833121d63e7bb305d0d8338d82abe11b487", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f347156e6ea519bed3f49a857717833121d63e7bb305d0d8338d82abe11b487", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f347156e6ea519bed3f49a857717833121d63e7bb305d0d8338d82abe11b487", kill_on_drop: false }` [INFO] [stdout] 8f347156e6ea519bed3f49a857717833121d63e7bb305d0d8338d82abe11b487 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2854a75aa8b83f77cd95c905d60e9610107d1d9b02e9b4a3d9c89524cea9adf [INFO] running `Command { std: "docker" "start" "-a" "d2854a75aa8b83f77cd95c905d60e9610107d1d9b02e9b4a3d9c89524cea9adf", 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.22s [INFO] running `Command { std: "docker" "inspect" "d2854a75aa8b83f77cd95c905d60e9610107d1d9b02e9b4a3d9c89524cea9adf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2854a75aa8b83f77cd95c905d60e9610107d1d9b02e9b4a3d9c89524cea9adf", kill_on_drop: false }` [INFO] [stdout] d2854a75aa8b83f77cd95c905d60e9610107d1d9b02e9b4a3d9c89524cea9adf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef3aff5b4acb519d7ba05b18e7a1b69a87f069a7cd59b51b2ef2d6f1ba3a7109 [INFO] running `Command { std: "docker" "start" "-a" "ef3aff5b4acb519d7ba05b18e7a1b69a87f069a7cd59b51b2ef2d6f1ba3a7109", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.47.1 [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 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: 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)]` (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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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 3.53s [INFO] running `Command { std: "docker" "inspect" "ef3aff5b4acb519d7ba05b18e7a1b69a87f069a7cd59b51b2ef2d6f1ba3a7109", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef3aff5b4acb519d7ba05b18e7a1b69a87f069a7cd59b51b2ef2d6f1ba3a7109", kill_on_drop: false }` [INFO] [stdout] ef3aff5b4acb519d7ba05b18e7a1b69a87f069a7cd59b51b2ef2d6f1ba3a7109 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 69d0147df539ad37e4fb1a019f6ac2c98259a8037a6e7f6308330b0b2a1f9df3 [INFO] running `Command { std: "docker" "start" "-a" "69d0147df539ad37e4fb1a019f6ac2c98259a8037a6e7f6308330b0b2a1f9df3", 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: for more information, see [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: `#[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: for more information, see [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: 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: for more information, see [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: 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: for more information, see [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: 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: for more information, see [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: 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: for more information, see [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: 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.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/shared_singleton-77c23d24bed625be) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test singleton::tests::rc_cell_test ... ok [INFO] [stderr] Doc-tests shared_singleton [INFO] [stdout] test singleton::tests::arc_mutex_test ... ok [INFO] [stdout] test singleton::tests::rc_test ... ok [INFO] [stdout] test singleton::tests::arc_rwlock_test ... ok [INFO] [stdout] test singleton::tests::rc_refcell_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] [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 13) ... ok [INFO] [stdout] test src/lib.rs - (line 48) ... ok [INFO] [stdout] test src/lib.rs - (line 66) ... ok [INFO] [stdout] test src/lib.rs - (line 29) ... ok [INFO] [stdout] test src/lib.rs - (line 82) ... ok [INFO] [stdout] test src/lib.rs - (line 109) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 1.12s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "69d0147df539ad37e4fb1a019f6ac2c98259a8037a6e7f6308330b0b2a1f9df3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69d0147df539ad37e4fb1a019f6ac2c98259a8037a6e7f6308330b0b2a1f9df3", kill_on_drop: false }` [INFO] [stdout] 69d0147df539ad37e4fb1a019f6ac2c98259a8037a6e7f6308330b0b2a1f9df3