[INFO] fetching crate dataparser_core 0.1.0... [INFO] testing dataparser_core-0.1.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate dataparser_core 0.1.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate dataparser_core 0.1.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate dataparser_core 0.1.0 [INFO] tweaked toml for crates.io crate dataparser_core 0.1.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate dataparser_core 0.1.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate dataparser_core 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `edition` is set on library `dataparser_core` which is deprecated [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a22a1c59504abb163d9a564fad70093521e70217a2364467599051a0687d859 [INFO] running `Command { std: "docker" "start" "-a" "2a22a1c59504abb163d9a564fad70093521e70217a2364467599051a0687d859", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a22a1c59504abb163d9a564fad70093521e70217a2364467599051a0687d859", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a22a1c59504abb163d9a564fad70093521e70217a2364467599051a0687d859", kill_on_drop: false }` [INFO] [stdout] 2a22a1c59504abb163d9a564fad70093521e70217a2364467599051a0687d859 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94a6454c4fcb30690f6edc9bd91f45d6c7a4a024dd9bd224e4ff476e3d03507b [INFO] running `Command { std: "docker" "start" "-a" "94a6454c4fcb30690f6edc9bd91f45d6c7a4a024dd9bd224e4ff476e3d03507b", kill_on_drop: false }` [INFO] [stderr] warning: `edition` is set on library `dataparser_core` which is deprecated [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling dataparser_core v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.86s [INFO] running `Command { std: "docker" "inspect" "94a6454c4fcb30690f6edc9bd91f45d6c7a4a024dd9bd224e4ff476e3d03507b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94a6454c4fcb30690f6edc9bd91f45d6c7a4a024dd9bd224e4ff476e3d03507b", kill_on_drop: false }` [INFO] [stdout] 94a6454c4fcb30690f6edc9bd91f45d6c7a4a024dd9bd224e4ff476e3d03507b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c6e78680152bbd6dce4bff37e5fbe7247ee58a224815fc1f5807b10b17d7b9d7 [INFO] running `Command { std: "docker" "start" "-a" "c6e78680152bbd6dce4bff37e5fbe7247ee58a224815fc1f5807b10b17d7b9d7", kill_on_drop: false }` [INFO] [stderr] warning: `edition` is set on library `dataparser_core` which is deprecated [INFO] [stderr] Compiling dataparser_core v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.01s [INFO] running `Command { std: "docker" "inspect" "c6e78680152bbd6dce4bff37e5fbe7247ee58a224815fc1f5807b10b17d7b9d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6e78680152bbd6dce4bff37e5fbe7247ee58a224815fc1f5807b10b17d7b9d7", kill_on_drop: false }` [INFO] [stdout] c6e78680152bbd6dce4bff37e5fbe7247ee58a224815fc1f5807b10b17d7b9d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2373bf57df438c725c3acea0b7c45d7ff2b35958adab851ec96653d70393c4cd [INFO] running `Command { std: "docker" "start" "-a" "2373bf57df438c725c3acea0b7c45d7ff2b35958adab851ec96653d70393c4cd", kill_on_drop: false }` [INFO] [stderr] warning: `edition` is set on library `dataparser_core` which is deprecated [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/dataparser_core-79652502931a8c3b) [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 dataparser_core [INFO] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test src/lib.rs - (line 16) ... FAILED [INFO] [stdout] test src/encoder/helpers.rs - encoder::helpers::DataEncoder::add_string (line 12) ... FAILED [INFO] [stdout] test src/options.rs - options::ParseOptions (line 44) ... FAILED [INFO] [stdout] test src/options.rs - options (line 19) ... FAILED [INFO] [stdout] test src/parser/buffer.rs - parser::buffer::Buffer (line 10) ... FAILED [INFO] [stdout] test src/options.rs - options::EncodingOptions (line 181) ... FAILED [INFO] [stdout] test src/encoder/core.rs - encoder::core (line 18) ... FAILED [INFO] [stdout] test src/encoder/helpers.rs - encoder::helpers::Encodable (line 38) ... FAILED [INFO] [stdout] test src/parser/strings.rs - parser::strings::DataParser<'_>::get_string (line 103) ... FAILED [INFO] [stdout] test src/parser/core.rs - parser::core::DataParser (line 15) ... FAILED [INFO] [stdout] test src/parser/combinators.rs - parser::combinators::DataParser<'_>::parse_with (line 117) ... FAILED [INFO] [stdout] test src/parser/readers/sync_reader/combinators.rs - parser::readers::sync_reader::combinators::DataReader::parse_with_length_prefix (line 26) ... FAILED [INFO] [stdout] test src/parser/strings.rs - parser::strings::DataParser<'_>::get_string (line 113) ... FAILED [INFO] [stdout] test src/parser/combinators.rs - parser::combinators::delim_extract (line 14) ... ok [INFO] [stdout] test src/parser/readers/sync_reader/core.rs - parser::readers::sync_reader::core::DataReader (line 13) ... FAILED [INFO] [stdout] test src/utils.rs - utils::EndianDeserialize (line 68) ... FAILED [INFO] [stdout] test src/utils.rs - utils::Endianness (line 26) ... FAILED [INFO] [stdout] test src/utils.rs - utils::ParseResult (line 9) ... FAILED [INFO] [stdout] test src/parser/readers/sync_reader/helpers.rs - parser::readers::sync_reader::helpers::StreamDecodable (line 71) - compile ... FAILED [INFO] [stdout] test src/utils.rs - utils::EndianSerialize (line 51) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 16) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `libparser` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 3 | use libparser::{DataEncoder, DataParser, Encodable, Decodable, ParseResult}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `libparser` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `libparser`, use `cargo add libparser` 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/encoder/helpers.rs - encoder::helpers::DataEncoder::add_string (line 12) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `encoder` in this scope [INFO] [stdout] --> src/encoder/helpers.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 3 | encoder.add_string("hello")?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/options.rs - options::ParseOptions (line 44) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ParseOptions` [INFO] [stdout] --> src/options.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 3 | let options = ParseOptions::default() [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ParseOptions` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::ParseOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/options.rs - options (line 19) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libparser` [INFO] [stdout] --> src/options.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 3 | use libparser::options::ParseOptions; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `libparser` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `libparser`, use `cargo add libparser` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libparser` [INFO] [stdout] --> src/options.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 4 | use libparser::utils::Endianness; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `libparser` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `libparser`, use `cargo add libparser` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/parser/buffer.rs - parser::buffer::Buffer (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Buffer` [INFO] [stdout] --> src/parser/buffer.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 4 | let buf = Buffer::from(&mut scratch[..]); // Borrowed [INFO] [stdout] | ^^^^^^ use of undeclared type `Buffer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::parser::buffer::Buffer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Buffer` [INFO] [stdout] --> src/parser/buffer.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 5 | let buf = Buffer::from(vec![0u8; 32]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Buffer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::parser::buffer::Buffer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/options.rs - options::EncodingOptions (line 181) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EncodingOptions` [INFO] [stdout] --> src/options.rs:182:15 [INFO] [stdout] | [INFO] [stdout] 3 | let options = EncodingOptions::default().with_prepended_data_size().with_endianness(Endianness::LittleEndian); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `EncodingOptions` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::EncodingOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Endianness` [INFO] [stdout] --> src/options.rs:182:85 [INFO] [stdout] | [INFO] [stdout] 3 | let options = EncodingOptions::default().with_prepended_data_size().with_endianness(Endianness::LittleEndian); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Endianness` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::Endianness; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/encoder/core.rs - encoder::core (line 18) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libparser` [INFO] [stdout] --> src/encoder/core.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 3 | use libparser::encoder::DataEncoder; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `libparser` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `libparser`, use `cargo add libparser` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libparser` [INFO] [stdout] --> src/encoder/core.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 4 | use libparser::Encodable; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `libparser` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `libparser`, use `cargo add libparser` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libparser` [INFO] [stdout] --> src/encoder/core.rs:29:68 [INFO] [stdout] | [INFO] [stdout] 13 | fn encode_data(&self, encoder: &mut DataEncoder) -> Result<(), libparser::errors::DataParseError> { [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `libparser` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `libparser`, use `cargo add libparser` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::errors; [INFO] [stdout] | [INFO] [stdout] help: if you import `errors`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 13 - fn encode_data(&self, encoder: &mut DataEncoder) -> Result<(), libparser::errors::DataParseError> { [INFO] [stdout] 13 + fn encode_data(&self, encoder: &mut DataEncoder) -> Result<(), errors::DataParseError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/encoder/helpers.rs - encoder::helpers::Encodable (line 38) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `Encodable` in this scope [INFO] [stdout] --> src/encoder/helpers.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Encodable for MyData { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::Encodable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DataEncoder` in this scope [INFO] [stdout] --> src/encoder/helpers.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 9 | fn encode_data(&self, encoder: &mut DataEncoder) -> ParseResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::DataEncoder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ParseResult` in this scope [INFO] [stdout] --> src/encoder/helpers.rs:45:57 [INFO] [stdout] | [INFO] [stdout] 9 | fn encode_data(&self, encoder: &mut DataEncoder) -> ParseResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::ParseResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/parser/strings.rs - parser::strings::DataParser<'_>::get_string (line 103) stdout ---- [INFO] [stdout] error: expected item, found `[` [INFO] [stdout] --> src/parser/strings.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 1 | [length: u32][string_bytes...] [INFO] [stdout] | ^ expected item [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/parser/core.rs - parser::core::DataParser (line 15) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `Buffer<'_>: From<&[{integer}; 3]>` is not satisfied [INFO] [stdout] --> src/parser/core.rs:19:34 [INFO] [stdout] | [INFO] [stdout] 7 | let mut parser = DataParser::new(data); [INFO] [stdout] | --------------- ^^^^ the trait `From<&[{integer}; 3]>` is not implemented for `Buffer<'_>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `Buffer<'_>` implements `From<&mut Vec>` [INFO] [stdout] `Buffer<'_>` implements `From<&mut [u8]>` [INFO] [stdout] `Buffer<'_>` implements `From>` [INFO] [stdout] = note: required for `&[{integer}; 3]` to implement `Into>` [INFO] [stdout] note: required by a bound in `DataParser::<'a>::new` [INFO] [stdout] --> /opt/rustwide/workdir/src/parser/core.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn new>>(buffer: B) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `DataParser::<'a>::new` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/parser/combinators.rs - parser::combinators::DataParser<'_>::parse_with (line 117) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `parser` in this scope [INFO] [stdout] --> src/parser/combinators.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 3 | let result = parser.parse_with(my_parser_fn)?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `my_parser_fn` in this scope [INFO] [stdout] --> src/parser/combinators.rs:118:32 [INFO] [stdout] | [INFO] [stdout] 3 | let result = parser.parse_with(my_parser_fn)?; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/parser/readers/sync_reader/combinators.rs - parser::readers::sync_reader::combinators::DataReader::parse_with_length_prefix (line 26) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `input_bytes` in this scope [INFO] [stdout] --> src/parser/readers/sync_reader/combinators.rs:29:55 [INFO] [stdout] | [INFO] [stdout] 6 | let mut reader = DataReader::new(std::io::Cursor::new(input_bytes)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyStruct` [INFO] [stdout] --> src/parser/readers/sync_reader/combinators.rs:30:55 [INFO] [stdout] | [INFO] [stdout] 7 | let my_struct = reader.parse_with_length_prefix(|sub| MyStruct::from_stream_parser(sub))?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `MyStruct` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/parser/strings.rs - parser::strings::DataParser<'_>::get_string (line 113) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataParser` [INFO] [stdout] --> src/parser/strings.rs:114:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut parser = DataParser::new(Cursor::new(vec![0x05, 0x00, 0x00, 0x00, b'H', b'e', b'l', b'l', b'o'])); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `DataParser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::DataParser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cursor` [INFO] [stdout] --> src/parser/strings.rs:114:34 [INFO] [stdout] | [INFO] [stdout] 3 | let mut parser = DataParser::new(Cursor::new(vec![0x05, 0x00, 0x00, 0x00, b'H', b'e', b'l', b'l', b'o'])); [INFO] [stdout] | ^^^^^^ use of undeclared type `Cursor` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/parser/readers/sync_reader/core.rs - parser::readers::sync_reader::core::DataReader (line 13) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `dataparser_core::parser::core::DataReader` [INFO] [stdout] --> src/parser/readers/sync_reader/core.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 6 | use dataparser_core::parser::core::DataReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `DataReader` in `parser::core` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 6 | use dataparser_core::parser::readers::sync_reader::core::DataReader; [INFO] [stdout] | ++++++++++++++++++++++ [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/utils.rs - utils::EndianDeserialize (line 68) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `EndianDeserialize` in this scope [INFO] [stdout] --> src/utils.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 4 | let value = ::from_endian_bytes(&bytes, Endianness::LittleEndian); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::utils::EndianDeserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Endianness` [INFO] [stdout] --> src/utils.rs:70:67 [INFO] [stdout] | [INFO] [stdout] 4 | let value = ::from_endian_bytes(&bytes, Endianness::LittleEndian); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Endianness` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::Endianness; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::Endianness (line 26) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Endianness` [INFO] [stdout] --> src/utils.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 3 | let endianness = Endianness::LittleEndian; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Endianness` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::Endianness; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_endian_bytes` found for type `u32` in the current scope [INFO] [stdout] --> src/utils.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 4 | let bytes = 42u32.to_endian_bytes(&endianness); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/utils.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | fn to_endian_bytes(self, endianness: &Endianness) -> 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: there is a method `to_ne_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/num/mod.rs:1128:5 [INFO] [stdout] = note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: trait `EndianSerialize` which provides `to_endian_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::utils::EndianSerialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::ParseResult (line 9) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/utils.rs:10:50 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_u32(input: &[u8]) -> ParseResult { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 3 - fn parse_u32(input: &[u8]) -> ParseResult { ... } [INFO] [stdout] 3 + fn parse_u32(input: &[u8]) -> ParseResult { .. } [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 3 - fn parse_u32(input: &[u8]) -> ParseResult { ... } [INFO] [stdout] 3 + fn parse_u32(input: &[u8]) -> ParseResult { ..= } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/utils.rs:10:50 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_u32(input: &[u8]) -> ParseResult { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 3 - fn parse_u32(input: &[u8]) -> ParseResult { ... } [INFO] [stdout] 3 + fn parse_u32(input: &[u8]) -> ParseResult { .. } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ParseResult` in this scope [INFO] [stdout] --> src/utils.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_u32(input: &[u8]) -> ParseResult { ... } [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::ParseResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/parser/readers/sync_reader/helpers.rs - parser::readers::sync_reader::helpers::StreamDecodable (line 71) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `DataReader` in the crate root [INFO] [stdout] --> src/parser/readers/sync_reader/helpers.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 6 | let mut reader = crate::DataReader::new(std::io::Cursor::new(vec![0x2A])); [INFO] [stdout] | ^^^^^^^^^^ could not find `DataReader` in the crate root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use dataparser_core::parser::readers::sync_reader::core::DataReader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DataReader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 6 - let mut reader = crate::DataReader::new(std::io::Cursor::new(vec![0x2A])); [INFO] [stdout] 6 + let mut reader = DataReader::new(std::io::Cursor::new(vec![0x2A])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::EndianSerialize (line 51) stdout ---- [INFO] [stdout] error[E0599]: no method named `to_endian_bytes` found for type `u32` in the current scope [INFO] [stdout] --> src/utils.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 7 | let bytes = n.to_endian_bytes(&Endianness::LittleEndian); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/utils.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | fn to_endian_bytes(self, endianness: &Endianness) -> 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: there is a method `to_ne_bytes` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/num/mod.rs:1128:5 [INFO] [stdout] = note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: trait `EndianSerialize` which provides `to_endian_bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dataparser_core::utils::EndianSerialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/encoder/core.rs - encoder::core (line 18) [INFO] [stdout] src/encoder/helpers.rs - encoder::helpers::DataEncoder::add_string (line 12) [INFO] [stdout] src/encoder/helpers.rs - encoder::helpers::Encodable (line 38) [INFO] [stdout] src/lib.rs - (line 16) [INFO] [stdout] src/options.rs - options (line 19) [INFO] [stdout] src/options.rs - options::EncodingOptions (line 181) [INFO] [stdout] src/options.rs - options::ParseOptions (line 44) [INFO] [stdout] src/parser/buffer.rs - parser::buffer::Buffer (line 10) [INFO] [stdout] src/parser/combinators.rs - parser::combinators::DataParser<'_>::parse_with (line 117) [INFO] [stdout] src/parser/core.rs - parser::core::DataParser (line 15) [INFO] [stdout] src/parser/readers/sync_reader/combinators.rs - parser::readers::sync_reader::combinators::DataReader::parse_with_length_prefix (line 26) [INFO] [stdout] src/parser/readers/sync_reader/core.rs - parser::readers::sync_reader::core::DataReader (line 13) [INFO] [stdout] src/parser/readers/sync_reader/helpers.rs - parser::readers::sync_reader::helpers::StreamDecodable (line 71) [INFO] [stdout] src/parser/strings.rs - parser::strings::DataParser<'_>::get_string (line 103) [INFO] [stdout] src/parser/strings.rs - parser::strings::DataParser<'_>::get_string (line 113) [INFO] [stdout] src/utils.rs - utils::EndianDeserialize (line 68) [INFO] [stdout] src/utils.rs - utils::EndianSerialize (line 51) [INFO] [stdout] src/utils.rs - utils::Endianness (line 26) [INFO] [stdout] src/utils.rs - utils::ParseResult (line 9) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 19 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.91s [INFO] [stdout] [INFO] [stdout] all doctests ran in 1.10s; merged doctests compilation took 0.19s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "2373bf57df438c725c3acea0b7c45d7ff2b35958adab851ec96653d70393c4cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2373bf57df438c725c3acea0b7c45d7ff2b35958adab851ec96653d70393c4cd", kill_on_drop: false }` [INFO] [stdout] 2373bf57df438c725c3acea0b7c45d7ff2b35958adab851ec96653d70393c4cd