[INFO] fetching crate cookie_parser 1.0.1... [INFO] testing cookie_parser-1.0.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate cookie_parser 1.0.1 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate cookie_parser 1.0.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate cookie_parser 1.0.1 [INFO] tweaked toml for crates.io crate cookie_parser 1.0.1 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate cookie_parser 1.0.1 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 cookie_parser 1.0.1 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] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 0e504c1cec6db2b60926615d61884a2811c060fe303e22ee4eabfb91b305a625 [INFO] running `Command { std: "docker" "start" "-a" "0e504c1cec6db2b60926615d61884a2811c060fe303e22ee4eabfb91b305a625", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0e504c1cec6db2b60926615d61884a2811c060fe303e22ee4eabfb91b305a625", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e504c1cec6db2b60926615d61884a2811c060fe303e22ee4eabfb91b305a625", kill_on_drop: false }` [INFO] [stdout] 0e504c1cec6db2b60926615d61884a2811c060fe303e22ee4eabfb91b305a625 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] d0f14094dfdd0db340c00a2f77791b86e95814cb57eada4fc526a33a34b6dc26 [INFO] running `Command { std: "docker" "start" "-a" "d0f14094dfdd0db340c00a2f77791b86e95814cb57eada4fc526a33a34b6dc26", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling thiserror v2.0.3 [INFO] [stderr] Compiling clap_lex v0.7.3 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling clap_builder v4.5.21 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.3 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling pest v2.7.14 [INFO] [stderr] Compiling clap v4.5.21 [INFO] [stderr] Compiling pest_meta v2.7.14 [INFO] [stderr] Compiling pest_generator v2.7.14 [INFO] [stderr] Compiling pest_derive v2.7.14 [INFO] [stderr] Compiling cookie_parser v1.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.15s [INFO] running `Command { std: "docker" "inspect" "d0f14094dfdd0db340c00a2f77791b86e95814cb57eada4fc526a33a34b6dc26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0f14094dfdd0db340c00a2f77791b86e95814cb57eada4fc526a33a34b6dc26", kill_on_drop: false }` [INFO] [stdout] d0f14094dfdd0db340c00a2f77791b86e95814cb57eada4fc526a33a34b6dc26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 0c11cbc3029d4de12768723942f9a053382f6a78477289355dc958b5f4d158b4 [INFO] running `Command { std: "docker" "start" "-a" "0c11cbc3029d4de12768723942f9a053382f6a78477289355dc958b5f4d158b4", kill_on_drop: false }` [INFO] [stderr] Compiling cookie_parser v1.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.98s [INFO] running `Command { std: "docker" "inspect" "0c11cbc3029d4de12768723942f9a053382f6a78477289355dc958b5f4d158b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c11cbc3029d4de12768723942f9a053382f6a78477289355dc958b5f4d158b4", kill_on_drop: false }` [INFO] [stdout] 0c11cbc3029d4de12768723942f9a053382f6a78477289355dc958b5f4d158b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 7611890f0472f126df2d157e9aa3f940f03ad032080449fad4ce5ba546c9cf7b [INFO] running `Command { std: "docker" "start" "-a" "7611890f0472f126df2d157e9aa3f940f03ad032080449fad4ce5ba546c9cf7b", 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/cookie_parser-3665c4df1950f3a0) [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] [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] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/cookie_parser-2984dc6e4b885c90) [INFO] [stderr] Running tests/grammar_tests.rs (/opt/rustwide/target/debug/deps/grammar_tests-e5eaf744282af3ac) [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test tests::test_parse_cookie_delimiter_in_cookie_value ... ok [INFO] [stdout] test tests::test_parse_cookie_ending_with_delimiter ... ok [INFO] [stdout] test tests::test_parse_cookie_empty_cookie_name ... ok [INFO] [stdout] test tests::test_parse_cookie_delimiter_in_cookie_name ... ok [INFO] [stdout] test tests::test_parse_cookie_no_cookie_value ... ok [INFO] [stdout] test tests::test_parse_cookie_no_space_between_cookies ... ok [INFO] [stdout] test tests::test_parse_cookie_string_multiple_cookies ... ok [INFO] [stdout] test tests::test_parse_cookie_string_single_cookie ... ok [INFO] [stdout] test tests::test_parse_set_cookie_domain ... ok [INFO] [stdout] test tests::test_parse_set_cookie_expires ... ok [INFO] [stdout] test tests::test_parse_set_cookie_http_only ... ok [INFO] [stdout] test tests::test_parse_set_cookie_max_age ... ok [INFO] [stdout] test tests::test_parse_set_cookie_extensions ... ok [INFO] [stdout] test tests::test_parse_set_cookie_mixed ... ok [INFO] [stdout] test tests::test_parse_set_cookie_secure ... ok [INFO] [stdout] test tests::test_parse_set_cookie_without_attributes ... ok [INFO] [stderr] Doc-tests cookie_parser [INFO] [stdout] test tests::test_parse_set_cookie_path ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - (line 73) ... FAILED [INFO] [stdout] test src/lib.rs - (line 90) ... FAILED [INFO] [stdout] test src/lib.rs - (line 21) ... FAILED [INFO] [stdout] test src/lib.rs - (line 35) ... FAILED [INFO] [stdout] test src/lib.rs - (line 98) ... FAILED [INFO] [stdout] test src/lib.rs - (line 62) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 73) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `CookiePair` in this scope [INFO] [stdout] --> src/lib.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 4 | pub pair: CookiePair, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use cookie_parser::CookiePair; [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 E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 90) stdout ---- [INFO] [stdout] error: expected one of `!`, `+`, `::`, `where`, or `{`, found `}` [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parse_cookie_string(input: &str) -> Result, CookieParseError> [INFO] [stdout] | ------------------- while parsing this `fn` - expected one of `!`, `+`, `::`, `where`, or `{` [INFO] [stdout] 4 | } _doctest_main_src_lib_rs_90_0() } [INFO] [stdout] | ^ unexpected token [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parse_cookie_string(input: &str) -> Result, CookieParseError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CookiePair` in this scope [INFO] [stdout] --> src/lib.rs:91:55 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parse_cookie_string(input: &str) -> Result, CookieParseError> [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use cookie_parser::CookiePair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CookieParseError` in this scope [INFO] [stdout] --> src/lib.rs:91:68 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parse_cookie_string(input: &str) -> Result, CookieParseError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use cookie_parser::CookieParseError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 21) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:26:71 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 7 | let cookies = parse_cookie_string("session=abc123; user=john_doe")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 6 | fn main() -> Result<(), Box> { [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 35) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | )?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 6 | fn main() -> Result<(), Box> { [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 98) stdout ---- [INFO] [stdout] error: expected one of `!`, `+`, `::`, `where`, or `{`, found `}` [INFO] [stdout] --> src/lib.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parse_set_cookie(input: &str) -> Result [INFO] [stdout] | ---------------- while parsing this `fn` - expected one of `!`, `+`, `::`, `where`, or `{` [INFO] [stdout] 4 | } _doctest_main_src_lib_rs_98_0() } [INFO] [stdout] | ^ unexpected token [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/lib.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parse_set_cookie(input: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SetCookie` in this scope [INFO] [stdout] --> src/lib.rs:99:48 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parse_set_cookie(input: &str) -> Result [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use cookie_parser::SetCookie; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CookieParseError` in this scope [INFO] [stdout] --> src/lib.rs:99:59 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parse_set_cookie(input: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use cookie_parser::CookieParseError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 21) [INFO] [stdout] src/lib.rs - (line 35) [INFO] [stdout] src/lib.rs - (line 73) [INFO] [stdout] src/lib.rs - (line 90) [INFO] [stdout] src/lib.rs - (line 98) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.44s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "7611890f0472f126df2d157e9aa3f940f03ad032080449fad4ce5ba546c9cf7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7611890f0472f126df2d157e9aa3f940f03ad032080449fad4ce5ba546c9cf7b", kill_on_drop: false }` [INFO] [stdout] 7611890f0472f126df2d157e9aa3f940f03ad032080449fad4ce5ba546c9cf7b