[INFO] fetching crate pact 0.3.0...
[INFO] testing pact-0.3.0 against nightly-2024-10-28+rustflags=-Zrandomize-layout for randomize-layout
[INFO] extracting crate pact 0.3.0 into /workspace/builds/worker-2-tc2/source
[INFO] validating manifest of crates.io crate pact 0.3.0 on toolchain nightly-2024-10-28
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate pact 0.3.0
[INFO] removed 0 missing tests
[INFO] finished tweaking crates.io crate pact 0.3.0
[INFO] tweaked toml for crates.io crate pact 0.3.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 41 packages to latest compatible versions
[INFO] [stderr]       Adding base64 v0.21.7 (available: v0.22.1)
[INFO] [stderr]       Adding logos v0.13.0 (available: v0.14.2)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 03976e68f98e6f78a087b87658f4396479600972e8798ad2249e22347f82a17e
[INFO] running `Command { std: "docker" "start" "-a" "03976e68f98e6f78a087b87658f4396479600972e8798ad2249e22347f82a17e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "03976e68f98e6f78a087b87658f4396479600972e8798ad2249e22347f82a17e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "03976e68f98e6f78a087b87658f4396479600972e8798ad2249e22347f82a17e", kill_on_drop: false }`
[INFO] [stdout] 03976e68f98e6f78a087b87658f4396479600972e8798ad2249e22347f82a17e
[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 -Zrandomize-layout" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6d456f9de75b9132d2a74a0c62ca69ab5a2ad0ef9638d5270a2717ccc49d888d
[INFO] running `Command { std: "docker" "start" "-a" "6d456f9de75b9132d2a74a0c62ca69ab5a2ad0ef9638d5270a2717ccc49d888d", kill_on_drop: false }`
[INFO] [stderr]    Compiling heck v0.5.0
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling syn v2.0.86
[INFO] [stderr]    Compiling snafu-derive v0.8.5
[INFO] [stderr]    Compiling snafu v0.8.5
[INFO] [stderr]    Compiling pact v0.3.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.91s
[INFO] running `Command { std: "docker" "inspect" "6d456f9de75b9132d2a74a0c62ca69ab5a2ad0ef9638d5270a2717ccc49d888d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6d456f9de75b9132d2a74a0c62ca69ab5a2ad0ef9638d5270a2717ccc49d888d", kill_on_drop: false }`
[INFO] [stdout] 6d456f9de75b9132d2a74a0c62ca69ab5a2ad0ef9638d5270a2717ccc49d888d
[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 -Zrandomize-layout" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 495762866b79b611f1e872dcb338203f5f4820939b03cef01f6f328da9913483
[INFO] running `Command { std: "docker" "start" "-a" "495762866b79b611f1e872dcb338203f5f4820939b03cef01f6f328da9913483", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.161
[INFO] [stderr]    Compiling adler2 v2.0.0
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]    Compiling gimli v0.31.1
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling rustc-demangle v0.1.24
[INFO] [stderr]    Compiling diff v0.1.13
[INFO] [stderr]    Compiling yansi v1.0.1
[INFO] [stderr]    Compiling miniz_oxide v0.8.0
[INFO] [stderr]    Compiling pretty_assertions v1.4.1
[INFO] [stderr]    Compiling object v0.36.5
[INFO] [stderr]    Compiling addr2line v0.24.2
[INFO] [stderr]    Compiling backtrace v0.3.74
[INFO] [stderr]    Compiling snafu v0.8.5
[INFO] [stderr]    Compiling pact v0.3.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved imports `pact::data::value`, `pact::test`
[INFO] [stdout]   --> tests/dynamic.rs:3:11
[INFO] [stdout]    |
[INFO] [stdout] 3  |     data::value::{DataValue, ListValue, Value},
[INFO] [stdout]    |           ^^^^^ could not find `value` in `data`
[INFO] [stdout] 4  |     spec::Type,
[INFO] [stdout] 5  |     test::{NestedTestData, TestData},
[INFO] [stdout]    |     ^^^^ could not find `test` in `pact`
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> /opt/rustwide/workdir/src/data.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub mod value;
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] note: the item is gated here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/data.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[cfg(any(feature = "dynamic", test))]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> /opt/rustwide/workdir/src/lib.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub mod test;
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] note: the item is gated here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/lib.rs:12:1
[INFO] [stdout]    |
[INFO] [stdout] 12 | #[cfg(any(feature = "test", test))]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `serde_json`
[INFO] [stdout]  --> tests/dynamic.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::json;
[INFO] [stdout]   |     ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Decodable`
[INFO] [stdout]  --> tests/dynamic.rs:2:25
[INFO] [stdout]   |
[INFO] [stdout] 2 |     codec::{CodecError, Decodable, Encodable, ReadsDecodable, WritesEncodable},
[INFO] [stdout]   |                         ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `TcpStream: ReadsDecodable` is not satisfied
[INFO] [stdout]   --> tests/codec.rs:42:54
[INFO] [stdout]    |
[INFO] [stdout] 42 |         let mut request_data = TestData::decode_from(&mut socket)?;
[INFO] [stdout]    |                                --------------------- ^^^^^^^^^^^ the trait `Reads` is not implemented for `TcpStream`, which is required by `TcpStream: ReadsDecodable`
[INFO] [stdout]    |                                |
[INFO] [stdout]    |                                required by a bound introduced by this call
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Reads` is implemented for `&[u8]`
[INFO] [stdout]    = note: required for `TcpStream` to implement `ReadsDecodable`
[INFO] [stdout] note: required by a bound in `decode_from`
[INFO] [stdout]   --> /opt/rustwide/workdir/src/codec/decode.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |     fn decode_from(reader: &mut (impl ReadsDecodable + ?Sized)) -> Result<Self, CodecError>
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^^ required by this bound in `Decodable::decode_from`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `logos`
[INFO] [stdout]  --> src/spec/markdown/parse.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use logos::{Lexer, Logos};
[INFO] [stdout]   |     ^^^^^ use of undeclared crate or module `logos`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `logos`
[INFO] [stdout]  --> src/spec/markdown/token.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use logos::{Logos, Span};
[INFO] [stdout]   |     ^^^^^ use of undeclared crate or module `logos`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `pact` (test "dynamic") due to 2 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0599]: the method `write_data` exists for struct `TcpStream`, but its trait bounds were not satisfied
[INFO] [stdout]   --> tests/codec.rs:50:16
[INFO] [stdout]    |
[INFO] [stdout] 50 |         socket.write_data(&request_data)?;
[INFO] [stdout]    |                ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the following trait bounds were not satisfied:
[INFO] [stdout]            `TcpStream: Writes`
[INFO] [stdout]            which is required by `TcpStream: WritesEncodable`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: the method `write_data` exists for struct `TcpStream`, but its trait bounds were not satisfied
[INFO] [stdout]   --> tests/codec.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 |     client.write_data(&request_data)?;
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the following trait bounds were not satisfied:
[INFO] [stdout]            `TcpStream: Writes`
[INFO] [stdout]            which is required by `TcpStream: WritesEncodable`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `TcpStream: ReadsDecodable` is not satisfied
[INFO] [stdout]   --> tests/codec.rs:61:47
[INFO] [stdout]    |
[INFO] [stdout] 61 |     let response_data = TestData::decode_from(&mut client)?;
[INFO] [stdout]    |                         --------------------- ^^^^^^^^^^^ the trait `Reads` is not implemented for `TcpStream`, which is required by `TcpStream: ReadsDecodable`
[INFO] [stdout]    |                         |
[INFO] [stdout]    |                         required by a bound introduced by this call
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Reads` is implemented for `&[u8]`
[INFO] [stdout]    = note: required for `TcpStream` to implement `ReadsDecodable`
[INFO] [stdout] note: required by a bound in `decode_from`
[INFO] [stdout]   --> /opt/rustwide/workdir/src/codec/decode.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |     fn decode_from(reader: &mut (impl ReadsDecodable + ?Sized)) -> Result<Self, CodecError>
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^^ required by this bound in `Decodable::decode_from`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `logos` in this scope
[INFO] [stdout]   --> src/spec/markdown/token.rs:13:3
[INFO] [stdout]    |
[INFO] [stdout] 13 | #[logos(subpattern space = r"[^\S\r\n]")]
[INFO] [stdout]    |   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `logos` in this scope
[INFO] [stdout]   --> src/spec/markdown/token.rs:14:3
[INFO] [stdout]    |
[INFO] [stdout] 14 | #[logos(subpattern linebreak = r"[\r\n|\r|\n]+")]
[INFO] [stdout]    |   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `logos` in this scope
[INFO] [stdout]   --> src/spec/markdown/token.rs:15:3
[INFO] [stdout]    |
[INFO] [stdout] 15 | #[logos(subpattern to_end_of_line = r"[^\r\n]*")]
[INFO] [stdout]    |   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `logos` in this scope
[INFO] [stdout]   --> src/spec/markdown/token.rs:16:3
[INFO] [stdout]    |
[INFO] [stdout] 16 | #[logos(subpattern pact_id = r"[\\/:.a-zA-Z0-9_-]+")]
[INFO] [stdout]    |   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `logos` in this scope
[INFO] [stdout]   --> src/spec/markdown/token.rs:17:3
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[logos(subpattern data_id = r"[\\:a-zA-Z0-9_-]+")]
[INFO] [stdout]    |   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `logos` in this scope
[INFO] [stdout]   --> src/spec/markdown/token.rs:18:3
[INFO] [stdout]    |
[INFO] [stdout] 18 | #[logos(subpattern field_id = r"[a-zA-Z0-9_-]+")]
[INFO] [stdout]    |   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `regex` in this scope
[INFO] [stdout]   --> src/spec/markdown/token.rs:25:7
[INFO] [stdout]    |
[INFO] [stdout] 25 |     #[regex(r"[\r\n|\r|\n]*#(?&space)`(?&pact_id)`(?&space)(?i)(pact)", |lex| {
[INFO] [stdout]    |       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `regex` in this scope
[INFO] [stdout]   --> src/spec/markdown/token.rs:47:7
[INFO] [stdout]    |
[INFO] [stdout] 47 |     #[regex(r"(?&linebreak)##(?&space)`(?&data_id)`(?&space)(?i)(data)", |lex| {
[INFO] [stdout]    |       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `regex` in this scope
[INFO] [stdout]   --> src/spec/markdown/token.rs:77:7
[INFO] [stdout]    |
[INFO] [stdout] 77 |     #[regex(r"(?&linebreak)\+(?&space)`(?&field_id)`(?&space)(?i)(optional |list of )*(?&data_id)", |lex| {
[INFO] [stdout]    |       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `pact` (test "codec") due to 4 previous errors
[INFO] [stdout] error: cannot find attribute `regex` in this scope
[INFO] [stdout]    --> src/spec/markdown/token.rs:110:7
[INFO] [stdout]     |
[INFO] [stdout] 110 |     #[regex(r"(?&linebreak)\+(?&space)`(?&field_id)`(?&space)(?i)(optional |list of )*\[`(?&data_id)`\]\([^)]*\)", |lex| {
[INFO] [stdout]     |       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `regex` in this scope
[INFO] [stdout]    --> src/spec/markdown/token.rs:147:7
[INFO] [stdout]     |
[INFO] [stdout] 147 |     #[regex(r"(?&linebreak)(?&to_end_of_line)", |lex| {
[INFO] [stdout]     |       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:355:29
[INFO] [stdout]     |
[INFO] [stdout] 355 |             Value::U8(f) => serde_json::Value::from(*f),
[INFO] [stdout]     |                             ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:356:29
[INFO] [stdout]     |
[INFO] [stdout] 356 |             Value::I8(f) => serde_json::Value::from(*f),
[INFO] [stdout]     |                             ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:357:30
[INFO] [stdout]     |
[INFO] [stdout] 357 |             Value::U16(f) => serde_json::Value::from(*f),
[INFO] [stdout]     |                              ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:358:30
[INFO] [stdout]     |
[INFO] [stdout] 358 |             Value::I16(f) => serde_json::Value::from(*f),
[INFO] [stdout]     |                              ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:359:30
[INFO] [stdout]     |
[INFO] [stdout] 359 |             Value::U32(f) => serde_json::Value::from(*f),
[INFO] [stdout]     |                              ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:360:30
[INFO] [stdout]     |
[INFO] [stdout] 360 |             Value::I32(f) => serde_json::Value::from(*f),
[INFO] [stdout]     |                              ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:361:30
[INFO] [stdout]     |
[INFO] [stdout] 361 |             Value::U64(f) => serde_json::Value::from(*f),
[INFO] [stdout]     |                              ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:362:30
[INFO] [stdout]     |
[INFO] [stdout] 362 |             Value::I64(f) => serde_json::Value::from(*f),
[INFO] [stdout]     |                              ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:363:30
[INFO] [stdout]     |
[INFO] [stdout] 363 |             Value::F32(f) => serde_json::Value::from(*f),
[INFO] [stdout]     |                              ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:364:30
[INFO] [stdout]     |
[INFO] [stdout] 364 |             Value::F64(f) => serde_json::Value::from(*f),
[INFO] [stdout]     |                              ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:365:31
[INFO] [stdout]     |
[INFO] [stdout] 365 |             Value::Bool(f) => serde_json::Value::from(*f),
[INFO] [stdout]     |                               ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:366:31
[INFO] [stdout]     |
[INFO] [stdout] 366 |             Value::Text(f) => serde_json::Value::from(f.as_str()),
[INFO] [stdout]     |                               ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:381:17
[INFO] [stdout]     |
[INFO] [stdout] 381 |                 serde_json::Value::Object(map)
[INFO] [stdout]     |                 ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:390:17
[INFO] [stdout]     |
[INFO] [stdout] 390 |                 serde_json::Value::Array(list)
[INFO] [stdout]     |                 ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:368:31
[INFO] [stdout]     |
[INFO] [stdout] 368 |                 let mut map = serde_json::Map::new();
[INFO] [stdout]     |                               ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 4   + use std::iter::Map;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Map`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 368 -                 let mut map = serde_json::Map::new();
[INFO] [stdout] 368 +                 let mut map = Map::new();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::ops::Range`
[INFO] [stdout]  --> src/spec/markdown/token.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use core::ops::Range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `lexer` found for enum `token::Token` in the current scope
[INFO] [stdout]   --> src/spec/markdown/parse.rs:21:27
[INFO] [stdout]    |
[INFO] [stdout] 21 |             lexer: Token::lexer(text).peekable(),
[INFO] [stdout]    |                           ^^^^^ variant or associated item not found in `Token<'_>`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/spec/markdown/token.rs:19:1
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum Token<'a> {
[INFO] [stdout]    | ------------------ variant or associated item `lexer` not found for this enum
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0614]: type `usize` cannot be dereferenced
[INFO] [stdout]    --> src/spec/markdown/parse.rs:134:46
[INFO] [stdout]     |
[INFO] [stdout] 134 |                         leading_whitespace = *line_whitespace;
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: can't compare `str` with `&str`
[INFO] [stdout]    --> src/spec/markdown/parse.rs:140:29
[INFO] [stdout]     |
[INFO] [stdout] 140 |                     if line == &"\n" || line == &"\r" || *line_whitespace >= leading_whitespace {
[INFO] [stdout]     |                             ^^ no implementation for `str == &str`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `PartialEq<&str>` is not implemented for `str`, which is required by `&str: PartialEq<&&str>`
[INFO] [stdout]     = note: required for `&str` to implement `PartialEq<&&str>`
[INFO] [stdout] help: consider removing the borrow
[INFO] [stdout]     |
[INFO] [stdout] 140 -                     if line == &"\n" || line == &"\r" || *line_whitespace >= leading_whitespace {
[INFO] [stdout] 140 +                     if line == "\n" || line == &"\r" || *line_whitespace >= leading_whitespace {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0614]: type `usize` cannot be dereferenced
[INFO] [stdout]    --> src/spec/markdown/parse.rs:140:58
[INFO] [stdout]     |
[INFO] [stdout] 140 |                     if line == &"\n" || line == &"\r" || *line_whitespace >= leading_whitespace {
[INFO] [stdout]     |                                                          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: can't compare `str` with `&str`
[INFO] [stdout]    --> src/spec/markdown/parse.rs:140:46
[INFO] [stdout]     |
[INFO] [stdout] 140 |                     if line == &"\n" || line == &"\r" || *line_whitespace >= leading_whitespace {
[INFO] [stdout]     |                                              ^^ no implementation for `str == &str`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `PartialEq<&str>` is not implemented for `str`, which is required by `&str: PartialEq<&&str>`
[INFO] [stdout]     = note: required for `&str` to implement `PartialEq<&&str>`
[INFO] [stdout] help: consider removing the borrow
[INFO] [stdout]     |
[INFO] [stdout] 140 -                     if line == &"\n" || line == &"\r" || *line_whitespace >= leading_whitespace {
[INFO] [stdout] 140 +                     if line == &"\n" || line == "\r" || *line_whitespace >= leading_whitespace {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `lexer` found for enum `token::Token` in the current scope
[INFO] [stdout]    --> src/spec/markdown/token.rs:179:32
[INFO] [stdout]     |
[INFO] [stdout] 19  | pub enum Token<'a> {
[INFO] [stdout]     | ------------------ variant or associated item `lexer` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 179 |         let mut lexer = Token::lexer(SAMPLE_MARKDOWN);
[INFO] [stdout]     |                                ^^^^^ variant or associated item not found in `Token<'_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:353:30
[INFO] [stdout]     |
[INFO] [stdout] 353 |     pub fn to_json(&self) -> serde_json::Value {
[INFO] [stdout]     |                              ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]    --> src/data/value.rs:397:43
[INFO] [stdout]     |
[INFO] [stdout] 397 |     pub fn from_json(&mut self, mut json: serde_json::Value) {
[INFO] [stdout]     |                                           ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0599, E0614.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `pact` (lib test) due to 36 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "495762866b79b611f1e872dcb338203f5f4820939b03cef01f6f328da9913483", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "495762866b79b611f1e872dcb338203f5f4820939b03cef01f6f328da9913483", kill_on_drop: false }`
[INFO] [stdout] 495762866b79b611f1e872dcb338203f5f4820939b03cef01f6f328da9913483
