[INFO] fetching crate confined_encoding 0.9.0-alpha.5... [INFO] checking confined_encoding-0.9.0-alpha.5 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate confined_encoding 0.9.0-alpha.5 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate confined_encoding 0.9.0-alpha.5 [INFO] finished tweaking crates.io crate confined_encoding 0.9.0-alpha.5 [INFO] tweaked toml for crates.io crate confined_encoding 0.9.0-alpha.5 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate confined_encoding 0.9.0-alpha.5 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 58 packages to latest compatible versions [INFO] [stderr] Adding bitcoin v0.29.2 (available: v0.32.7) [INFO] [stderr] Adding rand v0.7.3 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded amplify v3.14.2 [INFO] [stderr] Downloaded amplify_syn v1.1.6 [INFO] [stderr] Downloaded amplify_num v0.4.1 [INFO] [stderr] Downloaded amplify_syn v2.0.1 [INFO] [stderr] Downloaded amplify_derive v4.0.1 [INFO] [stderr] Downloaded encoding_derive_helpers v2.0.0-alpha.2 [INFO] [stderr] Downloaded confined_encoding_derive v0.9.0-alpha.2 [INFO] [stderr] Downloaded amplify_apfloat v0.3.1 [INFO] [stderr] Downloaded amplify_num v0.5.3 [INFO] [stderr] Downloaded amplify_derive v2.11.3 [INFO] [stderr] Downloaded amplify v4.9.0 [INFO] [stderr] Downloaded lnpbp_secp256k1zkp v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b49ba5bf4c723a6221e2439577cbd8b874ca3d84806aae5735e26bf75abfa5d9 [INFO] running `Command { std: "docker" "start" "-a" "b49ba5bf4c723a6221e2439577cbd8b874ca3d84806aae5735e26bf75abfa5d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b49ba5bf4c723a6221e2439577cbd8b874ca3d84806aae5735e26bf75abfa5d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b49ba5bf4c723a6221e2439577cbd8b874ca3d84806aae5735e26bf75abfa5d9", kill_on_drop: false }` [INFO] [stdout] b49ba5bf4c723a6221e2439577cbd8b874ca3d84806aae5735e26bf75abfa5d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f76c6b944eb79be6773307ddd01b1ae03ac8e5f1f43c5354b039539f41df860 [INFO] running `Command { std: "docker" "start" "-a" "1f76c6b944eb79be6773307ddd01b1ae03ac8e5f1f43c5354b039539f41df860", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling amplify_num v0.4.1 [INFO] [stderr] Checking bitcoin_hashes v0.11.0 [INFO] [stderr] Checking amplify_num v0.5.3 [INFO] [stderr] Checking bitflags v2.9.3 [INFO] [stderr] Checking bech32 v0.9.1 [INFO] [stderr] Checking ascii v1.1.0 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Checking quote v1.0.40 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Compiling lnpbp_secp256k1zkp v0.9.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking amplify_apfloat v0.3.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking amplify_syn v2.0.1 [INFO] [stderr] Compiling amplify_syn v1.1.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling amplify_derive v2.11.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling amplify_derive v4.0.1 [INFO] [stderr] Compiling amplify v3.14.2 [INFO] [stderr] Checking secp256k1 v0.24.3 [INFO] [stderr] Compiling encoding_derive_helpers v2.0.0-alpha.2 [INFO] [stderr] Checking amplify v4.9.0 [INFO] [stderr] Checking bitcoin v0.29.2 [INFO] [stderr] Compiling confined_encoding_derive v0.9.0-alpha.2 [INFO] [stderr] Checking confined_encoding v0.9.0-alpha.5 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `confined_encoding_test` [INFO] [stdout] --> src/lib.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | extern crate confined_encoding_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::confined_serialize` [INFO] [stdout] --> src/collections.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | use crate::confined_serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no `confined_serialize` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `chrono` [INFO] [stdout] --> src/primitives.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | use chrono::{NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `chrono` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `chrono`, use `cargo add chrono` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::confined_deserialize` [INFO] [stdout] --> src/primitives.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | use crate::confined_deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `confined_deserialize` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition value: `serde` [INFO] [stdout] --> src/lib.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | #[cfg(feature = "serde")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `all`, `bulletproofs`, `confined_encoding_derive`, `default`, `derive`, and `lnpbp_secp256k1zkp` [INFO] [stdout] = help: consider adding `serde` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | #![deny(dead_code, missing_docs, warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unexpected_cfgs)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DataEncodingTestFailure` in this scope [INFO] [stdout] --> src/bitcoin.rs:405:21 [INFO] [stdout] | [INFO] [stdout] 405 | ) -> Result<(), DataEncodingTestFailure> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition value: `serde` [INFO] [stdout] --> src/lib.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | #[cfg(feature = "serde")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `all`, `bulletproofs`, `confined_encoding_derive`, `default`, `derive`, and `lnpbp_secp256k1zkp` [INFO] [stdout] = help: consider adding `serde` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | #![deny(dead_code, missing_docs, warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unexpected_cfgs)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `Confined, 0, _>` with `[{integer}; 32]` [INFO] [stdout] --> src/amplify_types.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(&ser, &data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `Confined, 0, _> == [{integer}; 32]` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<[{integer}; 32]>` is not implemented for `Confined, 0, _>` [INFO] [stdout] = note: required for `&Confined, 0, _>` to implement `PartialEq<&[{integer}; 32]>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `amplify::Array::::from_slice`: use copy_from_slice [INFO] [stdout] --> src/amplify_types.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | assert_eq!(Bytes32::from_slice(data), Some(slice32)); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(deprecated)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated associated function `amplify::Array::::from_slice`: use copy_from_slice [INFO] [stdout] --> src/amplify_types.rs:81:29 [INFO] [stdout] | [INFO] [stdout] 81 | assert_eq!(Bytes32::from_slice(&data[..30]), None); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated method `amplify::confinement::Confined::::as_inner`: use as_unconfined method [INFO] [stdout] --> src/lib.rs:149:47 [INFO] [stdout] | [INFO] [stdout] 149 | let mut cursor = io::Cursor::new(data.as_inner()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(deprecated)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | test_encoding_roundtrip( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 293 | test_encoding_roundtrip( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:298:9 [INFO] [stdout] | [INFO] [stdout] 298 | test_encoding_roundtrip( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 303 | test_encoding_roundtrip( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | test_encoding_roundtrip( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:313:9 [INFO] [stdout] | [INFO] [stdout] 313 | test_encoding_roundtrip( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 318 | test_encoding_roundtrip( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:356:9 [INFO] [stdout] | [INFO] [stdout] 356 | test_encoding_roundtrip(&secp_pk_02, PK_BYTES_02).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:357:9 [INFO] [stdout] | [INFO] [stdout] 357 | test_encoding_roundtrip(&secp_pk_03, PK_BYTES_03).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | test_encoding_roundtrip(&secp_pk_one, PK_BYTES_ONEKEY).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bitcoin.rs:360:56 [INFO] [stdout] | [INFO] [stdout] 360 | secp256k1::PublicKey::confined_deserialize(PK_BYTES_04), [INFO] [stdout] | ------------------------------------------ ^^^^^^^^^^^ expected `&Confined, _, _>`, found `[u8; 65]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Confined, _, _>` [INFO] [stdout] found array `[u8; 65]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | fn confined_deserialize( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 147 | data: &Confined, MIN, MAX>, [INFO] [stdout] | ---------------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | test_encoding_roundtrip(&xcoordonly_02, &PK_BYTES_02[1..]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:373:9 [INFO] [stdout] | [INFO] [stdout] 373 | test_encoding_roundtrip(&xcoordonly_one, PK_BYTES_ONEKEY).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[{integer}; 60]: std::io::Read` is not satisfied [INFO] [stdout] --> src/bitcoin.rs:381:47 [INFO] [stdout] | [INFO] [stdout] 381 | secp256k1::PublicKey::confined_decode(&mut [ [INFO] [stdout] | _________-------------------------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 382 | | 0x04, 0x9b, 0x63, 0x47, 0x39, 0x85, 0x05, 0xf5, 0xec, 0x93, 0x82, [INFO] [stdout] 383 | | 0x6d, 0xc6, 0x1c, 0x19, 0xf4, 0x7c, 0x66, 0xc0, 0x28, 0x3e, 0xe9, [INFO] [stdout] 384 | | 0xbe, 0x98, 0x0e, 0x29, 0xce, 0x32, 0x5a, 0x0f, 0x46, 0x79, 0xef, [INFO] [stdout] ... | [INFO] [stdout] 387 | | 0x9e, 0x4e, 0xe9, 0x71, 0xd8, [INFO] [stdout] 388 | | ]) [INFO] [stdout] | |_________^ the trait `std::io::Read` is not implemented for `[{integer}; 60]` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::io::Read` is implemented for `&[u8]` [INFO] [stdout] note: required by a bound in `ConfinedDecode::confined_decode` [INFO] [stdout] --> src/lib.rs:140:37 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^ required by this bound in `ConfinedDecode::confined_decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[{integer}; 33]: std::io::Read` is not satisfied [INFO] [stdout] --> src/bitcoin.rs:395:47 [INFO] [stdout] | [INFO] [stdout] 395 | secp256k1::PublicKey::confined_decode(&mut [ [INFO] [stdout] | _________-------------------------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 396 | | 0xa5, 0x9b, 0x63, 0x47, 0x39, 0x85, 0x05, 0xf5, 0xec, 0x93, 0x82, [INFO] [stdout] 397 | | 0x6d, 0xc6, 0x1c, 0x19, 0xf4, 0x7c, 0x66, 0xc0, 0x28, 0x3e, 0xe9, [INFO] [stdout] 398 | | 0xbe, 0x98, 0x0e, 0x29, 0xce, 0x32, 0x5a, 0x0f, 0x46, 0x79, 0xef, [INFO] [stdout] 399 | | ]) [INFO] [stdout] | |_________^ the trait `std::io::Read` is not implemented for `[{integer}; 33]` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::io::Read` is implemented for `&[u8]` [INFO] [stdout] note: required by a bound in `ConfinedDecode::confined_decode` [INFO] [stdout] --> src/lib.rs:140:37 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^ required by this bound in `ConfinedDecode::confined_decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | test_encoding_roundtrip(&bitcoin::Network::Bitcoin, [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 409 | test_encoding_roundtrip(&bitcoin::Network::Testnet, [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:412:9 [INFO] [stdout] | [INFO] [stdout] 412 | test_encoding_roundtrip(&bitcoin::Network::Signet, [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:415:9 [INFO] [stdout] | [INFO] [stdout] 415 | test_encoding_roundtrip(&bitcoin::Network::Regtest, [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_encoding_outpoint` [INFO] [stdout] ... [INFO] [stdout] 433 | fn test_encoding_outpoint() { [INFO] [stdout] | --------------------------- similarly named function `test_encoding_outpoint` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[u8; 4]: std::io::Read` is not satisfied [INFO] [stdout] --> src/bitcoin.rs:426:43 [INFO] [stdout] | [INFO] [stdout] 426 | bitcoin::Network::confined_decode(&mut [ [INFO] [stdout] | _________---------------------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 427 | | 0xA1u8, 0xA2u8, 0xA3u8, 0xA4u8, [INFO] [stdout] 428 | | ]) [INFO] [stdout] | |_________^ the trait `std::io::Read` is not implemented for `[u8; 4]` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::io::Read` is implemented for `&[u8]` [INFO] [stdout] note: required by a bound in `ConfinedDecode::confined_decode` [INFO] [stdout] --> src/lib.rs:140:37 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^ required by this bound in `ConfinedDecode::confined_decode` [INFO] [stdout] help: convert the array to a `&[u8]` slice instead [INFO] [stdout] | [INFO] [stdout] 428 | ][..]) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | test_encoding_roundtrip(&outpoint, OUTPOINT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_encoding_roundtrip` in this scope [INFO] [stdout] --> src/bitcoin.rs:456:9 [INFO] [stdout] | [INFO] [stdout] 456 | test_encoding_roundtrip(&null, OUTPOINT_NULL).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[{integer}; 32]: std::io::Read` is not satisfied [INFO] [stdout] --> src/bitcoin.rs:465:35 [INFO] [stdout] | [INFO] [stdout] 465 | OutPoint::confined_decode(&mut [ [INFO] [stdout] | _________-------------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 466 | | 0x53, 0xc6, 0x31, 0x13, 0xed, 0x18, 0x68, 0xfc, 0xa, 0xdf, 0x8e, [INFO] [stdout] 467 | | 0xcd, 0xfd, 0x1f, 0x4d, 0xd6, 0xe5, 0xe3, 0x85, 0x83, 0xa4, 0x9d, [INFO] [stdout] 468 | | 0xb, 0x14, 0xe7, 0xf8, 0x87, 0xa4, 0xd1, 0x61, 0x78, 0x21, [INFO] [stdout] 469 | | ]) [INFO] [stdout] | |_________^ the trait `std::io::Read` is not implemented for `[{integer}; 32]` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::io::Read` is implemented for `&[u8]` [INFO] [stdout] note: required by a bound in `ConfinedDecode::confined_decode` [INFO] [stdout] --> src/lib.rs:140:37 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^ required by this bound in `ConfinedDecode::confined_decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/collections.rs:355:48 [INFO] [stdout] | [INFO] [stdout] 355 | Option::::confined_deserialize(two_zero_bytes).unwrap(), [INFO] [stdout] | ---------------------------------- ^^^^^^^^^^^^^^ expected `&Confined, _, _>`, found `&[u8]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Confined, _, _>` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | fn confined_deserialize( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 147 | data: &Confined, MIN, MAX>, [INFO] [stdout] | ---------------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/collections.rs:359:49 [INFO] [stdout] | [INFO] [stdout] 359 | Option::::confined_deserialize(two_zero_bytes).unwrap(), [INFO] [stdout] | ----------------------------------- ^^^^^^^^^^^^^^ expected `&Confined, _, _>`, found `&[u8]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Confined, _, _>` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | fn confined_deserialize( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 147 | data: &Confined, MIN, MAX>, [INFO] [stdout] | ---------------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/collections.rs:400:50 [INFO] [stdout] | [INFO] [stdout] 400 | assert_eq!(Option::::confined_decode(byte_0).unwrap(), Some(0)); [INFO] [stdout] | ----------------------------- ^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/collections.rs:401:50 [INFO] [stdout] | [INFO] [stdout] 401 | assert_eq!(Option::::confined_decode(byte_13).unwrap(), Some(13)); [INFO] [stdout] | ----------------------------- ^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/collections.rs:403:43 [INFO] [stdout] | [INFO] [stdout] 403 | Option::::confined_decode(byte_255).unwrap(), [INFO] [stdout] | ----------------------------- ^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/collections.rs:406:51 [INFO] [stdout] | [INFO] [stdout] 406 | assert_eq!(Option::::confined_decode(qword_13).unwrap(), Some(13)); [INFO] [stdout] | ------------------------------ ^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/collections.rs:408:44 [INFO] [stdout] | [INFO] [stdout] 408 | Option::::confined_decode(qword_256).unwrap(), [INFO] [stdout] | ------------------------------ ^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/collections.rs:412:44 [INFO] [stdout] | [INFO] [stdout] 412 | Option::::confined_decode(qword_max).unwrap(), [INFO] [stdout] | ------------------------------ ^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `confined_decode` exists for enum `Option`, but its trait bounds were not satisfied [INFO] [stdout] --> src/collections.rs:416:30 [INFO] [stdout] | [INFO] [stdout] 416 | Option::::confined_decode(word_13).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ variant or associated item cannot be called on `Option` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `usize: ConfinedDecode` was not satisfied [INFO] [stdout] --> src/collections.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl ConfinedDecode for Option [INFO] [stdout] | -------------- --------- [INFO] [stdout] 47 | where [INFO] [stdout] 48 | T: ConfinedDecode, [INFO] [stdout] | ^^^^^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `ConfinedDecode` defines an item `confined_decode`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait ConfinedDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `confined_decode` exists for enum `Option`, but its trait bounds were not satisfied [INFO] [stdout] --> src/collections.rs:420:30 [INFO] [stdout] | [INFO] [stdout] 420 | Option::::confined_decode(qword_max).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ variant or associated item cannot be called on `Option` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `usize: ConfinedDecode` was not satisfied [INFO] [stdout] --> src/collections.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl ConfinedDecode for Option [INFO] [stdout] | -------------- --------- [INFO] [stdout] 47 | where [INFO] [stdout] 48 | T: ConfinedDecode, [INFO] [stdout] | ^^^^^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `ConfinedDecode` defines an item `confined_decode`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait ConfinedDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/collections.rs:429:47 [INFO] [stdout] | [INFO] [stdout] 429 | assert!(Option::::confined_decode(&[2u8, 0u8, 0u8, 0u8][..]) [INFO] [stdout] | ----------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/collections.rs:432:47 [INFO] [stdout] | [INFO] [stdout] 432 | assert!(Option::::confined_decode(&[3u8, 0u8, 0u8, 0u8][..]) [INFO] [stdout] | ----------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/collections.rs:435:47 [INFO] [stdout] | [INFO] [stdout] 435 | assert!(Option::::confined_decode(&[0xFFu8, 0u8, 0u8, 0u8][..]) [INFO] [stdout] | ----------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[u8]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `confined_decode` found for struct `Vec` in the current scope [INFO] [stdout] --> src/collections.rs:467:31 [INFO] [stdout] | [INFO] [stdout] 467 | assert_eq!(Vec::::confined_decode(s1).unwrap(), v1); [INFO] [stdout] | ^^^^^^^^^^^^^^^ function or associated item not found in `Vec` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 6 others [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/vec/mod.rs:459:5 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `ConfinedDecode` defines an item `confined_decode`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait ConfinedDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `consensus_decode` with a similar name [INFO] [stdout] | [INFO] [stdout] 467 - assert_eq!(Vec::::confined_decode(s1).unwrap(), v1); [INFO] [stdout] 467 + assert_eq!(Vec::::consensus_decode(s1).unwrap(), v1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `confined_decode` found for struct `Vec` in the current scope [INFO] [stdout] --> src/collections.rs:468:31 [INFO] [stdout] | [INFO] [stdout] 468 | assert_eq!(Vec::::confined_decode(s2).unwrap(), v2); [INFO] [stdout] | ^^^^^^^^^^^^^^^ function or associated item not found in `Vec` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 6 others [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/vec/mod.rs:459:5 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `ConfinedDecode` defines an item `confined_decode`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait ConfinedDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `consensus_decode` with a similar name [INFO] [stdout] | [INFO] [stdout] 468 - assert_eq!(Vec::::confined_decode(s2).unwrap(), v2); [INFO] [stdout] 468 + assert_eq!(Vec::::consensus_decode(s2).unwrap(), v2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `confined_encoding` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no function or associated item named `confined_decode` found for struct `Vec` in the current scope [INFO] [stdout] --> src/collections.rs:469:32 [INFO] [stdout] | [INFO] [stdout] 469 | assert_eq!(Vec::::confined_decode(s3).unwrap(), v3); [INFO] [stdout] | ^^^^^^^^^^^^^^^ function or associated item not found in `Vec` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 6 others [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/vec/mod.rs:459:5 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `ConfinedDecode` defines an item `confined_decode`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait ConfinedDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `consensus_decode` with a similar name [INFO] [stdout] | [INFO] [stdout] 469 - assert_eq!(Vec::::confined_decode(s3).unwrap(), v3); [INFO] [stdout] 469 + assert_eq!(Vec::::consensus_decode(s3).unwrap(), v3); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/primitives.rs:274:35 [INFO] [stdout] | [INFO] [stdout] 274 | bool::confined_decode(&[0x20][..]), [INFO] [stdout] | --------------------- ^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&[{integer}]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn confined_decode(d: &mut impl io::Read) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of deprecated method `amplify::confinement::Confined::::as_inner`: use as_unconfined method [INFO] [stdout] --> src/lib.rs:149:47 [INFO] [stdout] | [INFO] [stdout] 149 | let mut cursor = io::Cursor::new(data.as_inner()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0432, E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `confined_encoding` (lib test) due to 50 previous errors [INFO] running `Command { std: "docker" "inspect" "1f76c6b944eb79be6773307ddd01b1ae03ac8e5f1f43c5354b039539f41df860", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f76c6b944eb79be6773307ddd01b1ae03ac8e5f1f43c5354b039539f41df860", kill_on_drop: false }` [INFO] [stdout] 1f76c6b944eb79be6773307ddd01b1ae03ac8e5f1f43c5354b039539f41df860