[INFO] cloning repository https://github.com/emnul/zkprim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/emnul/zkprim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femnul%2Fzkprim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femnul%2Fzkprim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 591da60eacfbb4bd96a6a585d3cb587e2e07d0dc [INFO] checking emnul/zkprim against try#3fada14ee01d755dc8076e611f11bf65b28ffd21 for pr-154971 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femnul%2Fzkprim" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/emnul/zkprim [INFO] finished tweaking git repo https://github.com/emnul/zkprim [INFO] tweaked toml for git repo https://github.com/emnul/zkprim written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/emnul/zkprim on toolchain 3fada14ee01d755dc8076e611f11bf65b28ffd21 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/emnul/zkprim 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" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded const-hex v1.18.1 [INFO] [stderr] Downloaded keccak v0.2.0 [INFO] [stderr] Downloaded proptest v1.11.0 [INFO] [stderr] Downloaded sha3 v0.11.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b54d7a8bb90753b450d205c212713e9e137edc689719f34ea0030bc926971ee [INFO] running `Command { std: "docker" "start" "-a" "2b54d7a8bb90753b450d205c212713e9e137edc689719f34ea0030bc926971ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b54d7a8bb90753b450d205c212713e9e137edc689719f34ea0030bc926971ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b54d7a8bb90753b450d205c212713e9e137edc689719f34ea0030bc926971ee", kill_on_drop: false }` [INFO] [stdout] 2b54d7a8bb90753b450d205c212713e9e137edc689719f34ea0030bc926971ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0beffccbb836c3ffd5ac451c07822faa5f0d8766e9f4b37df31ee610c09b2678 [INFO] running `Command { std: "docker" "start" "-a" "0beffccbb836c3ffd5ac451c07822faa5f0d8766e9f4b37df31ee610c09b2678", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Checking const-oid v0.10.2 [INFO] [stderr] Checking keccak v0.2.0 [INFO] [stderr] Checking const-hex v1.18.1 [INFO] [stderr] Compiling test-case-core v3.3.1 [INFO] [stderr] Compiling test-case-macros v3.3.1 [INFO] [stderr] Checking test-case v3.3.1 [INFO] [stderr] Checking hybrid-array v0.4.10 [INFO] [stderr] Checking block-buffer v0.12.0 [INFO] [stderr] Checking crypto-common v0.2.1 [INFO] [stderr] Checking digest v0.11.2 [INFO] [stderr] Checking sha3 v0.11.0 [INFO] [stderr] Checking zkprim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `hex_literal` [INFO] [stdout] --> src/tree.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex_literal`, use `cargo add hex_literal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `hex_literal` [INFO] [stdout] --> src/tree.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex_literal`, use `cargo add hex_literal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `hex_literal` in this scope [INFO] [stdout] --> src/tree.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | hex_literal::hex!("abababababababababababababababababababababababababababababababab"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_index` [INFO] [stdout] --> src/tree.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn set(&mut self, leaf_index: usize, value: Hash) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `zkprim` (lib) due to 3 previous errors; 5 warnings emitted [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/tree.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn set(&mut self, leaf_index: usize, value: Hash) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `leaf_index` [INFO] [stdout] --> src/tree.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn proof(&self, leaf_index: usize) -> MerkleProof { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proof` [INFO] [stdout] --> src/tree.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn verify(proof: &MerkleProof, leaf_value: Hash) -> Hash { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_value` [INFO] [stdout] --> src/tree.rs:89:40 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn verify(proof: &MerkleProof, leaf_value: Hash) -> Hash { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `hex_literal` [INFO] [stdout] --> src/tree.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex_literal`, use `cargo add hex_literal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `hex_literal` [INFO] [stdout] --> src/tree.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex_literal`, use `cargo add hex_literal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `hex_literal` in this scope [INFO] [stdout] --> src/tree.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | hex_literal::hex!("0000000000000000000000000000000000000000000000000000000000000000"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `hex_literal` in this scope [INFO] [stdout] --> src/tree.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | hex_literal::hex!("0000000000000000000000000000000000000000000000000000000000000000"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `hex_literal` in this scope [INFO] [stdout] --> src/tree.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | hex_literal::hex!("0000000000000000000000000000000000000000000000000000000000000000"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `hex_literal` in this scope [INFO] [stdout] --> src/tree.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | hex_literal::hex!("0000000000000000000000000000000000000000000000000000000000000000"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `hex_literal` in this scope [INFO] [stdout] --> src/tree.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | hex_literal::hex!("0000000000000000000000000000000000000000000000000000000000000000"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `hex_literal` in this scope [INFO] [stdout] --> src/tree.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | hex_literal::hex!("abababababababababababababababababababababababababababababababab"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hex_literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_index` [INFO] [stdout] --> src/tree.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn set(&mut self, leaf_index: usize, value: Hash) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/tree.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn set(&mut self, leaf_index: usize, value: Hash) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_index` [INFO] [stdout] --> src/tree.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn proof(&self, leaf_index: usize) -> MerkleProof { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proof` [INFO] [stdout] --> src/tree.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn verify(proof: &MerkleProof, leaf_value: Hash) -> Hash { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_value` [INFO] [stdout] --> src/tree.rs:89:40 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn verify(proof: &MerkleProof, leaf_value: Hash) -> Hash { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut tree = MerkleTree::new(2, INITIAL); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let mut tree = MerkleTree::new(2, INITIAL); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `zkprim` (lib test) due to 8 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0beffccbb836c3ffd5ac451c07822faa5f0d8766e9f4b37df31ee610c09b2678", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0beffccbb836c3ffd5ac451c07822faa5f0d8766e9f4b37df31ee610c09b2678", kill_on_drop: false }` [INFO] [stdout] 0beffccbb836c3ffd5ac451c07822faa5f0d8766e9f4b37df31ee610c09b2678