[INFO] cloning repository https://github.com/BurritoBandit28/shape-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BurritoBandit28/shape-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBurritoBandit28%2Fshape-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBurritoBandit28%2Fshape-game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f0c5f43b1034880aa67cd04d9b5182f884c4546 [INFO] building BurritoBandit28/shape-game against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBurritoBandit28%2Fshape-game" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BurritoBandit28/shape-game on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BurritoBandit28/shape-game [INFO] finished tweaking git repo https://github.com/BurritoBandit28/shape-game [INFO] tweaked toml for git repo https://github.com/BurritoBandit28/shape-game written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/BurritoBandit28/shape-game 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/BurritoBandit28/password_validator.git` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitvec v0.17.4 [INFO] [stderr] Downloaded radium v0.3.0 [INFO] [stderr] Downloaded shuffle v0.1.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b030567e514300fb4e49d0d20c84785d32ff71a8ead603ae1db5c12177f18610 [INFO] running `Command { std: "docker" "start" "-a" "b030567e514300fb4e49d0d20c84785d32ff71a8ead603ae1db5c12177f18610", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b030567e514300fb4e49d0d20c84785d32ff71a8ead603ae1db5c12177f18610", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b030567e514300fb4e49d0d20c84785d32ff71a8ead603ae1db5c12177f18610", kill_on_drop: false }` [INFO] [stdout] b030567e514300fb4e49d0d20c84785d32ff71a8ead603ae1db5c12177f18610 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e05229f11b6ed03c173c3c258a69b1b30553c4141fd1df8f72bc8017e39b3b13 [INFO] running `Command { std: "docker" "start" "-a" "e05229f11b6ed03c173c3c258a69b1b30553c4141fd1df8f72bc8017e39b3b13", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling smallvec v1.11.1 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling radium v0.3.0 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Compiling iana-time-zone v0.1.57 [INFO] [stderr] Compiling password_validator v0.1.0 (https://github.com/BurritoBandit28/password_validator.git#2df76899) [INFO] [stderr] Compiling bitvec v0.17.4 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling crossterm v0.27.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling shuffle v0.1.7 [INFO] [stderr] Compiling shape-game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:48:73 [INFO] [stdout] | [INFO] [stdout] 48 | fs::create_dir_all(std::format!("./data/users/{}/scores/", unsafe { &USER_NAME })).expect(PANIC_MESSAGE); [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)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | fs::create_dir_all(std::format!("./data/users/{}/scores/", unsafe { &raw const USER_NAME })).expect(PANIC_MESSAGE); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:50:79 [INFO] [stdout] | [INFO] [stdout] 50 | let path: String = std::format!("./data/users/{}/scores/{}.txt", unsafe { &USER_NAME }, chrono::offset::Local::now().to_string().trim... [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 50 | let path: String = std::format!("./data/users/{}/scores/{}.txt", unsafe { &raw const USER_NAME }, chrono::offset::Local::now().to_string().trim().replace(" ", "_").replace(":", "--")); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | file.write_all(SESSION_SCORE.to_string().as_ref()).expect("tomfoolery"); [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 is discouraged [INFO] [stdout] --> src/main.rs:55:48 [INFO] [stdout] | [INFO] [stdout] 55 | println!("Your final score is : {}\n", SESSION_SCORE) [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 is discouraged [INFO] [stdout] --> src/main.rs:70:83 [INFO] [stdout] | [INFO] [stdout] 70 | let paths = fs::read_dir(std::format!("./data/users/{}/scores/", unsafe { &USER_NAME })).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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 70 | let paths = fs::read_dir(std::format!("./data/users/{}/scores/", unsafe { &raw const USER_NAME })).unwrap(); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:73:94 [INFO] [stdout] | [INFO] [stdout] 73 | ... let file : File = File::open(std::format!("./data/users/{}/scores/{:?}",unsafe { &USER_NAME },&path.as_ref().unwrap().file_name()).... [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 73 | let file : File = File::open(std::format!("./data/users/{}/scores/{:?}",unsafe { &raw const USER_NAME },&path.as_ref().unwrap().file_name()).replace("\"", ""))?; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.57s [INFO] running `Command { std: "docker" "inspect" "e05229f11b6ed03c173c3c258a69b1b30553c4141fd1df8f72bc8017e39b3b13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e05229f11b6ed03c173c3c258a69b1b30553c4141fd1df8f72bc8017e39b3b13", kill_on_drop: false }` [INFO] [stdout] e05229f11b6ed03c173c3c258a69b1b30553c4141fd1df8f72bc8017e39b3b13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 530bc05df2bc2e490701af939e77b0cd29c854f8151e0de1217b457c300c32aa [INFO] running `Command { std: "docker" "start" "-a" "530bc05df2bc2e490701af939e77b0cd29c854f8151e0de1217b457c300c32aa", kill_on_drop: false }` [INFO] [stderr] Compiling shape-game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:48:73 [INFO] [stdout] | [INFO] [stdout] 48 | fs::create_dir_all(std::format!("./data/users/{}/scores/", unsafe { &USER_NAME })).expect(PANIC_MESSAGE); [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)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | fs::create_dir_all(std::format!("./data/users/{}/scores/", unsafe { &raw const USER_NAME })).expect(PANIC_MESSAGE); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:50:79 [INFO] [stdout] | [INFO] [stdout] 50 | let path: String = std::format!("./data/users/{}/scores/{}.txt", unsafe { &USER_NAME }, chrono::offset::Local::now().to_string().trim... [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 50 | let path: String = std::format!("./data/users/{}/scores/{}.txt", unsafe { &raw const USER_NAME }, chrono::offset::Local::now().to_string().trim().replace(" ", "_").replace(":", "--")); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | file.write_all(SESSION_SCORE.to_string().as_ref()).expect("tomfoolery"); [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 is discouraged [INFO] [stdout] --> src/main.rs:55:48 [INFO] [stdout] | [INFO] [stdout] 55 | println!("Your final score is : {}\n", SESSION_SCORE) [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 is discouraged [INFO] [stdout] --> src/main.rs:70:83 [INFO] [stdout] | [INFO] [stdout] 70 | let paths = fs::read_dir(std::format!("./data/users/{}/scores/", unsafe { &USER_NAME })).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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 70 | let paths = fs::read_dir(std::format!("./data/users/{}/scores/", unsafe { &raw const USER_NAME })).unwrap(); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:73:94 [INFO] [stdout] | [INFO] [stdout] 73 | ... let file : File = File::open(std::format!("./data/users/{}/scores/{:?}",unsafe { &USER_NAME },&path.as_ref().unwrap().file_name()).... [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 73 | let file : File = File::open(std::format!("./data/users/{}/scores/{:?}",unsafe { &raw const USER_NAME },&path.as_ref().unwrap().file_name()).replace("\"", ""))?; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "530bc05df2bc2e490701af939e77b0cd29c854f8151e0de1217b457c300c32aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "530bc05df2bc2e490701af939e77b0cd29c854f8151e0de1217b457c300c32aa", kill_on_drop: false }` [INFO] [stdout] 530bc05df2bc2e490701af939e77b0cd29c854f8151e0de1217b457c300c32aa