[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#ecabaf78506b7a4668d42dc20268c086b93f0fad for pr-87041 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVawheter%2FSimpleZKCP" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Vawheter/SimpleZKCP on toolchain ecabaf78506b7a4668d42dc20268c086b93f0fad [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "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-6/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" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gcc v0.3.21 [INFO] [stderr] Downloaded encoding v0.2.32 [INFO] [stderr] Downloaded hex v0.1.0 [INFO] [stderr] Downloaded flate2 v0.2.11 [INFO] [stderr] Downloaded bzip2 v0.2.3 [INFO] [stderr] Downloaded thread-scoped v1.0.1 [INFO] [stderr] Downloaded whiteread v0.2.0 [INFO] [stderr] Downloaded serde v0.6.6 [INFO] [stderr] Downloaded bincode v0.4.0 [INFO] [stderr] Downloaded rust-crypto v0.2.34 [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-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a8266fb83acb33084e2e665a78be7d484e9c3b67280c010dd9b0c587665cea49 [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" "a8266fb83acb33084e2e665a78be7d484e9c3b67280c010dd9b0c587665cea49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a8266fb83acb33084e2e665a78be7d484e9c3b67280c010dd9b0c587665cea49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8266fb83acb33084e2e665a78be7d484e9c3b67280c010dd9b0c587665cea49", kill_on_drop: false }` [INFO] [stdout] a8266fb83acb33084e2e665a78be7d484e9c3b67280c010dd9b0c587665cea49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b19e9f22dee88947251552d753aba54e93107a62b49dd7e343de93eee9332100 [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" "b19e9f22dee88947251552d753aba54e93107a62b49dd7e343de93eee9332100", kill_on_drop: false }` [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling gcc v0.3.21 [INFO] [stderr] Compiling winapi v0.2.5 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling libc v0.1.12 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling byteorder v0.3.13 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling hex v0.1.0 [INFO] [stderr] Compiling fixedbitset v0.1.0 [INFO] [stderr] Compiling whiteread v0.2.0 [INFO] [stderr] Compiling thread-scoped v1.0.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling advapi32-sys v0.1.2 [INFO] [stderr] Compiling kernel32-sys v0.2.1 [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 issue #80165 [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 issue #80165 [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 issue #80165 [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 issue #80165 [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/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] = 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: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] [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: 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-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.pay_to_sudoku.ce5d5e99-cgu.9.rcgu.o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e.3kgsp68td9ykxifk.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/bzip2-sys-1da889904c8173fd/out" "-L" "/opt/rustwide/target/debug/build/miniz-sys-2219e672324b2da6/out" "-L" "/opt/rustwide/target/debug/build/rust-crypto-4768cda9c643aa7d/out" "-L" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lmysnark" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libbincode-848eadf1559f49fc.rlib" "/opt/rustwide/target/debug/deps/libbyteorder-04968721877768df.rlib" "/opt/rustwide/target/debug/deps/libcrypto-22140248c9238cfa.rlib" "/opt/rustwide/target/debug/deps/liblibc-9107138846f8ab61.rlib" "/opt/rustwide/target/debug/deps/libtime-287613790e27ab31.rlib" "/opt/rustwide/target/debug/deps/libstrason-8eb42fe44276b2a5.rlib" "/opt/rustwide/target/debug/deps/libencoding-7d11539938ad6d11.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_tradchinese-aa9830d54675fb04.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_simpchinese-c81d3e0ec55ef1dc.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_japanese-120a92749df9d528.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_korean-58f60e32a6569c96.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_singlebyte-ccd5eeb644726325.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-08487f8e282f19e0.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libterm-9e93f1ef523b9dfd.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-fd135b1b487350d3.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-6d527484b6287cb3.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-91c5e579413a9548.rlib" "/opt/rustwide/target/debug/deps/libflate2-2950390823d11d3e.rlib" "/opt/rustwide/target/debug/deps/libminiz_sys-5b1da322812346e9.rlib" "/opt/rustwide/target/debug/deps/libclap-07738904376c38be.rlib" "/opt/rustwide/target/debug/deps/libvec_map-97ca52e148358cd3.rlib" "/opt/rustwide/target/debug/deps/libtextwrap-678d5d865513eebc.rlib" "/opt/rustwide/target/debug/deps/libunicode_width-58fa4f49044d3e0e.rlib" "/opt/rustwide/target/debug/deps/libstrsim-4124e514b7a4f703.rlib" "/opt/rustwide/target/debug/deps/libbitflags-603a79344a96ee73.rlib" "/opt/rustwide/target/debug/deps/libatty-fbf6f5a37fbcf046.rlib" "/opt/rustwide/target/debug/deps/libansi_term-bd7b8ca88b2cc3f8.rlib" "/opt/rustwide/target/debug/deps/libserde-e4f502dca810a917.rlib" "/opt/rustwide/target/debug/deps/libnum-5e882eaca5bc36fd.rlib" "/opt/rustwide/target/debug/deps/librustc_serialize-efb9cfa92b7c8c8d.rlib" "/opt/rustwide/target/debug/deps/libhex-137ee2ee6cf5a5aa.rlib" "/opt/rustwide/target/debug/deps/libthread_scoped-9cd69d747e5098f4.rlib" "/opt/rustwide/target/debug/deps/librand-96f28bbe1c97de5a.rlib" "/opt/rustwide/target/debug/deps/liblibc-d38a74d34e7a1c45.rlib" "/opt/rustwide/target/debug/deps/libwhiteread-045963b3db8fa3f4.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-37fdd654777c296f.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-d883bf2137e9181a.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-22ab8f3db88b586e.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-0167c9242d0931d5.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-361790a1a5505fc5.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-01c2ffe1ecd05a67.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-ec79e29a889fe805.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-001a3456e8a8331b.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-e8f1404290f0f040.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-76f46d0f23360a60.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-baf0bdc5eb131895.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-3a6a4ee6592d9370.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-1cc90d9dd57195f8.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-0e91863ffbec5148.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-69528f2eac185ac9.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-52d5241975807511.rlib" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-9924c22ae1efcf66.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d1241f7bd234a268.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/ecabaf78506b7a4668d42dc20268c086b93f0fad/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/pay_to_sudoku-5d3a60a42d5c6a7e" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "b19e9f22dee88947251552d753aba54e93107a62b49dd7e343de93eee9332100", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b19e9f22dee88947251552d753aba54e93107a62b49dd7e343de93eee9332100", kill_on_drop: false }` [INFO] [stdout] b19e9f22dee88947251552d753aba54e93107a62b49dd7e343de93eee9332100