[INFO] cloning repository https://github.com/tiagotmartinez/cryptopals-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tiagotmartinez/cryptopals-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftiagotmartinez%2Fcryptopals-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftiagotmartinez%2Fcryptopals-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8c0fd7dbf45881e411b24666d3f0f259787d2e54 [INFO] testing tiagotmartinez/cryptopals-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%2Ftiagotmartinez%2Fcryptopals-rs" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tiagotmartinez/cryptopals-rs [INFO] finished tweaking git repo https://github.com/tiagotmartinez/cryptopals-rs [INFO] tweaked toml for git repo https://github.com/tiagotmartinez/cryptopals-rs written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tiagotmartinez/cryptopals-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/tiagotmartinez/cryptopals-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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hex v0.4.2 [INFO] [stderr] Downloaded glass_pumpkin v1.2.0 [INFO] [stderr] Downloaded num-bigint v0.4.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 48f3ada4f87dc8e5df4574e074f291b3bdd92bd56e5139066bee7699372564a1 [INFO] running `Command { std: "docker" "start" "-a" "48f3ada4f87dc8e5df4574e074f291b3bdd92bd56e5139066bee7699372564a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "48f3ada4f87dc8e5df4574e074f291b3bdd92bd56e5139066bee7699372564a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48f3ada4f87dc8e5df4574e074f291b3bdd92bd56e5139066bee7699372564a1", kill_on_drop: false }` [INFO] [stdout] 48f3ada4f87dc8e5df4574e074f291b3bdd92bd56e5139066bee7699372564a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 2d1b92260d0bc5379b6c248ae6aba474de1dca1cd51edbb275c785974ba48540 [INFO] running `Command { std: "docker" "start" "-a" "2d1b92260d0bc5379b6c248ae6aba474de1dca1cd51edbb275c785974ba48540", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling hex v0.4.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling glass_pumpkin v1.2.0 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set2.rs:123:27 [INFO] [stdout] | [INFO] [stdout] 123 | encipher_ecb(unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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] 123 | encipher_ecb(unsafe { &raw const GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set2.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | GLOBAL_KEY.copy_from_slice(&key); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set2.rs:276:27 [INFO] [stdout] | [INFO] [stdout] 276 | let mut pt = unsafe { &PREFIX_BYTES_14 }.clone(); [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] 276 | let mut pt = unsafe { &raw const PREFIX_BYTES_14 }.clone(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set2.rs:279:27 [INFO] [stdout] | [INFO] [stdout] 279 | encipher_ecb(unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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] 279 | encipher_ecb(unsafe { &raw const GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set2.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | GLOBAL_KEY.copy_from_slice(&key); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set2.rs:322:39 [INFO] [stdout] | [INFO] [stdout] 322 | assert_eq!(prefix_bytes, unsafe { PREFIX_BYTES_14.len() }); [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/set2.rs:387:27 [INFO] [stdout] | [INFO] [stdout] 387 | encipher_cbc(unsafe { &GLOBAL_KEY }, &ZERO_IV, &pad(aes::BLOCK_SIZE, &pt)) [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] 387 | encipher_cbc(unsafe { &raw const GLOBAL_KEY }, &ZERO_IV, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set2.rs:391:50 [INFO] [stdout] | [INFO] [stdout] 391 | if let Ok(pt) = unpad(&decipher_cbc(unsafe { &GLOBAL_KEY }, &ZERO_IV, query)) { [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] 391 | if let Ok(pt) = unpad(&decipher_cbc(unsafe { &raw const GLOBAL_KEY }, &ZERO_IV, query)) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set2.rs:408:9 [INFO] [stdout] | [INFO] [stdout] 408 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set3.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set3.rs:42:36 [INFO] [stdout] | [INFO] [stdout] 42 | let ct = encipher_cbc(unsafe { &GLOBAL_KEY }, &iv, &padded); [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] 42 | let ct = encipher_cbc(unsafe { &raw const GLOBAL_KEY }, &iv, &padded); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set3.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | let pt = decipher_cbc(unsafe { &GLOBAL_KEY }, iv, ct); [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] 48 | let pt = decipher_cbc(unsafe { &raw const GLOBAL_KEY }, iv, ct); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set3.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(decipher_cbc(unsafe { &GLOBAL_KEY }, &orig_iv, &ct), &pt[16..]); [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] 105 | assert_eq!(decipher_cbc(unsafe { &raw const GLOBAL_KEY }, &orig_iv, &ct), &pt[16..]); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:48:44 [INFO] [stdout] | [INFO] [stdout] 48 | let ks = aes_ctr_keystream_at(unsafe { &GLOBAL_KEY }, 0, offset, newtext.len()); [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] 48 | let ks = aes_ctr_keystream_at(unsafe { &raw const GLOBAL_KEY }, 0, offset, newtext.len()); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set4.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:61:39 [INFO] [stdout] | [INFO] [stdout] 61 | let mut cipher = aes_ctr(unsafe { &GLOBAL_KEY }, 0, &text); [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] 61 | let mut cipher = aes_ctr(unsafe { &raw const GLOBAL_KEY }, 0, &text); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | aes_ctr(unsafe { &GLOBAL_KEY }, 0, &pt) [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] 84 | aes_ctr(unsafe { &raw const GLOBAL_KEY }, 0, &pt) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:89:31 [INFO] [stdout] | [INFO] [stdout] 89 | let pt = aes_ctr(unsafe { &GLOBAL_KEY }, 0, query); [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] 89 | let pt = aes_ctr(unsafe { &raw const GLOBAL_KEY }, 0, query); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set4.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:132:27 [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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] 132 | encipher_cbc(unsafe { &raw const GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:132:51 [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &raw const GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:138:39 [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, query); [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] 138 | let plain = decipher_cbc(unsafe { &raw const GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, query); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:138:63 [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, query); [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] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &raw const GLOBAL_KEY }, query); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set4.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:165:33 [INFO] [stdout] | [INFO] [stdout] 165 | assert_eq!(&k, unsafe { &GLOBAL_KEY }); [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] 165 | assert_eq!(&k, unsafe { &raw const GLOBAL_KEY }); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 13.34s [INFO] running `Command { std: "docker" "inspect" "2d1b92260d0bc5379b6c248ae6aba474de1dca1cd51edbb275c785974ba48540", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d1b92260d0bc5379b6c248ae6aba474de1dca1cd51edbb275c785974ba48540", kill_on_drop: false }` [INFO] [stdout] 2d1b92260d0bc5379b6c248ae6aba474de1dca1cd51edbb275c785974ba48540 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] c7ba0908dcb7c6fc0c1acc065c10b26838132bfabf9fb6818d30d8c517924168 [INFO] running `Command { std: "docker" "start" "-a" "c7ba0908dcb7c6fc0c1acc065c10b26838132bfabf9fb6818d30d8c517924168", kill_on_drop: false }` [INFO] [stderr] Compiling cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set2.rs:123:27 [INFO] [stdout] | [INFO] [stdout] 123 | encipher_ecb(unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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] 123 | encipher_ecb(unsafe { &raw const GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set2.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | GLOBAL_KEY.copy_from_slice(&key); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set2.rs:276:27 [INFO] [stdout] | [INFO] [stdout] 276 | let mut pt = unsafe { &PREFIX_BYTES_14 }.clone(); [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] 276 | let mut pt = unsafe { &raw const PREFIX_BYTES_14 }.clone(); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set2.rs:279:27 [INFO] [stdout] | [INFO] [stdout] 279 | encipher_ecb(unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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] 279 | encipher_ecb(unsafe { &raw const GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set2.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | GLOBAL_KEY.copy_from_slice(&key); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set2.rs:322:39 [INFO] [stdout] | [INFO] [stdout] 322 | assert_eq!(prefix_bytes, unsafe { PREFIX_BYTES_14.len() }); [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/set2.rs:387:27 [INFO] [stdout] | [INFO] [stdout] 387 | encipher_cbc(unsafe { &GLOBAL_KEY }, &ZERO_IV, &pad(aes::BLOCK_SIZE, &pt)) [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] 387 | encipher_cbc(unsafe { &raw const GLOBAL_KEY }, &ZERO_IV, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set2.rs:391:50 [INFO] [stdout] | [INFO] [stdout] 391 | if let Ok(pt) = unpad(&decipher_cbc(unsafe { &GLOBAL_KEY }, &ZERO_IV, query)) { [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] 391 | if let Ok(pt) = unpad(&decipher_cbc(unsafe { &raw const GLOBAL_KEY }, &ZERO_IV, query)) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set2.rs:408:9 [INFO] [stdout] | [INFO] [stdout] 408 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set3.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set3.rs:42:36 [INFO] [stdout] | [INFO] [stdout] 42 | let ct = encipher_cbc(unsafe { &GLOBAL_KEY }, &iv, &padded); [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] 42 | let ct = encipher_cbc(unsafe { &raw const GLOBAL_KEY }, &iv, &padded); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set3.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | let pt = decipher_cbc(unsafe { &GLOBAL_KEY }, iv, ct); [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] 48 | let pt = decipher_cbc(unsafe { &raw const GLOBAL_KEY }, iv, ct); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set3.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(decipher_cbc(unsafe { &GLOBAL_KEY }, &orig_iv, &ct), &pt[16..]); [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] 105 | assert_eq!(decipher_cbc(unsafe { &raw const GLOBAL_KEY }, &orig_iv, &ct), &pt[16..]); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:48:44 [INFO] [stdout] | [INFO] [stdout] 48 | let ks = aes_ctr_keystream_at(unsafe { &GLOBAL_KEY }, 0, offset, newtext.len()); [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] 48 | let ks = aes_ctr_keystream_at(unsafe { &raw const GLOBAL_KEY }, 0, offset, newtext.len()); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set4.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:61:39 [INFO] [stdout] | [INFO] [stdout] 61 | let mut cipher = aes_ctr(unsafe { &GLOBAL_KEY }, 0, &text); [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] 61 | let mut cipher = aes_ctr(unsafe { &raw const GLOBAL_KEY }, 0, &text); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | aes_ctr(unsafe { &GLOBAL_KEY }, 0, &pt) [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] 84 | aes_ctr(unsafe { &raw const GLOBAL_KEY }, 0, &pt) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:89:31 [INFO] [stdout] | [INFO] [stdout] 89 | let pt = aes_ctr(unsafe { &GLOBAL_KEY }, 0, query); [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] 89 | let pt = aes_ctr(unsafe { &raw const GLOBAL_KEY }, 0, query); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set4.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:132:27 [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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] 132 | encipher_cbc(unsafe { &raw const GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:132:51 [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &raw const GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:138:39 [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, query); [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] 138 | let plain = decipher_cbc(unsafe { &raw const GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, query); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:138:63 [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, query); [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] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &raw const GLOBAL_KEY }, query); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/set4.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/set4.rs:165:33 [INFO] [stdout] | [INFO] [stdout] 165 | assert_eq!(&k, unsafe { &GLOBAL_KEY }); [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] 165 | assert_eq!(&k, unsafe { &raw const GLOBAL_KEY }); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [optimized + debuginfo] target(s) in 1.11s [INFO] running `Command { std: "docker" "inspect" "c7ba0908dcb7c6fc0c1acc065c10b26838132bfabf9fb6818d30d8c517924168", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7ba0908dcb7c6fc0c1acc065c10b26838132bfabf9fb6818d30d8c517924168", kill_on_drop: false }` [INFO] [stdout] c7ba0908dcb7c6fc0c1acc065c10b26838132bfabf9fb6818d30d8c517924168 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 3c88d8338137ae57aa6348bddfd3f985807d33c2a337677eb72ce42db6c52d9f [INFO] running `Command { std: "docker" "start" "-a" "3c88d8338137ae57aa6348bddfd3f985807d33c2a337677eb72ce42db6c52d9f", kill_on_drop: false }` [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set2.rs:123:27 [INFO] [stderr] | [INFO] [stderr] 123 | encipher_ecb(unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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)]` on by default [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 123 | encipher_ecb(unsafe { &raw const GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/set2.rs:132:9 [INFO] [stderr] | [INFO] [stderr] 132 | GLOBAL_KEY.copy_from_slice(&key); [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] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set2.rs:276:27 [INFO] [stderr] | [INFO] [stderr] 276 | let mut pt = unsafe { &PREFIX_BYTES_14 }.clone(); [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 276 | let mut pt = unsafe { &raw const PREFIX_BYTES_14 }.clone(); [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set2.rs:279:27 [INFO] [stderr] | [INFO] [stderr] 279 | encipher_ecb(unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 279 | encipher_ecb(unsafe { &raw const GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/set2.rs:286:9 [INFO] [stderr] | [INFO] [stderr] 286 | GLOBAL_KEY.copy_from_slice(&key); [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] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set2.rs:322:39 [INFO] [stderr] | [INFO] [stderr] 322 | assert_eq!(prefix_bytes, unsafe { PREFIX_BYTES_14.len() }); [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/set2.rs:387:27 [INFO] [stderr] | [INFO] [stderr] 387 | encipher_cbc(unsafe { &GLOBAL_KEY }, &ZERO_IV, &pad(aes::BLOCK_SIZE, &pt)) [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 387 | encipher_cbc(unsafe { &raw const GLOBAL_KEY }, &ZERO_IV, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set2.rs:391:50 [INFO] [stderr] | [INFO] [stderr] 391 | if let Ok(pt) = unpad(&decipher_cbc(unsafe { &GLOBAL_KEY }, &ZERO_IV, query)) { [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 391 | if let Ok(pt) = unpad(&decipher_cbc(unsafe { &raw const GLOBAL_KEY }, &ZERO_IV, query)) { [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/set2.rs:408:9 [INFO] [stderr] | [INFO] [stderr] 408 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/set3.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 35 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set3.rs:42:36 [INFO] [stderr] | [INFO] [stderr] 42 | let ct = encipher_cbc(unsafe { &GLOBAL_KEY }, &iv, &padded); [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 42 | let ct = encipher_cbc(unsafe { &raw const GLOBAL_KEY }, &iv, &padded); [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set3.rs:48:36 [INFO] [stderr] | [INFO] [stderr] 48 | let pt = decipher_cbc(unsafe { &GLOBAL_KEY }, iv, ct); [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 48 | let pt = decipher_cbc(unsafe { &raw const GLOBAL_KEY }, iv, ct); [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set3.rs:105:38 [INFO] [stderr] | [INFO] [stderr] 105 | assert_eq!(decipher_cbc(unsafe { &GLOBAL_KEY }, &orig_iv, &ct), &pt[16..]); [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 105 | assert_eq!(decipher_cbc(unsafe { &raw const GLOBAL_KEY }, &orig_iv, &ct), &pt[16..]); [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set4.rs:48:44 [INFO] [stderr] | [INFO] [stderr] 48 | let ks = aes_ctr_keystream_at(unsafe { &GLOBAL_KEY }, 0, offset, newtext.len()); [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 48 | let ks = aes_ctr_keystream_at(unsafe { &raw const GLOBAL_KEY }, 0, offset, newtext.len()); [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/set4.rs:57:9 [INFO] [stderr] | [INFO] [stderr] 57 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set4.rs:61:39 [INFO] [stderr] | [INFO] [stderr] 61 | let mut cipher = aes_ctr(unsafe { &GLOBAL_KEY }, 0, &text); [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 61 | let mut cipher = aes_ctr(unsafe { &raw const GLOBAL_KEY }, 0, &text); [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set4.rs:84:22 [INFO] [stderr] | [INFO] [stderr] 84 | aes_ctr(unsafe { &GLOBAL_KEY }, 0, &pt) [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 84 | aes_ctr(unsafe { &raw const GLOBAL_KEY }, 0, &pt) [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set4.rs:89:31 [INFO] [stderr] | [INFO] [stderr] 89 | let pt = aes_ctr(unsafe { &GLOBAL_KEY }, 0, query); [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 89 | let pt = aes_ctr(unsafe { &raw const GLOBAL_KEY }, 0, query); [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/set4.rs:103:9 [INFO] [stderr] | [INFO] [stderr] 103 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set4.rs:132:27 [INFO] [stderr] | [INFO] [stderr] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 132 | encipher_cbc(unsafe { &raw const GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set4.rs:132:51 [INFO] [stderr] | [INFO] [stderr] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &raw const GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set4.rs:138:39 [INFO] [stderr] | [INFO] [stderr] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, query); [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 138 | let plain = decipher_cbc(unsafe { &raw const GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, query); [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set4.rs:138:63 [INFO] [stderr] | [INFO] [stderr] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &GLOBAL_KEY }, query); [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { &raw const GLOBAL_KEY }, query); [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/set4.rs:153:9 [INFO] [stderr] | [INFO] [stderr] 153 | GLOBAL_KEY.copy_from_slice(&random_bytes(16)); [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] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/set4.rs:165:33 [INFO] [stderr] | [INFO] [stderr] 165 | assert_eq!(&k, unsafe { &GLOBAL_KEY }); [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] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 165 | assert_eq!(&k, unsafe { &raw const GLOBAL_KEY }); [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: `cryptopals` (bin "cryptopals" test) generated 25 warnings [INFO] [stderr] Finished `test` profile [optimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/cryptopals-49bf9a4a1ffd4643) [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" "3c88d8338137ae57aa6348bddfd3f985807d33c2a337677eb72ce42db6c52d9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c88d8338137ae57aa6348bddfd3f985807d33c2a337677eb72ce42db6c52d9f", kill_on_drop: false }` [INFO] [stdout] 3c88d8338137ae57aa6348bddfd3f985807d33c2a337677eb72ce42db6c52d9f