[INFO] cloning repository https://github.com/nyakiomaina/tapleaf-circuits-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nyakiomaina/tapleaf-circuits-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyakiomaina%2Ftapleaf-circuits-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyakiomaina%2Ftapleaf-circuits-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d38636f6e4012685aa558bc4d960eb723feea9d6 [INFO] checking nyakiomaina/tapleaf-circuits-rust against try#411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51 for pr-138844 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnyakiomaina%2Ftapleaf-circuits-rust" "/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/nyakiomaina/tapleaf-circuits-rust on toolchain 411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nyakiomaina/tapleaf-circuits-rust [INFO] finished tweaking git repo https://github.com/nyakiomaina/tapleaf-circuits-rust [INFO] tweaked toml for git repo https://github.com/nyakiomaina/tapleaf-circuits-rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/nyakiomaina/tapleaf-circuits-rust 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" "+411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51" "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 bitcoin v0.30.1 [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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a5ebe709a78eaea79423a979036ebd78e333e971bb830bc48df84ebe51e22982 [INFO] running `Command { std: "docker" "start" "-a" "a5ebe709a78eaea79423a979036ebd78e333e971bb830bc48df84ebe51e22982", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a5ebe709a78eaea79423a979036ebd78e333e971bb830bc48df84ebe51e22982", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5ebe709a78eaea79423a979036ebd78e333e971bb830bc48df84ebe51e22982", kill_on_drop: false }` [INFO] [stdout] a5ebe709a78eaea79423a979036ebd78e333e971bb830bc48df84ebe51e22982 [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=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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+411f3ca0d8086d5a27e2aaa79b9ff41f53ab2f51" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 673a2d2b15e86bccf02965bc47b1e0a266db75cfd0bc411036ab5e83157de8af [INFO] running `Command { std: "docker" "start" "-a" "673a2d2b15e86bccf02965bc47b1e0a266db75cfd0bc411036ab5e83157de8af", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling bitcoin-private v0.1.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Compiling hex_lit v0.1.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking bitcoin_hashes v0.12.0 [INFO] [stderr] Compiling bitcoin v0.30.1 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking cpufeatures v0.2.9 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking bech32 v0.9.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling secp256k1-sys v0.8.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking tokio v1.33.0 [INFO] [stderr] Checking secp256k1 v0.27.0 [INFO] [stderr] Checking tapleaf-circuits-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: functions are not allowed in struct definitions [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] 31 | // Dummy implementations. [INFO] [stdout] 32 | pub fn encode_script(script: Vec<&str>) -> Vec { vec![] } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: unlike in C++, Java, and C#, functions are declared in `impl` blocks [INFO] [stdout] = help: see https://doc.rust-lang.org/book/ch05-03-method-syntax.html for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: functions are not allowed in struct definitions [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct TapScriptAddress { [INFO] [stdout] | ---------------- while parsing this struct [INFO] [stdout] 37 | // Dummy implementation [INFO] [stdout] 38 | pub fn p2tr_from_pub_key(pub_key: &str) -> String { String::new() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: unlike in C++, Java, and C#, functions are declared in `impl` blocks [INFO] [stdout] = help: see https://doc.rust-lang.org/book/ch05-03-method-syntax.html for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: functions are not allowed in struct definitions [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] 31 | // Dummy implementations. [INFO] [stdout] 32 | pub fn encode_script(script: Vec<&str>) -> Vec { vec![] } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: unlike in C++, Java, and C#, functions are declared in `impl` blocks [INFO] [stdout] = help: see https://doc.rust-lang.org/book/ch05-03-method-syntax.html for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: functions are not allowed in struct definitions [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct TapScriptAddress { [INFO] [stdout] | ---------------- while parsing this struct [INFO] [stdout] 37 | // Dummy implementation [INFO] [stdout] 38 | pub fn p2tr_from_pub_key(pub_key: &str) -> String { String::new() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: unlike in C++, Java, and C#, functions are declared in `impl` blocks [INFO] [stdout] = help: see https://doc.rust-lang.org/book/ch05-03-method-syntax.html for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `let` statement [INFO] [stdout] --> src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let pubkey = ""; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: only supported directly in conditions of `if` and `while` expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `let` statement [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let vickys_key = ""; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: only supported directly in conditions of `if` and `while` expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/main.rs:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | let pubkey = ""; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/main.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | let vickys_key = ""; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/main.rs:58:55 [INFO] [stdout] | [INFO] [stdout] 58 | generate_challenge_address(pubkey, vickys_key); [INFO] [stdout] | ^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Address`, `Network`, and `PublicKey` [INFO] [stdout] --> src/main.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use bitcoin::{Address, PublicKey, Network}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bitcoin::blockdata::script` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use bitcoin::blockdata::script; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `let` statement [INFO] [stdout] --> src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let pubkey = ""; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: only supported directly in conditions of `if` and `while` expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `let` statement [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let vickys_key = ""; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: only supported directly in conditions of `if` and `while` expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/main.rs:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | let pubkey = ""; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/main.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | let vickys_key = ""; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;` [INFO] [stdout] --> src/main.rs:58:55 [INFO] [stdout] | [INFO] [stdout] 58 | generate_challenge_address(pubkey, vickys_key); [INFO] [stdout] | ^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Address`, `Network`, and `PublicKey` [INFO] [stdout] --> src/main.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use bitcoin::{Address, PublicKey, Network}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bitcoin::blockdata::script` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use bitcoin::blockdata::script; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:351:46 [INFO] [stdout] | [INFO] [stdout] 351 | let hash_0 = sha256(hex_to_bytes(preimages[0].clone())).await; [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn hex_to_bytes(hex: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ --------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 351 | let hash_0 = sha256(hex_to_bytes(&preimages[0].clone())).await; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:351:33 [INFO] [stdout] | [INFO] [stdout] 351 | let hash_0 = sha256(hex_to_bytes(preimages[0].clone())).await; [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&[u8]`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found struct `Vec` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn sha256(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^ ----------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 351 | let hash_0 = sha256(&hex_to_bytes(preimages[0].clone())).await; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `String` is not a future [INFO] [stdout] --> src/main.rs:351:69 [INFO] [stdout] | [INFO] [stdout] 351 | let hash_0 = sha256(hex_to_bytes(preimages[0].clone())).await; [INFO] [stdout] | ------------------------------------------ ^^^^^ `String` is not a future [INFO] [stdout] | | [INFO] [stdout] | this call returns `String` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::future::Future` is not implemented for `String` [INFO] [stdout] = note: String must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] = note: required for `String` to implement `IntoFuture` [INFO] [stdout] help: remove the `.await` [INFO] [stdout] | [INFO] [stdout] 351 - let hash_0 = sha256(hex_to_bytes(preimages[0].clone())).await; [INFO] [stdout] 351 + let hash_0 = sha256(hex_to_bytes(preimages[0].clone())); [INFO] [stdout] | [INFO] [stdout] help: alternatively, consider making `fn sha256` asynchronous [INFO] [stdout] | [INFO] [stdout] 63 | async fn sha256(data: &[u8]) -> String { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:352:46 [INFO] [stdout] | [INFO] [stdout] 352 | let hash_1 = sha256(hex_to_bytes(preimages[1].clone())).await; [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn hex_to_bytes(hex: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ --------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 352 | let hash_1 = sha256(hex_to_bytes(&preimages[1].clone())).await; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:352:33 [INFO] [stdout] | [INFO] [stdout] 352 | let hash_1 = sha256(hex_to_bytes(preimages[1].clone())).await; [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&[u8]`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found struct `Vec` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn sha256(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^ ----------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 352 | let hash_1 = sha256(&hex_to_bytes(preimages[1].clone())).await; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `String` is not a future [INFO] [stdout] --> src/main.rs:352:69 [INFO] [stdout] | [INFO] [stdout] 352 | let hash_1 = sha256(hex_to_bytes(preimages[1].clone())).await; [INFO] [stdout] | ------------------------------------------ ^^^^^ `String` is not a future [INFO] [stdout] | | [INFO] [stdout] | this call returns `String` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::future::Future` is not implemented for `String` [INFO] [stdout] = note: String must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] = note: required for `String` to implement `IntoFuture` [INFO] [stdout] help: remove the `.await` [INFO] [stdout] | [INFO] [stdout] 352 - let hash_1 = sha256(hex_to_bytes(preimages[1].clone())).await; [INFO] [stdout] 352 + let hash_1 = sha256(hex_to_bytes(preimages[1].clone())); [INFO] [stdout] | [INFO] [stdout] help: alternatively, consider making `fn sha256` asynchronous [INFO] [stdout] | [INFO] [stdout] 63 | async fn sha256(data: &[u8]) -> String { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unique` found for struct `std::vec::IntoIter` in the current scope [INFO] [stdout] --> src/main.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | arr.into_iter().unique().collect() [INFO] [stdout] | ^^^^^^ method not found in `IntoIter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `encode_script` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:408:64 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `encode_script` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 408 | let tree: Vec> = scripts.iter().map(|s| TapScript::encode_script(s.to_vec())).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `encode_script` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:414:45 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `encode_script` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 414 | let bit_commitment_tapleaf = TapScript::encode_script(bit_commitment_script); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `encode_script` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:415:58 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `encode_script` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 415 | let commitment_to_anywhere_else_tapleaf = TapScript::encode_script(commitment_to_anywhere_else_script.to_vec()); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `encode_script` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:417:29 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `encode_script` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 417 | let target = TapScript::encode_script(selected_script.to_vec()); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get_pub_key` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:419:40 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `get_pub_key` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 419 | let (tpubkey, cblock) = TapScript::get_pub_key(&"ab".repeat(32), &TapScriptParams { tree: tree.clone(), target }); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get_pub_key` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:423:44 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `get_pub_key` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 423 | let (tpubkey, alt_cblock) = TapScript::get_pub_key(&"ab".repeat(32), &TapScriptParams { tree, target: commitment_to_anywhere_else_tap... [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `p2tr_from_pub_key` found for struct `TapScriptAddress` in the current scope [INFO] [stdout] --> src/main.rs:426:52 [INFO] [stdout] | [INFO] [stdout] 36 | struct TapScriptAddress { [INFO] [stdout] | ----------------------- function or associated item `p2tr_from_pub_key` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 426 | let bit_commitment_address = TapScriptAddress::p2tr_from_pub_key(&bit_commitment_tpubkey); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ function or associated item not found in `TapScriptAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `challenge_scripts` [INFO] [stdout] --> src/main.rs:528:9 [INFO] [stdout] | [INFO] [stdout] 528 | let challenge_scripts: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_challenge_scripts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pubkey` [INFO] [stdout] --> src/main.rs:431:31 [INFO] [stdout] | [INFO] [stdout] 431 | fn generate_challenge_address(pubkey: &str, vickys_key: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pubkey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `template_name` does not live long enough [INFO] [stdout] --> src/main.rs:507:26 [INFO] [stdout] | [INFO] [stdout] 503 | let template_name = format!("OP_NOT_{}", input); [INFO] [stdout] | ------------- binding `template_name` declared here [INFO] [stdout] ... [INFO] [stdout] 507 | templates.insert(&template_name, filled_template); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | borrow later used here [INFO] [stdout] 508 | } [INFO] [stdout] | - `template_name` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `template_name` does not live long enough [INFO] [stdout] --> src/main.rs:516:26 [INFO] [stdout] | [INFO] [stdout] 511 | let template_name = format!("OP_BOOLAND_{}", input); [INFO] [stdout] | ------------- binding `template_name` declared here [INFO] [stdout] ... [INFO] [stdout] 516 | templates.insert(&template_name, filled_template); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | borrow later used here [INFO] [stdout] 517 | } [INFO] [stdout] | - `template_name` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `template_name` does not live long enough [INFO] [stdout] --> src/main.rs:525:26 [INFO] [stdout] | [INFO] [stdout] 520 | let template_name = format!("OP_XOR_{}", input); [INFO] [stdout] | ------------- binding `template_name` declared here [INFO] [stdout] ... [INFO] [stdout] 525 | templates.insert(&template_name, filled_template); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | borrow later used here [INFO] [stdout] 526 | } [INFO] [stdout] | - `template_name` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0597, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:351:46 [INFO] [stdout] | [INFO] [stdout] 351 | let hash_0 = sha256(hex_to_bytes(preimages[0].clone())).await; [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn hex_to_bytes(hex: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ --------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 351 | let hash_0 = sha256(hex_to_bytes(&preimages[0].clone())).await; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:351:33 [INFO] [stdout] | [INFO] [stdout] 351 | let hash_0 = sha256(hex_to_bytes(preimages[0].clone())).await; [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&[u8]`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found struct `Vec` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn sha256(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^ ----------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 351 | let hash_0 = sha256(&hex_to_bytes(preimages[0].clone())).await; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `String` is not a future [INFO] [stdout] --> src/main.rs:351:69 [INFO] [stdout] | [INFO] [stdout] 351 | let hash_0 = sha256(hex_to_bytes(preimages[0].clone())).await; [INFO] [stdout] | ------------------------------------------ ^^^^^ `String` is not a future [INFO] [stdout] | | [INFO] [stdout] | this call returns `String` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::future::Future` is not implemented for `String` [INFO] [stdout] = note: String must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] = note: required for `String` to implement `IntoFuture` [INFO] [stdout] help: remove the `.await` [INFO] [stdout] | [INFO] [stdout] 351 - let hash_0 = sha256(hex_to_bytes(preimages[0].clone())).await; [INFO] [stdout] 351 + let hash_0 = sha256(hex_to_bytes(preimages[0].clone())); [INFO] [stdout] | [INFO] [stdout] help: alternatively, consider making `fn sha256` asynchronous [INFO] [stdout] | [INFO] [stdout] 63 | async fn sha256(data: &[u8]) -> String { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:352:46 [INFO] [stdout] | [INFO] [stdout] 352 | let hash_1 = sha256(hex_to_bytes(preimages[1].clone())).await; [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn hex_to_bytes(hex: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ --------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 352 | let hash_1 = sha256(hex_to_bytes(&preimages[1].clone())).await; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tapleaf-circuits-rust` (bin "tapleaf-circuits-rust") due to 24 previous errors; 8 warnings emitted [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:352:33 [INFO] [stdout] | [INFO] [stdout] 352 | let hash_1 = sha256(hex_to_bytes(preimages[1].clone())).await; [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&[u8]`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found struct `Vec` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn sha256(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^ ----------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 352 | let hash_1 = sha256(&hex_to_bytes(preimages[1].clone())).await; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: `String` is not a future [INFO] [stdout] --> src/main.rs:352:69 [INFO] [stdout] | [INFO] [stdout] 352 | let hash_1 = sha256(hex_to_bytes(preimages[1].clone())).await; [INFO] [stdout] | ------------------------------------------ ^^^^^ `String` is not a future [INFO] [stdout] | | [INFO] [stdout] | this call returns `String` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::future::Future` is not implemented for `String` [INFO] [stdout] = note: String must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] = note: required for `String` to implement `IntoFuture` [INFO] [stdout] help: remove the `.await` [INFO] [stdout] | [INFO] [stdout] 352 - let hash_1 = sha256(hex_to_bytes(preimages[1].clone())).await; [INFO] [stdout] 352 + let hash_1 = sha256(hex_to_bytes(preimages[1].clone())); [INFO] [stdout] | [INFO] [stdout] help: alternatively, consider making `fn sha256` asynchronous [INFO] [stdout] | [INFO] [stdout] 63 | async fn sha256(data: &[u8]) -> String { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unique` found for struct `std::vec::IntoIter` in the current scope [INFO] [stdout] --> src/main.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | arr.into_iter().unique().collect() [INFO] [stdout] | ^^^^^^ method not found in `IntoIter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `encode_script` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:408:64 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `encode_script` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 408 | let tree: Vec> = scripts.iter().map(|s| TapScript::encode_script(s.to_vec())).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `encode_script` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:414:45 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `encode_script` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 414 | let bit_commitment_tapleaf = TapScript::encode_script(bit_commitment_script); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `encode_script` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:415:58 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `encode_script` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 415 | let commitment_to_anywhere_else_tapleaf = TapScript::encode_script(commitment_to_anywhere_else_script.to_vec()); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `encode_script` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:417:29 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `encode_script` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 417 | let target = TapScript::encode_script(selected_script.to_vec()); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get_pub_key` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:419:40 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `get_pub_key` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 419 | let (tpubkey, cblock) = TapScript::get_pub_key(&"ab".repeat(32), &TapScriptParams { tree: tree.clone(), target }); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get_pub_key` found for struct `TapScript` in the current scope [INFO] [stdout] --> src/main.rs:423:44 [INFO] [stdout] | [INFO] [stdout] 30 | struct TapScript { [INFO] [stdout] | ---------------- function or associated item `get_pub_key` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 423 | let (tpubkey, alt_cblock) = TapScript::get_pub_key(&"ab".repeat(32), &TapScriptParams { tree, target: commitment_to_anywhere_else_tap... [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `TapScript` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `p2tr_from_pub_key` found for struct `TapScriptAddress` in the current scope [INFO] [stdout] --> src/main.rs:426:52 [INFO] [stdout] | [INFO] [stdout] 36 | struct TapScriptAddress { [INFO] [stdout] | ----------------------- function or associated item `p2tr_from_pub_key` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 426 | let bit_commitment_address = TapScriptAddress::p2tr_from_pub_key(&bit_commitment_tpubkey); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ function or associated item not found in `TapScriptAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `challenge_scripts` [INFO] [stdout] --> src/main.rs:528:9 [INFO] [stdout] | [INFO] [stdout] 528 | let challenge_scripts: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_challenge_scripts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pubkey` [INFO] [stdout] --> src/main.rs:431:31 [INFO] [stdout] | [INFO] [stdout] 431 | fn generate_challenge_address(pubkey: &str, vickys_key: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pubkey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `template_name` does not live long enough [INFO] [stdout] --> src/main.rs:507:26 [INFO] [stdout] | [INFO] [stdout] 503 | let template_name = format!("OP_NOT_{}", input); [INFO] [stdout] | ------------- binding `template_name` declared here [INFO] [stdout] ... [INFO] [stdout] 507 | templates.insert(&template_name, filled_template); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | borrow later used here [INFO] [stdout] 508 | } [INFO] [stdout] | - `template_name` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `template_name` does not live long enough [INFO] [stdout] --> src/main.rs:516:26 [INFO] [stdout] | [INFO] [stdout] 511 | let template_name = format!("OP_BOOLAND_{}", input); [INFO] [stdout] | ------------- binding `template_name` declared here [INFO] [stdout] ... [INFO] [stdout] 516 | templates.insert(&template_name, filled_template); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | borrow later used here [INFO] [stdout] 517 | } [INFO] [stdout] | - `template_name` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `template_name` does not live long enough [INFO] [stdout] --> src/main.rs:525:26 [INFO] [stdout] | [INFO] [stdout] 520 | let template_name = format!("OP_XOR_{}", input); [INFO] [stdout] | ------------- binding `template_name` declared here [INFO] [stdout] ... [INFO] [stdout] 525 | templates.insert(&template_name, filled_template); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | borrow later used here [INFO] [stdout] 526 | } [INFO] [stdout] | - `template_name` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0597, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tapleaf-circuits-rust` (bin "tapleaf-circuits-rust" test) due to 24 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "673a2d2b15e86bccf02965bc47b1e0a266db75cfd0bc411036ab5e83157de8af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "673a2d2b15e86bccf02965bc47b1e0a266db75cfd0bc411036ab5e83157de8af", kill_on_drop: false }` [INFO] [stdout] 673a2d2b15e86bccf02965bc47b1e0a266db75cfd0bc411036ab5e83157de8af