[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] checking tiagotmartinez/cryptopals-rs against master#91c0823ee63e793d990bb9fed898dc95b5d6db51 for pr-125384-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftiagotmartinez%2Fcryptopals-rs" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tiagotmartinez/cryptopals-rs on toolchain 91c0823ee63e793d990bb9fed898dc95b5d6db51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-2-tc1/source/Cargo.toml [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" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-bigint v0.4.2 [INFO] [stderr] Downloaded glass_pumpkin v1.2.0 [INFO] [stderr] Downloaded ppv-lite86 v0.2.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 07cf94d4a79c8a9308df109654b054249eed48e99a70381c3eea8ef074d6a1d3 [INFO] running `Command { std: "docker" "start" "-a" "07cf94d4a79c8a9308df109654b054249eed48e99a70381c3eea8ef074d6a1d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "07cf94d4a79c8a9308df109654b054249eed48e99a70381c3eea8ef074d6a1d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07cf94d4a79c8a9308df109654b054249eed48e99a70381c3eea8ef074d6a1d3", kill_on_drop: false }` [INFO] [stdout] 07cf94d4a79c8a9308df109654b054249eed48e99a70381c3eea8ef074d6a1d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 663500b0c1868b3e8534752123fc3bc5d35a7960f55672ba68de8ec6d0f79302 [INFO] running `Command { std: "docker" "start" "-a" "663500b0c1868b3e8534752123fc3bc5d35a7960f55672ba68de8ec6d0f79302", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking 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-rational v0.4.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking sha2 v0.9.8 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking glass_pumpkin v1.2.0 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 8.63s [INFO] running `Command { std: "docker" "inspect" "663500b0c1868b3e8534752123fc3bc5d35a7960f55672ba68de8ec6d0f79302", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "663500b0c1868b3e8534752123fc3bc5d35a7960f55672ba68de8ec6d0f79302", kill_on_drop: false }` [INFO] [stdout] 663500b0c1868b3e8534752123fc3bc5d35a7960f55672ba68de8ec6d0f79302 [INFO] checking tiagotmartinez/cryptopals-rs against try#519d6e23a6cb73c4d0f295f71ad37db8e95c54ab for pr-125384-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftiagotmartinez%2Fcryptopals-rs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tiagotmartinez/cryptopals-rs on toolchain 519d6e23a6cb73c4d0f295f71ad37db8e95c54ab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-2-tc2/source/Cargo.toml [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" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f6ed2d01237c49eeb93fbc2b22b7d6187e6df2e96bd241c9266ff92b37398fd [INFO] running `Command { std: "docker" "start" "-a" "3f6ed2d01237c49eeb93fbc2b22b7d6187e6df2e96bd241c9266ff92b37398fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f6ed2d01237c49eeb93fbc2b22b7d6187e6df2e96bd241c9266ff92b37398fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f6ed2d01237c49eeb93fbc2b22b7d6187e6df2e96bd241c9266ff92b37398fd", kill_on_drop: false }` [INFO] [stdout] 3f6ed2d01237c49eeb93fbc2b22b7d6187e6df2e96bd241c9266ff92b37398fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 490fef6ef4610f544ec56b8c7090eb63fcd37c90d21a073555bd6b9b84e2f936 [INFO] running `Command { std: "docker" "start" "-a" "490fef6ef4610f544ec56b8c7090eb63fcd37c90d21a073555bd6b9b84e2f936", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking 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] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Checking sha2 v0.9.8 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking glass_pumpkin v1.2.0 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking cryptopals v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(static_mut_refs)]` [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 123 | encipher_ecb(unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 276 | let mut pt = unsafe { addr_of!(PREFIX_BYTES_14) }.clone(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 279 | encipher_ecb(unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 387 | encipher_cbc(unsafe { addr_of!(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 is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 391 | if let Ok(pt) = unpad(&decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &ZERO_IV, query)) { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 42 | let ct = encipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &iv, &padded); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | let pt = decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, iv, ct); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &orig_iv, &ct), &pt[16..]); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | let ks = aes_ctr_keystream_at(unsafe { addr_of!(GLOBAL_KEY) }, 0, offset, newtext.len()); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 61 | let mut cipher = aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, &text); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 84 | aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, &pt) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 89 | let pt = aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { addr_of!(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 is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, unsafe { &GLOBAL_KEY }, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { addr_of!(GLOBAL_KEY) }, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 165 | assert_eq!(&k, unsafe { addr_of!(GLOBAL_KEY) }); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(static_mut_refs)]` [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 123 | encipher_ecb(unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 276 | let mut pt = unsafe { addr_of!(PREFIX_BYTES_14) }.clone(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 279 | encipher_ecb(unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 387 | encipher_cbc(unsafe { addr_of!(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 is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 391 | if let Ok(pt) = unpad(&decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &ZERO_IV, query)) { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 42 | let ct = encipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &iv, &padded); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | let pt = decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, iv, ct); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &orig_iv, &ct), &pt[16..]); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | let ks = aes_ctr_keystream_at(unsafe { addr_of!(GLOBAL_KEY) }, 0, offset, newtext.len()); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 61 | let mut cipher = aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, &text); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 84 | aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, &pt) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 89 | let pt = aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { addr_of!(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 is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, unsafe { &GLOBAL_KEY }, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { addr_of!(GLOBAL_KEY) }, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 165 | assert_eq!(&k, unsafe { addr_of!(GLOBAL_KEY) }); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 7.76s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking cryptopals v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 123 | encipher_ecb(unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 276 | let mut pt = unsafe { addr_of!(PREFIX_BYTES_14) }.clone(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 279 | encipher_ecb(unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 387 | encipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &ZERO_IV, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 391 | if let Ok(pt) = unpad(&decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &ZERO_IV, query)) { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 42 | let ct = encipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &iv, &padded); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | let pt = decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, iv, ct); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &orig_iv, &ct), &pt[16..]); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 123 | encipher_ecb(unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 276 | let mut pt = unsafe { addr_of!(PREFIX_BYTES_14) }.clone(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 279 | encipher_ecb(unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | let ks = aes_ctr_keystream_at(unsafe { addr_of!(GLOBAL_KEY) }, 0, offset, newtext.len()); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 61 | let mut cipher = aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, &text); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 84 | aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, &pt) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 89 | let pt = aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 387 | encipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &ZERO_IV, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, unsafe { &GLOBAL_KEY }, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 391 | if let Ok(pt) = unpad(&decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &ZERO_IV, query)) { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { addr_of!(GLOBAL_KEY) }, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 165 | assert_eq!(&k, unsafe { addr_of!(GLOBAL_KEY) }); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 42 | let ct = encipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &iv, &padded); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | let pt = decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, iv, ct); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, &orig_iv, &ct), &pt[16..]); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | let ks = aes_ctr_keystream_at(unsafe { addr_of!(GLOBAL_KEY) }, 0, offset, newtext.len()); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 61 | let mut cipher = aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, &text); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 84 | aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, &pt) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 89 | let pt = aes_ctr(unsafe { addr_of!(GLOBAL_KEY) }, 0, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, unsafe { &GLOBAL_KEY }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 132 | encipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { addr_of!(GLOBAL_KEY) }, &pad(aes::BLOCK_SIZE, &pt)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { addr_of!(GLOBAL_KEY) }, unsafe { &GLOBAL_KEY }, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 138 | let plain = decipher_cbc(unsafe { &GLOBAL_KEY }, unsafe { addr_of!(GLOBAL_KEY) }, query); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a 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: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 165 | assert_eq!(&k, unsafe { addr_of!(GLOBAL_KEY) }); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cryptopals` (bin "cryptopals" test) due to 18 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cryptopals` (bin "cryptopals") due to 18 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "490fef6ef4610f544ec56b8c7090eb63fcd37c90d21a073555bd6b9b84e2f936", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "490fef6ef4610f544ec56b8c7090eb63fcd37c90d21a073555bd6b9b84e2f936", kill_on_drop: false }` [INFO] [stdout] 490fef6ef4610f544ec56b8c7090eb63fcd37c90d21a073555bd6b9b84e2f936