[INFO] cloning repository https://github.com/KingZJ/design-pattern-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KingZJ/design-pattern-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKingZJ%2Fdesign-pattern-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKingZJ%2Fdesign-pattern-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 393cbe5fcecfb3f9351a161c04fa933ae737809f [INFO] testing KingZJ/design-pattern-rs against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKingZJ%2Fdesign-pattern-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/KingZJ/design-pattern-rs [INFO] finished tweaking git repo https://github.com/KingZJ/design-pattern-rs [INFO] tweaked toml for git repo https://github.com/KingZJ/design-pattern-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/KingZJ/design-pattern-rs on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/KingZJ/design-pattern-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ee358b5c1a8aea4c9b71f0d998e5a111ba14a23cbde2b1e518e9e61f5efc506 [INFO] running `Command { std: "docker" "start" "-a" "7ee358b5c1a8aea4c9b71f0d998e5a111ba14a23cbde2b1e518e9e61f5efc506", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ee358b5c1a8aea4c9b71f0d998e5a111ba14a23cbde2b1e518e9e61f5efc506", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ee358b5c1a8aea4c9b71f0d998e5a111ba14a23cbde2b1e518e9e61f5efc506", kill_on_drop: false }` [INFO] [stdout] 7ee358b5c1a8aea4c9b71f0d998e5a111ba14a23cbde2b1e518e9e61f5efc506 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] ea3b0248470af7d07a1a40925c9c4b5e330397e5194997391f774b7ba34296aa [INFO] running `Command { std: "docker" "start" "-a" "ea3b0248470af7d07a1a40925c9c4b5e330397e5194997391f774b7ba34296aa", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.141 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling design-pattern-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/creational/singleton.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | CONF.as_mut_ptr().write(Mutex::new(Singleton)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable 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] --> src/creational/singleton.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | unsafe { &*CONF.as_ptr() } [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 3.53s [INFO] running `Command { std: "docker" "inspect" "ea3b0248470af7d07a1a40925c9c4b5e330397e5194997391f774b7ba34296aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea3b0248470af7d07a1a40925c9c4b5e330397e5194997391f774b7ba34296aa", kill_on_drop: false }` [INFO] [stdout] ea3b0248470af7d07a1a40925c9c4b5e330397e5194997391f774b7ba34296aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 281972305ab94497f5902cf6f0176e711610f187f31793638eb23b3c62fb523e [INFO] running `Command { std: "docker" "start" "-a" "281972305ab94497f5902cf6f0176e711610f187f31793638eb23b3c62fb523e", kill_on_drop: false }` [INFO] [stderr] Compiling design-pattern-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/creational/singleton.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | CONF.as_mut_ptr().write(Mutex::new(Singleton)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable 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] --> src/creational/singleton.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | unsafe { &*CONF.as_ptr() } [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 mutable reference to mutable static [INFO] [stdout] --> src/creational/singleton.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | CONF.as_mut_ptr().write(Mutex::new(Singleton)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable 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] --> src/creational/singleton.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | unsafe { &*CONF.as_ptr() } [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 `test` profile [unoptimized + debuginfo] target(s) in 0.86s [INFO] running `Command { std: "docker" "inspect" "281972305ab94497f5902cf6f0176e711610f187f31793638eb23b3c62fb523e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "281972305ab94497f5902cf6f0176e711610f187f31793638eb23b3c62fb523e", kill_on_drop: false }` [INFO] [stdout] 281972305ab94497f5902cf6f0176e711610f187f31793638eb23b3c62fb523e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 06cecdb1b29da3d76b1f456b4ece26c41a1e0de6626e7b2b1f29dd8a906142c3 [INFO] running `Command { std: "docker" "start" "-a" "06cecdb1b29da3d76b1f456b4ece26c41a1e0de6626e7b2b1f29dd8a906142c3", kill_on_drop: false }` [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/creational/singleton.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 21 | CONF.as_mut_ptr().write(Mutex::new(Singleton)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/creational/singleton.rs:24:16 [INFO] [stderr] | [INFO] [stderr] 24 | unsafe { &*CONF.as_ptr() } [INFO] [stderr] | ^^^^^^^^^^^^^ shared reference to mutable static [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] [INFO] [stderr] warning: `design-pattern-rs` (lib) generated 2 warnings [INFO] [stderr] warning: `design-pattern-rs` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/design_pattern_rs-e8d0aabac6d4f9b3) [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test behavioral::pipeline::test::test ... ok [INFO] [stdout] test creational::builder::test::builder_test ... ok [INFO] [stdout] test creational::factory::abstract_factory::test::abstract_factory_test ... ok [INFO] [stdout] test behavioral::responsibility_chain_pattern::tests::test ... ok [INFO] [stdout] test creational::factory::factory_method::test::manufacture_weapon_test ... ok [INFO] [stdout] test creational::factory::simple_factory::test::get_chart_test ... ok [INFO] [stdout] test creational::prototype::test::prototype_test ... ok [INFO] [stdout] test creational::singleton::test::singleton_test ... ok [INFO] [stdout] test structural::adapter::test::adapter_test ... ok [INFO] [stdout] test structural::bridge::test::sword_test ... ok [INFO] [stdout] test structural::composite::test::map_test ... ok [INFO] [stdout] test structural::decorator::test::decorator_test ... ok [INFO] [stdout] test structural::facade::test::test ... ok [INFO] [stdout] test structural::proxy::test::proxy_test ... ok [INFO] [stdout] test structural::flyweight::test::image_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/design_pattern_rs-9eefaa019d77436c) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "06cecdb1b29da3d76b1f456b4ece26c41a1e0de6626e7b2b1f29dd8a906142c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06cecdb1b29da3d76b1f456b4ece26c41a1e0de6626e7b2b1f29dd8a906142c3", kill_on_drop: false }` [INFO] [stdout] 06cecdb1b29da3d76b1f456b4ece26c41a1e0de6626e7b2b1f29dd8a906142c3