[INFO] cloning repository https://github.com/collins-okafor/transaction_builder_exercise [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/collins-okafor/transaction_builder_exercise" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcollins-okafor%2Ftransaction_builder_exercise", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcollins-okafor%2Ftransaction_builder_exercise'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9a3d675507bc5f1e4296112e0c98b5b943012f1c [INFO] checking collins-okafor/transaction_builder_exercise against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcollins-okafor%2Ftransaction_builder_exercise" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/collins-okafor/transaction_builder_exercise [INFO] finished tweaking git repo https://github.com/collins-okafor/transaction_builder_exercise [INFO] tweaked toml for git repo https://github.com/collins-okafor/transaction_builder_exercise written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/collins-okafor/transaction_builder_exercise on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/collins-okafor/transaction_builder_exercise 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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df8882d2b2dfbb3d814eb71f008f58821c2076103b370e5c07f5008f5d6af4c5 [INFO] running `Command { std: "docker" "start" "-a" "df8882d2b2dfbb3d814eb71f008f58821c2076103b370e5c07f5008f5d6af4c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df8882d2b2dfbb3d814eb71f008f58821c2076103b370e5c07f5008f5d6af4c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df8882d2b2dfbb3d814eb71f008f58821c2076103b370e5c07f5008f5d6af4c5", kill_on_drop: false }` [INFO] [stdout] df8882d2b2dfbb3d814eb71f008f58821c2076103b370e5c07f5008f5d6af4c5 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92a330531844f333128341c652feb2742c0bbe5c05a54e96dd689a786992dc9a [INFO] running `Command { std: "docker" "start" "-a" "92a330531844f333128341c652feb2742c0bbe5c05a54e96dd689a786992dc9a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking bitcoin_hashes v0.9.7 [INFO] [stderr] Checking bech32 v0.7.3 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling secp256k1-sys v0.3.0 [INFO] [stderr] Checking secp256k1 v0.19.0 [INFO] [stderr] Checking bitcoin v0.25.2 [INFO] [stderr] Checking transaction_builder_exercise v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find function `serialize_hex` in this scope [INFO] [stdout] --> src/main.rs:126:46 [INFO] [stdout] | [INFO] [stdout] 126 | println!("Constructed Transaction:\n{}", serialize_hex(&transaction)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bitcoin-0.25.2/src/consensus/encode.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn serialize(data: &T) -> Vec { [INFO] [stdout] | ------------------------------------------------------------ similarly named function `serialize` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 126 - println!("Constructed Transaction:\n{}", serialize_hex(&transaction)); [INFO] [stdout] 126 + println!("Constructed Transaction:\n{}", serialize(&transaction)); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use bitcoin::consensus::encode::serialize_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `serialize_hex` in this scope [INFO] [stdout] --> src/main.rs:137:43 [INFO] [stdout] | [INFO] [stdout] 137 | println!("Spending Transaction:\n{}", serialize_hex(&spending_transaction)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bitcoin-0.25.2/src/consensus/encode.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn serialize(data: &T) -> Vec { [INFO] [stdout] | ------------------------------------------------------------ similarly named function `serialize` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 137 - println!("Spending Transaction:\n{}", serialize_hex(&spending_transaction)); [INFO] [stdout] 137 + println!("Spending Transaction:\n{}", serialize(&spending_transaction)); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use bitcoin::consensus::encode::serialize_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `deserialize` and `serialize` [INFO] [stdout] --> src/main.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use bitcoin::consensus::encode::{serialize, deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `output_single` found for struct `SigHashCache` in the current scope [INFO] [stdout] --> src/main.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 11 | let lock_hex = bitcoin::util::bip143::SigHashCache::new(transaction) [INFO] [stdout] | ____________________- [INFO] [stdout] 12 | | .output_single(0, &Builder::new().push_slice(&preimage_bytes).into_script()) [INFO] [stdout] | | -^^^^^^^^^^^^^ method not found in `SigHashCache<&bitcoin::Transaction>` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `OutPoint: From` is not satisfied [INFO] [stdout] --> src/main.rs:47:31 [INFO] [stdout] | [INFO] [stdout] 47 | previous_output: txid.into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `OutPoint` [INFO] [stdout] | [INFO] [stdout] = note: required for `bitcoin::Txid` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `default` found for struct `bitcoin::Transaction` in the current scope [INFO] [stdout] --> src/main.rs:116:36 [INFO] [stdout] | [INFO] [stdout] 116 | let transaction = Transaction::default(); // Create a default transaction [INFO] [stdout] | ^^^^^^^ function or associated item not found in `bitcoin::Transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `serialize_hex` in this scope [INFO] [stdout] --> src/main.rs:126:46 [INFO] [stdout] | [INFO] [stdout] 126 | println!("Constructed Transaction:\n{}", serialize_hex(&transaction)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bitcoin-0.25.2/src/consensus/encode.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn serialize(data: &T) -> Vec { [INFO] [stdout] | ------------------------------------------------------------ similarly named function `serialize` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 126 - println!("Constructed Transaction:\n{}", serialize_hex(&transaction)); [INFO] [stdout] 126 + println!("Constructed Transaction:\n{}", serialize(&transaction)); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use bitcoin::consensus::encode::serialize_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `serialize_hex` in this scope [INFO] [stdout] --> src/main.rs:137:43 [INFO] [stdout] | [INFO] [stdout] 137 | println!("Spending Transaction:\n{}", serialize_hex(&spending_transaction)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bitcoin-0.25.2/src/consensus/encode.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn serialize(data: &T) -> Vec { [INFO] [stdout] | ------------------------------------------------------------ similarly named function `serialize` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 137 - println!("Spending Transaction:\n{}", serialize_hex(&spending_transaction)); [INFO] [stdout] 137 + println!("Spending Transaction:\n{}", serialize(&spending_transaction)); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use bitcoin::consensus::encode::serialize_hex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serialize` [INFO] [stdout] --> src/main.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use bitcoin::consensus::encode::{serialize, deserialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `transaction_builder_exercise` (bin "transaction_builder_exercise") due to 5 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `output_single` found for struct `SigHashCache` in the current scope [INFO] [stdout] --> src/main.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 11 | let lock_hex = bitcoin::util::bip143::SigHashCache::new(transaction) [INFO] [stdout] | ____________________- [INFO] [stdout] 12 | | .output_single(0, &Builder::new().push_slice(&preimage_bytes).into_script()) [INFO] [stdout] | | -^^^^^^^^^^^^^ method not found in `SigHashCache<&bitcoin::Transaction>` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `OutPoint: From` is not satisfied [INFO] [stdout] --> src/main.rs:47:31 [INFO] [stdout] | [INFO] [stdout] 47 | previous_output: txid.into(), [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `OutPoint` [INFO] [stdout] | [INFO] [stdout] = note: required for `bitcoin::Txid` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:75:29 [INFO] [stdout] | [INFO] [stdout] 75 | let redeem_script = generate_redeem_script(preimage); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^---------- argument #2 of type `&bitcoin::Transaction` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn generate_redeem_script(preimage: &str, transaction: &Transaction) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 75 | let redeem_script = generate_redeem_script(preimage, /* &bitcoin::Transaction */); [INFO] [stdout] | +++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `default` found for struct `bitcoin::Transaction` in the current scope [INFO] [stdout] --> src/main.rs:116:36 [INFO] [stdout] | [INFO] [stdout] 116 | let transaction = Transaction::default(); // Create a default transaction [INFO] [stdout] | ^^^^^^^ function or associated item not found in `bitcoin::Transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `transaction_builder_exercise` (bin "transaction_builder_exercise" test) due to 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "92a330531844f333128341c652feb2742c0bbe5c05a54e96dd689a786992dc9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92a330531844f333128341c652feb2742c0bbe5c05a54e96dd689a786992dc9a", kill_on_drop: false }` [INFO] [stdout] 92a330531844f333128341c652feb2742c0bbe5c05a54e96dd689a786992dc9a