[INFO] cloning repository https://github.com/Vawheter/SimpleZKCP [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Vawheter/SimpleZKCP" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVawheter%2FSimpleZKCP", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVawheter%2FSimpleZKCP'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 96aa4a1c2b0e1e7d432510a48ef6f6a635b70463 [INFO] testing Vawheter/SimpleZKCP against try#722e1797249a965b6335aebd65d777f917e498f1 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVawheter%2FSimpleZKCP" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Vawheter/SimpleZKCP on toolchain 722e1797249a965b6335aebd65d777f917e498f1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Vawheter/SimpleZKCP [INFO] finished tweaking git repo https://github.com/Vawheter/SimpleZKCP [INFO] tweaked toml for git repo https://github.com/Vawheter/SimpleZKCP written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/Vawheter/SimpleZKCP already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gcc v0.3.21 [INFO] [stderr] Downloaded byteorder v0.3.13 [INFO] [stderr] Downloaded encoding v0.2.32 [INFO] [stderr] Downloaded flate2 v0.2.11 [INFO] [stderr] Downloaded rust-crypto v0.2.34 [INFO] [stderr] Downloaded thread-scoped v1.0.1 [INFO] [stderr] Downloaded whiteread v0.2.0 [INFO] [stderr] Downloaded hex v0.1.0 [INFO] [stderr] Downloaded serde v0.6.6 [INFO] [stderr] Downloaded bzip2 v0.2.3 [INFO] [stderr] Downloaded bincode v0.4.0 [INFO] [stderr] Downloaded strason v0.3.3 [INFO] [stderr] Downloaded bzip2-sys v0.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d5377f952a099606a722dbbc1ce1034fa11d7b5ca00d2b47da2a5467752139d6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d5377f952a099606a722dbbc1ce1034fa11d7b5ca00d2b47da2a5467752139d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5377f952a099606a722dbbc1ce1034fa11d7b5ca00d2b47da2a5467752139d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5377f952a099606a722dbbc1ce1034fa11d7b5ca00d2b47da2a5467752139d6", kill_on_drop: false }` [INFO] [stdout] d5377f952a099606a722dbbc1ce1034fa11d7b5ca00d2b47da2a5467752139d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 69b8e362f76da6b056e10b8caa92f5a72142c148c978f8df87c780db08c97b63 [INFO] running `Command { std: "docker" "start" "-a" "69b8e362f76da6b056e10b8caa92f5a72142c148c978f8df87c780db08c97b63", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling gcc v0.3.21 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling byteorder v0.3.13 [INFO] [stderr] Compiling thread-scoped v1.0.1 [INFO] [stderr] Compiling fixedbitset v0.1.0 [INFO] [stderr] Compiling hex v0.1.0 [INFO] [stderr] Compiling whiteread v0.2.0 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling bzip2-sys v0.1.3 [INFO] [stderr] Compiling miniz-sys v0.1.7 [INFO] [stderr] Compiling rust-crypto v0.2.34 [INFO] [stderr] Compiling encoding v0.2.32 [INFO] [stderr] Compiling rand v0.3.12 [INFO] [stderr] Compiling time v0.1.34 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling flate2 v0.2.11 [INFO] [stderr] Compiling bzip2 v0.2.3 [INFO] [stderr] Compiling num v0.1.28 [INFO] [stderr] Compiling serde v0.6.6 [INFO] [stderr] Compiling bincode v0.4.0 [INFO] [stderr] Compiling strason v0.3.3 [INFO] [stderr] Compiling pay-to-sudoku v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ffi.rs:53:32 [INFO] [stdout] | [INFO] [stdout] 53 | let closure: &mut &mut for<'a> FnMut(&'a [u8], &'a [i8]) = mem::transmute(cb); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn for<'a> FnMut(&'a [u8], &'a [i8])` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ffi.rs:65:32 [INFO] [stdout] | [INFO] [stdout] 65 | let closure: &mut &mut for<'a> FnMut(&'a [i8], &'a [i8]) = mem::transmute(cb); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn for<'a> FnMut(&'a [i8], &'a [i8])` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ffi.rs:72:22 [INFO] [stdout] | [INFO] [stdout] 72 | let mut cb: &mut for<'a> FnMut(&'a [u8], &'a [u8]) = &mut f; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn for<'a> FnMut(&'a [u8], &'a [u8])` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ffi.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | let mut cb: &mut for<'a> FnMut(&'a [u8], &'a [u8]) = &mut f; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn for<'a> FnMut(&'a [u8], &'a [u8])` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/ffi.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | use libc::{size_t, c_char, uint8_t, uint32_t, int32_t, c_void}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/ffi.rs:8:37 [INFO] [stdout] | [INFO] [stdout] 8 | use libc::{size_t, c_char, uint8_t, uint32_t, int32_t, c_void}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/ffi.rs:8:47 [INFO] [stdout] | [INFO] [stdout] 8 | use libc::{size_t, c_char, uint8_t, uint32_t, int32_t, c_void}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/ffi.rs:46:59 [INFO] [stdout] | [INFO] [stdout] 46 | extern "C" fn handle_proof_callback(cb: *mut c_void, len: uint32_t, encrypted_solution: *const uint8_t, proof: *const c_char, proof_len: ... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/ffi.rs:46:96 [INFO] [stdout] | [INFO] [stdout] 46 | extern "C" fn handle_proof_callback(cb: *mut c_void, len: uint32_t, encrypted_solution: *const uint8_t, proof: *const c_char, proof_len: ... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/ffi.rs:46:138 [INFO] [stdout] | [INFO] [stdout] 46 | ...ted_solution: *const uint8_t, proof: *const c_char, proof_len: int32_t)//n [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/ffi.rs:143:78 [INFO] [stdout] | [INFO] [stdout] 143 | unsafe { snark_verify(ctx.keypair, len as u32, &proof[0], proof.len() as int32_t, &h_of_key[0], &encrypted_solution[0]) } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/ffi.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | fn gen_keypair(len: uint32_t, h: *mut c_void, cb: extern fn(*mut c_void, *const c_char, size_t, *const c_char, size_t));//n [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/ffi.rs:23:48 [INFO] [stdout] | [INFO] [stdout] 23 | fn load_keypair(pk_s: *const c_char, pk_l: int32_t, vk_s: *const c_char, vk_l: int32_t) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/ffi.rs:23:84 [INFO] [stdout] | [INFO] [stdout] 23 | fn load_keypair(pk_s: *const c_char, pk_l: int32_t, vk_s: *const c_char, vk_l: int32_t) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/ffi.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | cb: extern fn(*mut c_void, uint32_t, *const uint8_t, *const c_char, int32_t), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/ffi.rs:26:62 [INFO] [stdout] | [INFO] [stdout] 26 | cb: extern fn(*mut c_void, uint32_t, *const uint8_t, *const c_char, int32_t), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/ffi.rs:26:86 [INFO] [stdout] | [INFO] [stdout] 26 | cb: extern fn(*mut c_void, uint32_t, *const uint8_t, *const c_char, int32_t), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/ffi.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | len: uint32_t, solution: *const uint8_t, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/ffi.rs:28:50 [INFO] [stdout] | [INFO] [stdout] 28 | len: uint32_t, solution: *const uint8_t, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/ffi.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | key: *const uint8_t, h_of_key: *const uint8_t) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/ffi.rs:29:56 [INFO] [stdout] | [INFO] [stdout] 29 | key: *const uint8_t, h_of_key: *const uint8_t) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/ffi.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 30 | fn decrypt_solution(n: uint32_t, enc: *mut uint8_t, key: *const uint8_t); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/ffi.rs:30:48 [INFO] [stdout] | [INFO] [stdout] 30 | fn decrypt_solution(n: uint32_t, enc: *mut uint8_t, key: *const uint8_t); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/ffi.rs:30:69 [INFO] [stdout] | [INFO] [stdout] 30 | fn decrypt_solution(n: uint32_t, enc: *mut uint8_t, key: *const uint8_t); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/ffi.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | len: uint32_t, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/ffi.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | proof: *const uint8_t, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/ffi.rs:34:32 [INFO] [stdout] | [INFO] [stdout] 34 | proof_len: int32_t, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/ffi.rs:36:38 [INFO] [stdout] | [INFO] [stdout] 36 | h_of_key: *const uint8_t, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/ffi.rs:37:42 [INFO] [stdout] | [INFO] [stdout] 37 | enc_solution: *const uint8_t [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:418:13 [INFO] [stdout] | [INFO] [stdout] 418 | fn from(a: bincode::serde::SerializeError) -> ProtoError { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:424:13 [INFO] [stdout] | [INFO] [stdout] 424 | fn from(a: bincode::serde::DeserializeError) -> ProtoError { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dimension` [INFO] [stdout] --> src/sudoku.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | fn new(dimension: usize) -> Possible { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dimension` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `undo` [INFO] [stdout] --> src/sudoku.rs:218:21 [INFO] [stdout] | [INFO] [stdout] 218 | let undo = cell.set(candidate); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_undo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sudoku.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let mut grid = Sudoku::new(n); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sudoku.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let mut grid = Sudoku::new(n); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:223:16 [INFO] [stdout] | [INFO] [stdout] 223 | |mut encrypted_solution, proof| { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `import_and_solve` [INFO] [stdout] --> src/sudoku.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn import_and_solve(n: usize, puzzle: &[u8]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inject` [INFO] [stdout] --> src/sudoku.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn inject(&self, other: &[u8]) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/sudoku.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clearsome` [INFO] [stdout] --> src/sudoku.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn clearsome(&mut self, rng: &mut R) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `prompt` [INFO] [stdout] --> src/util.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn prompt(prompt: &str) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sudoku.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | grid.solve(&mut rng); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Keypair`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | -> *const Keypair; [INFO] [stdout] | ^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | struct Keypair; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Keypair`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | fn gen_proof(keypair: *const Keypair, h: *mut c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | struct Keypair; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Keypair`, which is not FFI-safe [INFO] [stdout] --> src/ffi.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | fn snark_verify(keypair: *const Keypair, [INFO] [stdout] | ^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a member to this struct [INFO] [stdout] = note: this struct has no fields [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | struct Keypair; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | decoder.finish(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.pay_to_sudoku.7adf624a-cgu.9.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd.43p13ibyonl7v83j.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/bzip2-sys-7e7a1bd5b482b3f4/out" "-L" "/opt/rustwide/target/debug/build/miniz-sys-5fec5fa2788349ec/out" "-L" "/opt/rustwide/target/debug/build/rust-crypto-99bdaf3fe0e63eae/out" "-L" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lmysnark" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libbincode-c870343333cadc95.rlib" "/opt/rustwide/target/debug/deps/libbyteorder-ab9ecad8f8c99c38.rlib" "/opt/rustwide/target/debug/deps/libcrypto-0ee2a222ed3f2ce5.rlib" "/opt/rustwide/target/debug/deps/liblibc-89c97e7f48596fb0.rlib" "/opt/rustwide/target/debug/deps/libtime-905f6995671366fb.rlib" "/opt/rustwide/target/debug/deps/libstrason-4c40332cea8a5c15.rlib" "/opt/rustwide/target/debug/deps/libencoding-734f06d5927eec9d.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_tradchinese-8dcb34ed8ed76838.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_simpchinese-85e471f2c0eb0c18.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_japanese-e6927871f4271e27.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_korean-455ec1bcb0f4e90b.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_singlebyte-59406844627a9060.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-ea87b6c2fe761216.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-91b9e0d063734789.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-2ddfc09cde4cdc0c.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-d066e6f50a258123.rlib" "/opt/rustwide/target/debug/deps/libflate2-9c2f950715fadf8b.rlib" "/opt/rustwide/target/debug/deps/libminiz_sys-4890928b2689f8ab.rlib" "/opt/rustwide/target/debug/deps/libclap-47b134bc710647b4.rlib" "/opt/rustwide/target/debug/deps/libvec_map-dab3909866655c61.rlib" "/opt/rustwide/target/debug/deps/libtextwrap-5fec79f426ca26e0.rlib" "/opt/rustwide/target/debug/deps/libunicode_width-6da279cd4f865ec2.rlib" "/opt/rustwide/target/debug/deps/libstrsim-c0d73e3d44b574a0.rlib" "/opt/rustwide/target/debug/deps/libbitflags-6d05264d59b50f7f.rlib" "/opt/rustwide/target/debug/deps/libatty-acd2a65e0a145591.rlib" "/opt/rustwide/target/debug/deps/libansi_term-76ca62e328105e50.rlib" "/opt/rustwide/target/debug/deps/libserde-a83cd43e6c48f35c.rlib" "/opt/rustwide/target/debug/deps/libnum-34e1d855bc674cef.rlib" "/opt/rustwide/target/debug/deps/librustc_serialize-306a29a12f142e2b.rlib" "/opt/rustwide/target/debug/deps/libhex-b9ea9c63c7b3b35d.rlib" "/opt/rustwide/target/debug/deps/libthread_scoped-306e6caaf0b848d6.rlib" "/opt/rustwide/target/debug/deps/librand-1249b2d276c04c80.rlib" "/opt/rustwide/target/debug/deps/liblibc-332a289f87bfc192.rlib" "/opt/rustwide/target/debug/deps/libwhiteread-8a0786f8cc7ff2d5.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-29e5e596e889a0aa.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-1b145d9fcdc08832.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-5b037ee6b77e2ff0.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-9635a64fca0ebd28.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-a7574eb9bb7a8fc5.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-f5fa1dc334dcaeeb.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-6ee570a898e75ef0.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-afb62f29a0815772.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-a632746535fd9988.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-25acc307bcb1d7b6.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-377721a625f6ace7.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-43c01431c8a4ee6f.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-5f74725679453254.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-2b35d8999819161d.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-a81f2980c3f58cf2.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-57b4679830289815.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-2a6a2797f7a73818.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-0e3656b1fda5fd7b.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-13b419dfbcf9c1f8.rlib" "-Wl,-Bdynamic" "-lc" "-lm" "-lutil" "-ldl" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5c9ce60c68c2eccd" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lmysnark [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `pay-to-sudoku` due to 2 previous errors; 46 warnings emitted [INFO] running `Command { std: "docker" "inspect" "69b8e362f76da6b056e10b8caa92f5a72142c148c978f8df87c780db08c97b63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69b8e362f76da6b056e10b8caa92f5a72142c148c978f8df87c780db08c97b63", kill_on_drop: false }` [INFO] [stdout] 69b8e362f76da6b056e10b8caa92f5a72142c148c978f8df87c780db08c97b63