[INFO] fetching crate shared_singleton 0.2.1... [INFO] testing shared_singleton-0.2.1 against try#ed7f3d77595b4831fdf085f2529aa13b5b51ff7d for pr-134530 [INFO] extracting crate shared_singleton 0.2.1 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate shared_singleton 0.2.1 on toolchain ed7f3d77595b4831fdf085f2529aa13b5b51ff7d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 26 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e68d2927e5f0c3afba59f5d004a6d3d38f5f09bf5e7ad4a7ea79135c591d491f [INFO] running `Command { std: "docker" "start" "-a" "e68d2927e5f0c3afba59f5d004a6d3d38f5f09bf5e7ad4a7ea79135c591d491f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e68d2927e5f0c3afba59f5d004a6d3d38f5f09bf5e7ad4a7ea79135c591d491f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e68d2927e5f0c3afba59f5d004a6d3d38f5f09bf5e7ad4a7ea79135c591d491f", kill_on_drop: false }` [INFO] [stdout] e68d2927e5f0c3afba59f5d004a6d3d38f5f09bf5e7ad4a7ea79135c591d491f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e726035a4c97f1b71026dafcc433418a3bb09bd8703102c1e8528dd667593b0d [INFO] running `Command { std: "docker" "start" "-a" "e726035a4c97f1b71026dafcc433418a3bb09bd8703102c1e8528dd667593b0d", 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: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [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.11s [INFO] running `Command { std: "docker" "inspect" "e726035a4c97f1b71026dafcc433418a3bb09bd8703102c1e8528dd667593b0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e726035a4c97f1b71026dafcc433418a3bb09bd8703102c1e8528dd667593b0d", kill_on_drop: false }` [INFO] [stdout] e726035a4c97f1b71026dafcc433418a3bb09bd8703102c1e8528dd667593b0d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c94b9622d74f94fcab0c73b3093819293893c68ba2ea0698451212315d6ca61 [INFO] running `Command { std: "docker" "start" "-a" "4c94b9622d74f94fcab0c73b3093819293893c68ba2ea0698451212315d6ca61", 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: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [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.42.0 [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: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [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 is discouraged [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)]` 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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 2.17s [INFO] running `Command { std: "docker" "inspect" "4c94b9622d74f94fcab0c73b3093819293893c68ba2ea0698451212315d6ca61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c94b9622d74f94fcab0c73b3093819293893c68ba2ea0698451212315d6ca61", kill_on_drop: false }` [INFO] [stdout] 4c94b9622d74f94fcab0c73b3093819293893c68ba2ea0698451212315d6ca61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 75b0a193de427645f8446232d25e6f7c268005725dff838c6335d71df064282d [INFO] running `Command { std: "docker" "start" "-a" "75b0a193de427645f8446232d25e6f7c268005725dff838c6335d71df064282d", 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: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [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 is discouraged [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)]` 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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/shared_singleton-ab4b861663f6c7b7) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test singleton::tests::arc_mutex_test ... ok [INFO] [stdout] test singleton::tests::arc_test ... ok [INFO] [stdout] test singleton::tests::arc_rwlock_test ... ok [INFO] [stdout] test singleton::tests::rc_cell_test ... ok [INFO] [stderr] Doc-tests shared_singleton [INFO] [stdout] test singleton::tests::rc_test ... ok [INFO] [stdout] test singleton::tests::rc_refcell_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] error: DefId(0:0 ~ shared_singleton[f857]) has more than five doctests [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/bin/rustdoc --edition=2021 --crate-type lib --color auto --crate-name shared_singleton --test src/lib.rs --test-run-directory /opt/rustwide/workdir -L dependency=/opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern shared_singleton=/opt/rustwide/target/debug/deps/libshared_singleton-ff7719b03937426e.rlib --extern tokio=/opt/rustwide/target/debug/deps/libtokio-b0fb90bc39077247.rlib -C embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("tokio"))' --cap-lints=forbid --error-format human` (exit status: 1) [INFO] [stderr] note: test exited abnormally; to see the full output pass --nocapture to the harness. [INFO] running `Command { std: "docker" "inspect" "75b0a193de427645f8446232d25e6f7c268005725dff838c6335d71df064282d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75b0a193de427645f8446232d25e6f7c268005725dff838c6335d71df064282d", kill_on_drop: false }` [INFO] [stdout] 75b0a193de427645f8446232d25e6f7c268005725dff838c6335d71df064282d