[INFO] fetching crate tide-csrf 0.1.1... [INFO] testing tide-csrf-0.1.1 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate tide-csrf 0.1.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate tide-csrf 0.1.1 [INFO] finished tweaking crates.io crate tide-csrf 0.1.1 [INFO] tweaked toml for crates.io crate tide-csrf 0.1.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate tide-csrf 0.1.1 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 257 packages to latest compatible versions [INFO] [stderr] Adding csrf v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding hkdf v0.11.0 (available: v0.13.0) [INFO] [stderr] Adding sha2 v0.9.9 (available: v0.11.0) [INFO] [stderr] Adding subtle v2.4.1 (available: v2.6.1) [INFO] [stderr] Adding zeroize v1.3.0 (available: v1.8.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sval_json v2.18.0 [INFO] [stderr] Downloaded hmac v0.11.0 [INFO] [stderr] Downloaded value-bag-serde1 v1.12.0 [INFO] [stderr] Downloaded crypto-mac v0.11.1 [INFO] [stderr] Downloaded poly1305 v0.7.2 [INFO] [stderr] Downloaded async-sse v4.1.0 [INFO] [stderr] Downloaded ghash v0.4.4 [INFO] [stderr] Downloaded chacha20 v0.7.3 [INFO] [stderr] Downloaded aes-gcm v0.9.4 [INFO] [stderr] Downloaded chacha20poly1305 v0.8.2 [INFO] [stderr] Downloaded sval_serde v2.18.0 [INFO] [stderr] Downloaded infer v0.2.3 [INFO] [stderr] Downloaded tide-testing v0.1.3 [INFO] [stderr] Downloaded sval_buffer v2.18.0 [INFO] [stderr] Downloaded tide v0.16.0 [INFO] [stderr] Downloaded async-session v2.0.1 [INFO] [stderr] Downloaded csrf v0.4.1 [INFO] [stderr] Downloaded async-h1 v2.3.4 [INFO] [stderr] Downloaded sval_dynamic v2.18.0 [INFO] [stderr] Downloaded sval v2.18.0 [INFO] [stderr] Downloaded sval_nested v2.18.0 [INFO] [stderr] Downloaded hkdf v0.11.0 [INFO] [stderr] Downloaded femme v2.2.1 [INFO] [stderr] Downloaded serde_qs v0.8.5 [INFO] [stderr] Downloaded sval_ref v2.18.0 [INFO] [stderr] Downloaded surf v2.3.2 [INFO] [stderr] Downloaded route-recognizer v0.2.0 [INFO] [stderr] Downloaded serde_fmt v1.1.0 [INFO] [stderr] Downloaded http-client v6.5.3 [INFO] [stderr] Downloaded http-types v2.12.0 [INFO] [stderr] Downloaded sval_fmt v2.18.0 [INFO] [stderr] Downloaded value-bag-sval2 v1.12.0 [INFO] [stderr] Downloaded async-dup v1.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 770d809691df8c0dc7452d36901ddb0b1bc77107c7ef423222a2acf2f45f6c17 [INFO] running `Command { std: "docker" "start" "-a" "770d809691df8c0dc7452d36901ddb0b1bc77107c7ef423222a2acf2f45f6c17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "770d809691df8c0dc7452d36901ddb0b1bc77107c7ef423222a2acf2f45f6c17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "770d809691df8c0dc7452d36901ddb0b1bc77107c7ef423222a2acf2f45f6c17", kill_on_drop: false }` [INFO] [stdout] 770d809691df8c0dc7452d36901ddb0b1bc77107c7ef423222a2acf2f45f6c17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef9104f5711e72e06bdc4c6808d18c7c796c9704727f3b1de6ee91618eacb3ce [INFO] running `Command { std: "docker" "start" "-a" "ef9104f5711e72e06bdc4c6808d18c7c796c9704727f3b1de6ee91618eacb3ce", kill_on_drop: false }` [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling typeid v1.0.3 [INFO] [stderr] Compiling erased-serde v0.4.10 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Compiling linux-raw-sys v0.12.1 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling serde_fmt v1.1.0 [INFO] [stderr] Compiling async-io v2.6.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling futures-lite v2.6.1 [INFO] [stderr] Compiling piper v0.2.5 [INFO] [stderr] Compiling cpuid-bool v0.2.0 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling icu_normalizer v2.2.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling rand v0.8.6 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling async-channel v2.5.0 [INFO] [stderr] Compiling async-lock v3.4.2 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling value-bag-serde1 v1.12.0 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling value-bag v1.12.0 [INFO] [stderr] Compiling blocking v1.6.2 [INFO] [stderr] Compiling async-executor v1.14.0 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling http-types v2.12.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling rustix v0.37.28 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling blake3 v0.3.8 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Compiling polyval v0.5.3 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling aead v0.4.3 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling chacha20 v0.7.3 [INFO] [stderr] Compiling ghash v0.4.4 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling ctr v0.8.0 [INFO] [stderr] Compiling async-dup v1.2.4 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling poly1305 v0.7.2 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling serde_qs v0.8.5 [INFO] [stderr] Compiling femme v2.2.1 [INFO] [stderr] Compiling route-recognizer v0.2.0 [INFO] [stderr] Compiling chacha20poly1305 v0.8.2 [INFO] [stderr] Compiling hkdf v0.11.0 [INFO] [stderr] Compiling aes-gcm v0.9.4 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling csrf v0.4.1 [INFO] [stderr] Compiling polling v3.11.0 [INFO] [stderr] Compiling async-signal v0.2.14 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-process v2.5.0 [INFO] [stderr] Compiling async-std v1.13.2 [INFO] [stderr] Compiling async-session v2.0.1 [INFO] [stderr] Compiling http-client v6.5.3 [INFO] [stderr] Compiling async-sse v4.1.0 [INFO] [stderr] Compiling async-h1 v2.3.4 [INFO] [stderr] Compiling tide v0.16.0 [INFO] [stderr] Compiling tide-csrf v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.19s [INFO] running `Command { std: "docker" "inspect" "ef9104f5711e72e06bdc4c6808d18c7c796c9704727f3b1de6ee91618eacb3ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef9104f5711e72e06bdc4c6808d18c7c796c9704727f3b1de6ee91618eacb3ce", kill_on_drop: false }` [INFO] [stdout] ef9104f5711e72e06bdc4c6808d18c7c796c9704727f3b1de6ee91618eacb3ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8bf28cb6a9586e41041660ab7cc8644675f96fd757a6b1c8d0d0cbbee1d4faa7 [INFO] running `Command { std: "docker" "start" "-a" "8bf28cb6a9586e41041660ab7cc8644675f96fd757a6b1c8d0d0cbbee1d4faa7", kill_on_drop: false }` [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling surf v2.3.2 [INFO] [stderr] Compiling tide-testing v0.1.3 [INFO] [stderr] Compiling tide-csrf v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:817:29 [INFO] [stdout] | [INFO] [stdout] 817 | fn get_csrf_cookie(res: &Response) -> Option { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 817 | fn get_csrf_cookie(res: &Response) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.34s [INFO] running `Command { std: "docker" "inspect" "8bf28cb6a9586e41041660ab7cc8644675f96fd757a6b1c8d0d0cbbee1d4faa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bf28cb6a9586e41041660ab7cc8644675f96fd757a6b1c8d0d0cbbee1d4faa7", kill_on_drop: false }` [INFO] [stdout] 8bf28cb6a9586e41041660ab7cc8644675f96fd757a6b1c8d0d0cbbee1d4faa7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1e0473997e518b62202af1848e65ec7afd451d71fb5cfa089550f8e081ed0aff [INFO] running `Command { std: "docker" "start" "-a" "1e0473997e518b62202af1848e65ec7afd451d71fb5cfa089550f8e081ed0aff", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:817:29 [INFO] [stderr] | [INFO] [stderr] 817 | fn get_csrf_cookie(res: &Response) -> Option { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 817 | fn get_csrf_cookie(res: &Response) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `tide-csrf` (lib test) generated 1 warning (run `cargo fix --lib -p tide-csrf --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tide_csrf-356a11752da4a100) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test tests::middleware_rejects_short_token ... ok [INFO] [stdout] test tests::middleware_validates_token_in_alternate_header ... ok [INFO] [stdout] test tests::middleware_adds_csrf_cookie_sets_request_token ... ok [INFO] [stdout] test tests::middleware_rejects_invalid_base64_token ... ok [INFO] [stdout] test tests::middleware_rejects_mismatched_token ... ok [INFO] [stdout] test tests::middleware_ignores_non_form_bodies ... ok [INFO] [stdout] test tests::middleware_exposes_csrf_request_extensions ... ok [INFO] [stdout] test tests::middleware_validates_token_in_form ... ok [INFO] [stdout] test tests::middleware_allows_different_generation_cookies_and_tokens ... ok [INFO] [stdout] test tests::middleware_validates_token_in_alternate_query ... ok [INFO] [stdout] test tests::middleware_validates_token_in_header ... ok [INFO] [stdout] test tests::middleware_validates_token_in_query ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Doc-tests tide_csrf [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 35) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.13s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1e0473997e518b62202af1848e65ec7afd451d71fb5cfa089550f8e081ed0aff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e0473997e518b62202af1848e65ec7afd451d71fb5cfa089550f8e081ed0aff", kill_on_drop: false }` [INFO] [stdout] 1e0473997e518b62202af1848e65ec7afd451d71fb5cfa089550f8e081ed0aff