[INFO] fetching crate tl-types 0.1.0... [INFO] testing tl-types-0.1.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate tl-types 0.1.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate tl-types 0.1.0 [INFO] finished tweaking crates.io crate tl-types 0.1.0 [INFO] tweaked toml for crates.io crate tl-types 0.1.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate tl-types 0.1.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 90df8992e32cdaa75b908b407e48ae900bc87335846d5dc94219e4f5b0720fc3 [INFO] running `Command { std: "docker" "start" "-a" "90df8992e32cdaa75b908b407e48ae900bc87335846d5dc94219e4f5b0720fc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "90df8992e32cdaa75b908b407e48ae900bc87335846d5dc94219e4f5b0720fc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90df8992e32cdaa75b908b407e48ae900bc87335846d5dc94219e4f5b0720fc3", kill_on_drop: false }` [INFO] [stdout] 90df8992e32cdaa75b908b407e48ae900bc87335846d5dc94219e4f5b0720fc3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef464a16a07307c30258f745dcf23beb35286deffea0dbe39f5f2f14fb26ea07 [INFO] running `Command { std: "docker" "start" "-a" "ef464a16a07307c30258f745dcf23beb35286deffea0dbe39f5f2f14fb26ea07", kill_on_drop: false }` [INFO] [stderr] Compiling tl-types v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] running `Command { std: "docker" "inspect" "ef464a16a07307c30258f745dcf23beb35286deffea0dbe39f5f2f14fb26ea07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef464a16a07307c30258f745dcf23beb35286deffea0dbe39f5f2f14fb26ea07", kill_on_drop: false }` [INFO] [stdout] ef464a16a07307c30258f745dcf23beb35286deffea0dbe39f5f2f14fb26ea07 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62e252d91f2f63c4c14cb336939fcf41d08032916ad1b356b5c36ad41d5578b3 [INFO] running `Command { std: "docker" "start" "-a" "62e252d91f2f63c4c14cb336939fcf41d08032916ad1b356b5c36ad41d5578b3", kill_on_drop: false }` [INFO] [stderr] Compiling tl-types v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "62e252d91f2f63c4c14cb336939fcf41d08032916ad1b356b5c36ad41d5578b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62e252d91f2f63c4c14cb336939fcf41d08032916ad1b356b5c36ad41d5578b3", kill_on_drop: false }` [INFO] [stdout] 62e252d91f2f63c4c14cb336939fcf41d08032916ad1b356b5c36ad41d5578b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 42010c9bd47b7e23e0e9966696dceef38ea71b92df761cc4eeeb5f5459e64376 [INFO] running `Command { std: "docker" "start" "-a" "42010c9bd47b7e23e0e9966696dceef38ea71b92df761cc4eeeb5f5459e64376", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tl_types-f94375580926cc1c) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests tl_types [INFO] [stdout] [INFO] [stdout] running 24 tests [INFO] [stdout] test src/deserialize.rs - deserialize::f64::deserialize (line 269) ... FAILED [INFO] [stdout] test src/deserialize.rs - deserialize::bool::deserialize (line 128) ... FAILED [INFO] [stdout] test src/deserialize.rs - deserialize::crate::RawVec::deserialize (line 320) ... FAILED [INFO] [stdout] test src/deserialize.rs - deserialize::String::deserialize (line 343) ... FAILED [INFO] [stdout] test src/deserialize.rs - deserialize::Vec::deserialize (line 294) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::String::serialize (line 222) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::Vec::serialize (line 265) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::Vec::serialize (line 180) ... FAILED [INFO] [stdout] test src/deserialize.rs - deserialize::i32::deserialize (line 153) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::&'_[u8]::serialize (line 283) ... FAILED [INFO] [stdout] test src/deserialize.rs - deserialize::Vec::deserialize (line 386) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::[u8;16]::serialize (line 117) ... FAILED [INFO] [stdout] test src/deserialize.rs - deserialize::[u8;32]::deserialize (line 246) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::crate::RawVec::serialize (line 203) ... FAILED [INFO] [stdout] test src/deserialize.rs - deserialize::i64::deserialize (line 200) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::u32::serialize (line 75) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::i32::serialize (line 53) ... FAILED [INFO] [stdout] test src/deserialize.rs - deserialize::[u8;16]::deserialize (line 224) ... FAILED [INFO] [stdout] test src/deserialize.rs - deserialize::Deserializable::from_bytes (line 107) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::bool::serialize (line 33) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::i64::serialize (line 96) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::f64::serialize (line 157) ... FAILED [INFO] [stdout] test src/deserialize.rs - deserialize::u32::deserialize (line 177) ... FAILED [INFO] [stdout] test src/serialize.rs - serialize::[u8;32]::serialize (line 136) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/deserialize.rs - deserialize::f64::deserialize (line 269) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:271:5 [INFO] [stdout] | [INFO] [stdout] 271 | use gramme_types::Deserializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `f64` in the current scope [INFO] [stdout] --> src/deserialize.rs:273:17 [INFO] [stdout] | [INFO] [stdout] 273 | assert_eq!(f64::from_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]).unwrap(), 0f64); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `f64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 269 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 273 | assert_eq!(f64::from_be_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]).unwrap(), 0f64); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `f64` in the current scope [INFO] [stdout] --> src/deserialize.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | assert_eq!(f64::from_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf8, 0x3f]).unwrap(), 1.5f64); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `f64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 269 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 274 | assert_eq!(f64::from_be_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf8, 0x3f]).unwrap(), 1.5f64); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `f64` in the current scope [INFO] [stdout] --> src/deserialize.rs:275:17 [INFO] [stdout] | [INFO] [stdout] 275 | assert_eq!(f64::from_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf8, 0xbf]).unwrap(), -1.5f64); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `f64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 269 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 275 | assert_eq!(f64::from_be_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf8, 0xbf]).unwrap(), -1.5f64); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `f64` in the current scope [INFO] [stdout] --> src/deserialize.rs:276:17 [INFO] [stdout] | [INFO] [stdout] 276 | assert_eq!(f64::from_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0x7f]).unwrap(), f64::INFINITY); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `f64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 269 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 276 | assert_eq!(f64::from_be_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0x7f]).unwrap(), f64::INFINITY); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `f64` in the current scope [INFO] [stdout] --> src/deserialize.rs:277:17 [INFO] [stdout] | [INFO] [stdout] 277 | assert_eq!(f64::from_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0xff]).unwrap(), f64::NEG_INFINITY); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `f64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 269 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 277 | assert_eq!(f64::from_be_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0xff]).unwrap(), f64::NEG_INFINITY); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/deserialize.rs - deserialize::bool::deserialize (line 128) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | use gramme_types::Deserializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `bool` in the current scope [INFO] [stdout] --> src/deserialize.rs:131:18 [INFO] [stdout] | [INFO] [stdout] 131 | assert_eq!(bool::from_bytes(&[0xb5, 0x75, 0x72, 0x99]).unwrap(), true); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `bool` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `to_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 128 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `bool` in the current scope [INFO] [stdout] --> src/deserialize.rs:132:18 [INFO] [stdout] | [INFO] [stdout] 132 | assert_eq!(bool::from_bytes(&[0x37, 0x97, 0x79, 0xbc]).unwrap(), false); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `bool` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `to_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 128 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/deserialize.rs - deserialize::crate::RawVec::deserialize (line 320) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | use gramme_types::{RawVec, Deserializable}; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/deserialize.rs - deserialize::String::deserialize (line 343) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:344:5 [INFO] [stdout] | [INFO] [stdout] 344 | use gramme_types::Deserializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `String` in the current scope [INFO] [stdout] --> src/deserialize.rs:355:23 [INFO] [stdout] | [INFO] [stdout] 355 | assert_eq!(String::from_bytes(&bytes).unwrap(), expected); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `String` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `String` consider using one of the following associated functions: [INFO] [stdout] String::new [INFO] [stdout] String::with_capacity [INFO] [stdout] String::try_with_capacity [INFO] [stdout] String::from_utf8 [INFO] [stdout] and 9 others [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/string.rs:444:4 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `to_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 343 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/deserialize.rs - deserialize::Vec::deserialize (line 294) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | use gramme_types::Deserializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `Vec` in the current scope [INFO] [stdout] --> src/deserialize.rs:297:24 [INFO] [stdout] | [INFO] [stdout] 297 | assert_eq!(Vec::::from_bytes(&[0x15, 0xc4, 0xb5, 0x1c, 0x0, 0x0, 0x0, 0x0]).unwrap(), Vec::new()); [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/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/vec/mod.rs:459:4 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `to_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 294 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `Vec` in the current scope [INFO] [stdout] --> src/deserialize.rs:298:24 [INFO] [stdout] | [INFO] [stdout] 298 | assert_eq!(Vec::::from_bytes(&[0x15, 0xc4, 0xb5, 0x1c, 0x1, 0x0, 0x0, 0x0, 0x7f, 0x0, 0x0, 0x0]).unwrap(), [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/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/vec/mod.rs:459:4 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `to_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 294 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::String::serialize (line 222) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 223 | use gramme_types::Serializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for struct `String` in the current scope [INFO] [stdout] --> src/serialize.rs:226:34 [INFO] [stdout] | [INFO] [stdout] 226 | let bytes = string.to_owned().to_bytes(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `String` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 222 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `into_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 226 | let bytes = string.to_owned().into_bytes(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::Vec::serialize (line 265) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:266:5 [INFO] [stdout] | [INFO] [stdout] 266 | use gramme_types::Serializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for struct `Vec` in the current scope [INFO] [stdout] --> src/serialize.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | assert_eq!(Vec::::new().to_bytes(), &[0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `Vec` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 265 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 268 - assert_eq!(Vec::::new().to_bytes(), &[0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] 268 + assert_eq!(Vec::::new().bytes(), &[0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for struct `Vec` in the current scope [INFO] [stdout] --> src/serialize.rs:269:26 [INFO] [stdout] | [INFO] [stdout] 269 | assert_eq!(vec![0x7f_u8].to_bytes(), &[0x01, 0x7f, 0x00, 0x00]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `Vec` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 265 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 269 - assert_eq!(vec![0x7f_u8].to_bytes(), &[0x01, 0x7f, 0x00, 0x00]); [INFO] [stdout] 269 + assert_eq!(vec![0x7f_u8].bytes(), &[0x01, 0x7f, 0x00, 0x00]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::Vec::serialize (line 180) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | use gramme_types::Serializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for struct `Vec` in the current scope [INFO] [stdout] --> src/serialize.rs:183:30 [INFO] [stdout] | [INFO] [stdout] 183 | assert_eq!(Vec::::new().to_bytes(), [0x15, 0xc4, 0xb5, 0x1c, 0x0, 0x0, 0x0, 0x0]); [INFO] [stdout] | ^^^^^^^^ method not found in `Vec` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `Vec` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 180 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for struct `Vec` in the current scope [INFO] [stdout] --> src/serialize.rs:184:27 [INFO] [stdout] | [INFO] [stdout] 184 | assert_eq!(vec![0x7f_i32].to_bytes(), [INFO] [stdout] | ^^^^^^^^ method not found in `Vec` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `Vec` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 180 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/deserialize.rs - deserialize::i32::deserialize (line 153) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | use gramme_types::Deserializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `i32` in the current scope [INFO] [stdout] --> src/deserialize.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | assert_eq!(i32::from_bytes(&[0x00, 0x00, 0x00, 0x00]).unwrap(), 0i32); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `i32` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 153 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 156 - assert_eq!(i32::from_bytes(&[0x00, 0x00, 0x00, 0x00]).unwrap(), 0i32); [INFO] [stdout] 156 + assert_eq!(i32::from_be(&[0x00, 0x00, 0x00, 0x00]).unwrap(), 0i32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `i32` in the current scope [INFO] [stdout] --> src/deserialize.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | assert_eq!(i32::from_bytes(&[0x01, 0x00, 0x00, 0x00]).unwrap(), 1i32); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `i32` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 153 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 157 - assert_eq!(i32::from_bytes(&[0x01, 0x00, 0x00, 0x00]).unwrap(), 1i32); [INFO] [stdout] 157 + assert_eq!(i32::from_be(&[0x01, 0x00, 0x00, 0x00]).unwrap(), 1i32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `i32` in the current scope [INFO] [stdout] --> src/deserialize.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | assert_eq!(i32::from_bytes(&[0xff, 0xff, 0xff, 0xff]).unwrap(), -1i32); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `i32` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 153 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 158 - assert_eq!(i32::from_bytes(&[0xff, 0xff, 0xff, 0xff]).unwrap(), -1i32); [INFO] [stdout] 158 + assert_eq!(i32::from_be(&[0xff, 0xff, 0xff, 0xff]).unwrap(), -1i32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `i32` in the current scope [INFO] [stdout] --> src/deserialize.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | assert_eq!(i32::from_bytes(&[0xff, 0xff, 0xff, 0x7f]).unwrap(), i32::max_value()); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `i32` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 153 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 159 - assert_eq!(i32::from_bytes(&[0xff, 0xff, 0xff, 0x7f]).unwrap(), i32::max_value()); [INFO] [stdout] 159 + assert_eq!(i32::from_be(&[0xff, 0xff, 0xff, 0x7f]).unwrap(), i32::max_value()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `i32` in the current scope [INFO] [stdout] --> src/deserialize.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | assert_eq!(i32::from_bytes(&[0x00, 0x00, 0x00, 0x80]).unwrap(), i32::min_value()); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `i32` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 153 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 160 - assert_eq!(i32::from_bytes(&[0x00, 0x00, 0x00, 0x80]).unwrap(), i32::min_value()); [INFO] [stdout] 160 + assert_eq!(i32::from_be(&[0x00, 0x00, 0x00, 0x80]).unwrap(), i32::min_value()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::&'_[u8]::serialize (line 283) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:284:5 [INFO] [stdout] | [INFO] [stdout] 284 | use gramme_types::Serializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/serialize.rs:286:29 [INFO] [stdout] | [INFO] [stdout] 286 | assert_eq!((&[0x7f_u8][..]).to_bytes(), &[0x01, 0x7f, 0x00, 0x00]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `&[u8]` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 283 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 286 - assert_eq!((&[0x7f_u8][..]).to_bytes(), &[0x01, 0x7f, 0x00, 0x00]); [INFO] [stdout] 286 + assert_eq!((&[0x7f_u8][..]).bytes(), &[0x01, 0x7f, 0x00, 0x00]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/deserialize.rs - deserialize::Vec::deserialize (line 386) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:387:5 [INFO] [stdout] | [INFO] [stdout] 387 | use gramme_types::{Deserializable}; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `Vec` in the current scope [INFO] [stdout] --> src/deserialize.rs:389:23 [INFO] [stdout] | [INFO] [stdout] 389 | assert_eq!(Vec::::from_bytes(&[0x00, 0x00, 0x00, 0x00]).unwrap(), Vec::new()); [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/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/vec/mod.rs:459:4 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `to_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 386 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `Vec` in the current scope [INFO] [stdout] --> src/deserialize.rs:390:23 [INFO] [stdout] | [INFO] [stdout] 390 | assert_eq!(Vec::::from_bytes(&[0x01, 0x7f, 0x00, 0x00]).unwrap(), vec![0x7f_u8]); [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/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/vec/mod.rs:459:4 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `to_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 386 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::[u8;16]::serialize (line 117) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | use gramme_types::Serializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for array `[{integer}; 16]` in the current scope [INFO] [stdout] --> src/serialize.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | assert_eq!(data.to_bytes(), data); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `[{integer}; 16]` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 117 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 122 - assert_eq!(data.to_bytes(), data); [INFO] [stdout] 122 + assert_eq!(data.bytes(), data); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/deserialize.rs - deserialize::[u8;32]::deserialize (line 246) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:247:5 [INFO] [stdout] | [INFO] [stdout] 247 | use gramme_types::Deserializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for array `[u8; 32]` in the current scope [INFO] [stdout] --> src/deserialize.rs:252:24 [INFO] [stdout] | [INFO] [stdout] 252 | assert_eq!(<[u8; 32]>::from_bytes(&data).unwrap(), data); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `[u8; 32]` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `to_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 246 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::crate::RawVec::serialize (line 203) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 204 | use gramme_types::{RawVec, Serializable}; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/deserialize.rs - deserialize::i64::deserialize (line 200) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:201:5 [INFO] [stdout] | [INFO] [stdout] 201 | use gramme_types::Deserializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `i64` in the current scope [INFO] [stdout] --> src/deserialize.rs:203:17 [INFO] [stdout] | [INFO] [stdout] 203 | assert_eq!(i64::from_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]).unwrap(), 0i64); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `i64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 200 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 203 - assert_eq!(i64::from_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]).unwrap(), 0i64); [INFO] [stdout] 203 + assert_eq!(i64::from_be(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]).unwrap(), 0i64); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `i64` in the current scope [INFO] [stdout] --> src/deserialize.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | assert_eq!(i64::from_bytes(&[0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]).unwrap(), 1i64); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `i64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 200 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 204 - assert_eq!(i64::from_bytes(&[0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]).unwrap(), 1i64); [INFO] [stdout] 204 + assert_eq!(i64::from_be(&[0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]).unwrap(), 1i64); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `i64` in the current scope [INFO] [stdout] --> src/deserialize.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | assert_eq!(i64::from_bytes(&[0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]).unwrap(), (-1i64)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `i64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 200 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 205 - assert_eq!(i64::from_bytes(&[0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]).unwrap(), (-1i64)); [INFO] [stdout] 205 + assert_eq!(i64::from_be(&[0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]).unwrap(), (-1i64)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `i64` in the current scope [INFO] [stdout] --> src/deserialize.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | assert_eq!(i64::from_bytes(&[0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f]).unwrap(), i64::max_value()); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `i64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 200 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 206 - assert_eq!(i64::from_bytes(&[0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f]).unwrap(), i64::max_value()); [INFO] [stdout] 206 + assert_eq!(i64::from_be(&[0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f]).unwrap(), i64::max_value()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `i64` in the current scope [INFO] [stdout] --> src/deserialize.rs:207:17 [INFO] [stdout] | [INFO] [stdout] 207 | assert_eq!(i64::from_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80]).unwrap(), i64::min_value()); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `i64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 200 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 207 - assert_eq!(i64::from_bytes(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80]).unwrap(), i64::min_value()); [INFO] [stdout] 207 + assert_eq!(i64::from_be(&[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80]).unwrap(), i64::min_value()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::u32::serialize (line 75) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | use gramme_types::Serializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `u32` in the current scope [INFO] [stdout] --> src/serialize.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(0u32.to_bytes(), [0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `u32` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 75 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 78 - assert_eq!(0u32.to_bytes(), [0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] 78 + assert_eq!(0u32.to_be(), [0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `u32` in the current scope [INFO] [stdout] --> src/serialize.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | assert_eq!(1u32.to_bytes(), [0x01, 0x00, 0x00, 0x00]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `u32` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 75 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 79 - assert_eq!(1u32.to_bytes(), [0x01, 0x00, 0x00, 0x00]); [INFO] [stdout] 79 + assert_eq!(1u32.to_be(), [0x01, 0x00, 0x00, 0x00]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `u32` in the current scope [INFO] [stdout] --> src/serialize.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | assert_eq!(u32::max_value().to_bytes(), [0xff, 0xff, 0xff, 0xff]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `u32` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 75 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 80 - assert_eq!(u32::max_value().to_bytes(), [0xff, 0xff, 0xff, 0xff]); [INFO] [stdout] 80 + assert_eq!(u32::max_value().to_be(), [0xff, 0xff, 0xff, 0xff]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `u32` in the current scope [INFO] [stdout] --> src/serialize.rs:81:29 [INFO] [stdout] | [INFO] [stdout] 81 | assert_eq!(u32::min_value().to_bytes(), [0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `u32` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 75 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 81 - assert_eq!(u32::min_value().to_bytes(), [0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] 81 + assert_eq!(u32::min_value().to_be(), [0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::i32::serialize (line 53) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | use gramme_types::Serializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `i32` in the current scope [INFO] [stdout] --> src/serialize.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | assert_eq!(0i32.to_bytes(), [0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `i32` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 53 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 56 - assert_eq!(0i32.to_bytes(), [0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] 56 + assert_eq!(0i32.to_be(), [0x00, 0x00, 0x00, 0x00]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `i32` in the current scope [INFO] [stdout] --> src/serialize.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | assert_eq!(1i32.to_bytes(), [0x01, 0x00, 0x00, 0x00]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `i32` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 53 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 57 - assert_eq!(1i32.to_bytes(), [0x01, 0x00, 0x00, 0x00]); [INFO] [stdout] 57 + assert_eq!(1i32.to_be(), [0x01, 0x00, 0x00, 0x00]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `i32` in the current scope [INFO] [stdout] --> src/serialize.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | assert_eq!((-1i32).to_bytes(), [0xff, 0xff, 0xff, 0xff]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `i32` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 53 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 58 - assert_eq!((-1i32).to_bytes(), [0xff, 0xff, 0xff, 0xff]); [INFO] [stdout] 58 + assert_eq!((-1i32).to_be(), [0xff, 0xff, 0xff, 0xff]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `i32` in the current scope [INFO] [stdout] --> src/serialize.rs:59:29 [INFO] [stdout] | [INFO] [stdout] 59 | assert_eq!(i32::max_value().to_bytes(), [0xff, 0xff, 0xff, 0x7f]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `i32` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 53 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 59 - assert_eq!(i32::max_value().to_bytes(), [0xff, 0xff, 0xff, 0x7f]); [INFO] [stdout] 59 + assert_eq!(i32::max_value().to_be(), [0xff, 0xff, 0xff, 0x7f]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `i32` in the current scope [INFO] [stdout] --> src/serialize.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | assert_eq!(i32::min_value().to_bytes(), [0x00, 0x00, 0x00, 0x80]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `i32` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 53 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 60 - assert_eq!(i32::min_value().to_bytes(), [0x00, 0x00, 0x00, 0x80]); [INFO] [stdout] 60 + assert_eq!(i32::min_value().to_be(), [0x00, 0x00, 0x00, 0x80]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/deserialize.rs - deserialize::[u8;16]::deserialize (line 224) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 225 | use gramme_types::Deserializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for array `[u8; 16]` in the current scope [INFO] [stdout] --> src/deserialize.rs:229:24 [INFO] [stdout] | [INFO] [stdout] 229 | assert_eq!(<[u8; 16]>::from_bytes(&data).unwrap(), data); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `[u8; 16]` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `to_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 224 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/deserialize.rs - deserialize::Deserializable::from_bytes (line 107) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | use gramme_types::Deserializable as _; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `bool` in the current scope [INFO] [stdout] --> src/deserialize.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | assert_eq!(bool::from_bytes(&[0x37, 0x97, 0x79, 0xbc]).unwrap(), false); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `bool` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `to_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/serialize.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 107 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::bool::serialize (line 33) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use gramme_types::Serializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `bool` in the current scope [INFO] [stdout] --> src/serialize.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(true.to_bytes(), [0xb5, 0x75, 0x72, 0x99]); [INFO] [stdout] | ^^^^^^^^ method not found in `bool` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `bool` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 33 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `bool` in the current scope [INFO] [stdout] --> src/serialize.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(false.to_bytes(), [0x37, 0x97, 0x79, 0xbc]); [INFO] [stdout] | ^^^^^^^^ method not found in `bool` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `bool` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 33 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::i64::serialize (line 96) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | use gramme_types::Serializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `i64` in the current scope [INFO] [stdout] --> src/serialize.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(0i64.to_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `i64` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 96 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 99 - assert_eq!(0i64.to_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]); [INFO] [stdout] 99 + assert_eq!(0i64.to_be(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `i64` in the current scope [INFO] [stdout] --> src/serialize.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | assert_eq!(1i64.to_bytes(), [0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `i64` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 96 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 100 - assert_eq!(1i64.to_bytes(), [0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]); [INFO] [stdout] 100 + assert_eq!(1i64.to_be(), [0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `i64` in the current scope [INFO] [stdout] --> src/serialize.rs:101:20 [INFO] [stdout] | [INFO] [stdout] 101 | assert_eq!((-1i64).to_bytes(), [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `i64` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 96 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 101 - assert_eq!((-1i64).to_bytes(), [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]); [INFO] [stdout] 101 + assert_eq!((-1i64).to_be(), [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `i64` in the current scope [INFO] [stdout] --> src/serialize.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | assert_eq!(i64::max_value().to_bytes(), [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `i64` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 96 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 102 - assert_eq!(i64::max_value().to_bytes(), [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f]); [INFO] [stdout] 102 + assert_eq!(i64::max_value().to_be(), [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `i64` in the current scope [INFO] [stdout] --> src/serialize.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | assert_eq!(i64::min_value().to_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `i64` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 96 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 103 - assert_eq!(i64::min_value().to_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80]); [INFO] [stdout] 103 + assert_eq!(i64::min_value().to_be(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::f64::serialize (line 157) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | use gramme_types::Serializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `f64` in the current scope [INFO] [stdout] --> src/serialize.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | assert_eq!(0f64.to_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `f64` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 157 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 161 | assert_eq!(0f64.to_be_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `f64` in the current scope [INFO] [stdout] --> src/serialize.rs:162:19 [INFO] [stdout] | [INFO] [stdout] 162 | assert_eq!(1.5f64.to_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf8, 0x3f]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `f64` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 157 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 162 | assert_eq!(1.5f64.to_be_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf8, 0x3f]); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `f64` in the current scope [INFO] [stdout] --> src/serialize.rs:163:22 [INFO] [stdout] | [INFO] [stdout] 163 | assert_eq!((-1.5f64).to_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf8, 0xbf]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `f64` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 157 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 163 | assert_eq!((-1.5f64).to_be_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf8, 0xbf]); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `f64` in the current scope [INFO] [stdout] --> src/serialize.rs:164:26 [INFO] [stdout] | [INFO] [stdout] 164 | assert_eq!(f64::INFINITY.to_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0x7f]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `f64` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 157 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 164 | assert_eq!(f64::INFINITY.to_be_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0x7f]); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type `f64` in the current scope [INFO] [stdout] --> src/serialize.rs:165:30 [INFO] [stdout] | [INFO] [stdout] 165 | assert_eq!(f64::NEG_INFINITY.to_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0xff]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `f64` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 157 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 165 | assert_eq!(f64::NEG_INFINITY.to_be_bytes(), [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0xff]); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/deserialize.rs - deserialize::u32::deserialize (line 177) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/deserialize.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | use gramme_types::Deserializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `u32` in the current scope [INFO] [stdout] --> src/deserialize.rs:180:17 [INFO] [stdout] | [INFO] [stdout] 180 | assert_eq!(u32::from_bytes(&[0x00, 0x00, 0x00, 0x00]).unwrap(), 0u32); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `u32` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 177 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 180 - assert_eq!(u32::from_bytes(&[0x00, 0x00, 0x00, 0x00]).unwrap(), 0u32); [INFO] [stdout] 180 + assert_eq!(u32::from_be(&[0x00, 0x00, 0x00, 0x00]).unwrap(), 0u32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `u32` in the current scope [INFO] [stdout] --> src/deserialize.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | assert_eq!(u32::from_bytes(&[0x01, 0x00, 0x00, 0x00]).unwrap(), 1u32); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `u32` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 177 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 181 - assert_eq!(u32::from_bytes(&[0x01, 0x00, 0x00, 0x00]).unwrap(), 1u32); [INFO] [stdout] 181 + assert_eq!(u32::from_be(&[0x01, 0x00, 0x00, 0x00]).unwrap(), 1u32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `u32` in the current scope [INFO] [stdout] --> src/deserialize.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | assert_eq!(u32::from_bytes(&[0xff, 0xff, 0xff, 0xff]).unwrap(), u32::max_value()); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `u32` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 177 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 182 - assert_eq!(u32::from_bytes(&[0xff, 0xff, 0xff, 0xff]).unwrap(), u32::max_value()); [INFO] [stdout] 182 + assert_eq!(u32::from_be(&[0xff, 0xff, 0xff, 0xff]).unwrap(), u32::max_value()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for type `u32` in the current scope [INFO] [stdout] --> src/deserialize.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | assert_eq!(u32::from_bytes(&[0x00, 0x00, 0x00, 0x00]).unwrap(), u32::min_value()); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `u32` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Deserializable` which provides `from_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 177 + use tl_types::Deserializable; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_be` with a similar name [INFO] [stdout] | [INFO] [stdout] 183 - assert_eq!(u32::from_bytes(&[0x00, 0x00, 0x00, 0x00]).unwrap(), u32::min_value()); [INFO] [stdout] 183 + assert_eq!(u32::from_be(&[0x00, 0x00, 0x00, 0x00]).unwrap(), u32::min_value()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/serialize.rs - serialize::[u8;32]::serialize (line 136) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gramme_types` [INFO] [stdout] --> src/serialize.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | use gramme_types::Serializable; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `gramme_types` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gramme_types`, use `cargo add gramme_types` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for array `[{integer}; 32]` in the current scope [INFO] [stdout] --> src/serialize.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | assert_eq!(data.to_bytes(), data); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/serialize.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn to_bytes(&self) -> Vec { [INFO] [stdout] | -------- the method is available for `[{integer}; 32]` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Serializable` which provides `to_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 136 + use tl_types::Serializable; [INFO] [stdout] | [INFO] [stdout] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 142 - assert_eq!(data.to_bytes(), data); [INFO] [stdout] 142 + assert_eq!(data.bytes(), data); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/deserialize.rs - deserialize::Deserializable::from_bytes (line 107) [INFO] [stdout] src/deserialize.rs - deserialize::String::deserialize (line 343) [INFO] [stdout] src/deserialize.rs - deserialize::Vec::deserialize (line 294) [INFO] [stdout] src/deserialize.rs - deserialize::Vec::deserialize (line 386) [INFO] [stdout] src/deserialize.rs - deserialize::[u8;16]::deserialize (line 224) [INFO] [stdout] src/deserialize.rs - deserialize::[u8;32]::deserialize (line 246) [INFO] [stdout] src/deserialize.rs - deserialize::bool::deserialize (line 128) [INFO] [stdout] src/deserialize.rs - deserialize::crate::RawVec::deserialize (line 320) [INFO] [stdout] src/deserialize.rs - deserialize::f64::deserialize (line 269) [INFO] [stdout] src/deserialize.rs - deserialize::i32::deserialize (line 153) [INFO] [stdout] src/deserialize.rs - deserialize::i64::deserialize (line 200) [INFO] [stdout] src/deserialize.rs - deserialize::u32::deserialize (line 177) [INFO] [stdout] src/serialize.rs - serialize::&'_[u8]::serialize (line 283) [INFO] [stdout] src/serialize.rs - serialize::String::serialize (line 222) [INFO] [stdout] src/serialize.rs - serialize::Vec::serialize (line 180) [INFO] [stdout] src/serialize.rs - serialize::Vec::serialize (line 265) [INFO] [stdout] src/serialize.rs - serialize::[u8;16]::serialize (line 117) [INFO] [stdout] src/serialize.rs - serialize::[u8;32]::serialize (line 136) [INFO] [stdout] src/serialize.rs - serialize::bool::serialize (line 33) [INFO] [stdout] src/serialize.rs - serialize::crate::RawVec::serialize (line 203) [INFO] [stdout] src/serialize.rs - serialize::f64::serialize (line 157) [INFO] [stdout] src/serialize.rs - serialize::i32::serialize (line 53) [INFO] [stdout] src/serialize.rs - serialize::i64::serialize (line 96) [INFO] [stdout] src/serialize.rs - serialize::u32::serialize (line 75) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 24 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.72s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "42010c9bd47b7e23e0e9966696dceef38ea71b92df761cc4eeeb5f5459e64376", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42010c9bd47b7e23e0e9966696dceef38ea71b92df761cc4eeeb5f5459e64376", kill_on_drop: false }` [INFO] [stdout] 42010c9bd47b7e23e0e9966696dceef38ea71b92df761cc4eeeb5f5459e64376