[INFO] cloning repository https://github.com/xabiercasado/rust_training [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xabiercasado/rust_training" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxabiercasado%2Frust_training", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxabiercasado%2Frust_training'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 81c785c090f01e131a0b8dc936dda267af05ab69 [INFO] testing xabiercasado/rust_training against try#16fbf98f22730e073c09e7b03f0eafb87a295545 for pr-145628 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxabiercasado%2Frust_training" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xabiercasado/rust_training [INFO] finished tweaking git repo https://github.com/xabiercasado/rust_training [INFO] tweaked toml for git repo https://github.com/xabiercasado/rust_training written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xabiercasado/rust_training on toolchain 16fbf98f22730e073c09e7b03f0eafb87a295545 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xabiercasado/rust_training 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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9124579132f9c4bc8964d135fe6d5c8160c0230907559ffa210e47afadfced85 [INFO] running `Command { std: "docker" "start" "-a" "9124579132f9c4bc8964d135fe6d5c8160c0230907559ffa210e47afadfced85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9124579132f9c4bc8964d135fe6d5c8160c0230907559ffa210e47afadfced85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9124579132f9c4bc8964d135fe6d5c8160c0230907559ffa210e47afadfced85", kill_on_drop: false }` [INFO] [stdout] 9124579132f9c4bc8964d135fe6d5c8160c0230907559ffa210e47afadfced85 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 863ff4c22624e918055dd61b6329702b699e72d086025ec283b0a783910ec5c0 [INFO] running `Command { std: "docker" "start" "-a" "863ff4c22624e918055dd61b6329702b699e72d086025ec283b0a783910ec5c0", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.140 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling leetcode_test v0.1.2 [INFO] [stderr] Compiling leetcode_prelude v0.2.3 [INFO] [stderr] Compiling rust_training v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `leetcode_prelude::vec_string` [INFO] [stdout] --> src/sprint1/exercise2_1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use leetcode_prelude::vec_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `leetcode_prelude::vec_string` [INFO] [stdout] --> src/sprint1/exercise2_2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use leetcode_prelude::vec_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/easy/exercise1_2.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | let nums = NUMS.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/easy/exercise1_2.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | RESULT.clone().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise1_2.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let roman = ROMAN.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise1_2.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | RESULT.clone().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise2_2.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | let strs = STRS.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise2_2.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | RESULT.clone().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise3_2.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | let str = STR.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise3_2.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | RESULT.clone().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.63s [INFO] running `Command { std: "docker" "inspect" "863ff4c22624e918055dd61b6329702b699e72d086025ec283b0a783910ec5c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "863ff4c22624e918055dd61b6329702b699e72d086025ec283b0a783910ec5c0", kill_on_drop: false }` [INFO] [stdout] 863ff4c22624e918055dd61b6329702b699e72d086025ec283b0a783910ec5c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 75160e50442cf77d9082d42e308cfa314ef1e4f7f723a19e8056506d57a9e211 [INFO] running `Command { std: "docker" "start" "-a" "75160e50442cf77d9082d42e308cfa314ef1e4f7f723a19e8056506d57a9e211", kill_on_drop: false }` [INFO] [stderr] Compiling rust_training v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/easy/exercise1_2.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | let nums = NUMS.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/easy/exercise1_2.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | RESULT.clone().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise1_2.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let roman = ROMAN.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise1_2.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | RESULT.clone().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise2_2.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | let strs = STRS.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise2_2.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | RESULT.clone().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise3_2.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | let str = STR.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/sprint1/exercise3_2.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | RESULT.clone().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.86s [INFO] running `Command { std: "docker" "inspect" "75160e50442cf77d9082d42e308cfa314ef1e4f7f723a19e8056506d57a9e211", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75160e50442cf77d9082d42e308cfa314ef1e4f7f723a19e8056506d57a9e211", kill_on_drop: false }` [INFO] [stdout] 75160e50442cf77d9082d42e308cfa314ef1e4f7f723a19e8056506d57a9e211 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2d6f0e309d2a03b031f5f07d542bdddaa675a37bc84913801d36239b054ad976 [INFO] running `Command { std: "docker" "start" "-a" "2d6f0e309d2a03b031f5f07d542bdddaa675a37bc84913801d36239b054ad976", kill_on_drop: false }` [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/easy/exercise1_2.rs:13:16 [INFO] [stderr] | [INFO] [stderr] 13 | let nums = NUMS.clone().unwrap(); [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] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/easy/exercise1_2.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | RESULT.clone().unwrap() [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: creating a shared reference to mutable static [INFO] [stderr] --> src/sprint1/exercise1_2.rs:11:17 [INFO] [stderr] | [INFO] [stderr] 11 | let roman = ROMAN.clone().unwrap(); [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: creating a shared reference to mutable static [INFO] [stderr] --> src/sprint1/exercise1_2.rs:44:5 [INFO] [stderr] | [INFO] [stderr] 44 | RESULT.clone().unwrap() [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: creating a shared reference to mutable static [INFO] [stderr] --> src/sprint1/exercise2_2.rs:11:16 [INFO] [stderr] | [INFO] [stderr] 11 | let strs = STRS.clone().unwrap(); [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: creating a shared reference to mutable static [INFO] [stderr] --> src/sprint1/exercise2_2.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | RESULT.clone().unwrap() [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: creating a shared reference to mutable static [INFO] [stderr] --> src/sprint1/exercise3_2.rs:9:15 [INFO] [stderr] | [INFO] [stderr] 9 | let str = STR.clone().unwrap(); [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: creating a shared reference to mutable static [INFO] [stderr] --> src/sprint1/exercise3_2.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | RESULT.clone().unwrap() [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: `rust_training` (bin "rust_training" test) generated 8 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_training-061026318203449d) [INFO] [stdout] [INFO] [stdout] running 64 tests [INFO] [stdout] test easy::exercise1_1::tests::example_three ... ok [INFO] [stdout] test easy::exercise1_1::tests::example_one ... ok [INFO] [stdout] test easy::exercise1_2::tests::example_one ... ok [INFO] [stdout] test easy::exercise1_1::tests::example_two ... ok [INFO] [stdout] test easy::exercise1_2::tests::example_three ... ok [INFO] [stdout] test easy::exercise2_1::tests::example_four ... ok [INFO] [stdout] test easy::exercise2_1::tests::example_one ... ok [INFO] [stdout] test easy::exercise2_1::tests::example_two ... ok [INFO] [stdout] test easy::exercise2_1::tests::example_three ... ok [INFO] [stdout] test sprint1::exercise1_1::tests::example_five ... ok [INFO] [stdout] test sprint1::exercise1_1::tests::example_four ... ok [INFO] [stdout] test sprint1::exercise1_1::tests::example_three ... ok [INFO] [stdout] test sprint1::exercise1_1::tests::example_one ... ok [INFO] [stdout] test sprint1::exercise1_2::test ... ok [INFO] [stdout] test sprint1::exercise2_1::tests::example_one ... ok [INFO] [stdout] test sprint1::exercise2_1::tests::example_two ... ok [INFO] [stdout] test sprint1::exercise1_1::tests::example_two ... ok [INFO] [stdout] test sprint1::exercise2_2::tests::example_two ... ok [INFO] [stdout] test sprint1::exercise3_1::tests::example_five ... ok [INFO] [stdout] test sprint1::exercise3_1::tests::example_four ... ok [INFO] [stdout] test sprint1::exercise3_1::tests::example_one ... ok [INFO] [stdout] test sprint1::exercise3_1::tests::example_three ... ok [INFO] [stdout] test sprint1::exercise3_1::tests::example_two ... ok [INFO] [stdout] test sprint1::exercise3_2::tests::example_five ... ok [INFO] [stdout] test sprint1::exercise3_2::tests::example_four ... ok [INFO] [stdout] test sprint1::exercise3_2::tests::example_one ... ok [INFO] [stdout] test sprint1::exercise3_2::tests::example_three ... ok [INFO] [stdout] test sprint1::exercise3_2::tests::example_two ... ok [INFO] [stdout] test sprint1::exercise4_1::tests::example_one ... ok [INFO] [stdout] test sprint1::exercise5_1::tests::example_two ... ok [INFO] [stdout] test sprint2::exercise1_1::tests::example_three ... ok [INFO] [stdout] test sprint2::exercise1_1::tests::example_two ... ok [INFO] [stdout] test sprint2::exercise1_2::tests::example_two ... ok [INFO] [stdout] test sprint2::exercise1_1::tests::example_one ... ok [INFO] [stdout] test sprint2::exercise2_1::tests::example_three ... ok [INFO] [stdout] test sprint2::exercise2_1::tests::example_four ... ok [INFO] [stdout] test sprint2::exercise1_2::tests::example_one ... ok [INFO] [stdout] test sprint2::exercise2_1::tests::example_two ... ok [INFO] [stdout] test sprint2::exercise2_1::tests::example_one ... ok [INFO] [stdout] test sprint2::exercise2_1::tests::example_five ... ok [INFO] [stdout] test sprint2::exercise1_2::tests::example_three ... ok [INFO] [stdout] test sprint2::exercise2_2::tests::example_five ... ok [INFO] [stdout] test sprint2::exercise2_2::tests::example_four ... ok [INFO] [stdout] test sprint2::exercise2_2::tests::example_one ... ok [INFO] [stdout] test sprint2::exercise2_2::tests::example_three ... ok [INFO] [stdout] test sprint1::exercise4_1::tests::example_two ... ok [INFO] [stdout] test sprint1::exercise5_1::tests::example_one ... ok [INFO] [stdout] test sprint2::exercise2_2::tests::example_two ... ok [INFO] [stdout] test sprint2::exercise3_1::tests::example_five ... ok [INFO] [stdout] test sprint2::exercise3_1::tests::example_four ... ok [INFO] [stdout] test sprint2::exercise3_1::tests::example_one ... ok [INFO] [stdout] test sprint2::exercise3_1::tests::example_two ... ok [INFO] [stdout] test sprint2::exercise3_1::tests::example_three ... ok [INFO] [stdout] test sprint2::exercise3_2::tests::example_five ... ok [INFO] [stdout] test sprint2::exercise3_2::tests::example_four ... ok [INFO] [stdout] test sprint2::exercise3_2::tests::example_three ... ok [INFO] [stdout] test sprint2::exercise3_2::tests::example_one ... ok [INFO] [stdout] test sprint2::exercise4_1::tests::example_one ... ok [INFO] [stdout] test sprint2::exercise4_2::tests::example_one ... ok [INFO] [stdout] test sprint2::exercise4_1::tests::example_two ... ok [INFO] [stdout] test sprint2::exercise4_2::tests::example_two ... ok [INFO] [stdout] test sprint2::exercise3_2::tests::example_two ... ok [INFO] [stdout] test easy::exercise1_2::tests::example_two ... ok [INFO] [stdout] test sprint1::exercise2_2::tests::example_one ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 64 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2d6f0e309d2a03b031f5f07d542bdddaa675a37bc84913801d36239b054ad976", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d6f0e309d2a03b031f5f07d542bdddaa675a37bc84913801d36239b054ad976", kill_on_drop: false }` [INFO] [stdout] 2d6f0e309d2a03b031f5f07d542bdddaa675a37bc84913801d36239b054ad976