[INFO] fetching crate armor 1.2.0... [INFO] testing armor-1.2.0 against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] extracting crate armor 1.2.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate armor 1.2.0 on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate armor 1.2.0 [INFO] finished tweaking crates.io crate armor 1.2.0 [INFO] tweaked toml for crates.io crate armor 1.2.0 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate crates.io crate armor 1.2.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e964250c4be84d4135eebde76acbad9fe87d4872943a8385767e6fb41919b7bb [INFO] running `Command { std: "docker" "start" "-a" "e964250c4be84d4135eebde76acbad9fe87d4872943a8385767e6fb41919b7bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e964250c4be84d4135eebde76acbad9fe87d4872943a8385767e6fb41919b7bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e964250c4be84d4135eebde76acbad9fe87d4872943a8385767e6fb41919b7bb", kill_on_drop: false }` [INFO] [stdout] e964250c4be84d4135eebde76acbad9fe87d4872943a8385767e6fb41919b7bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] cd27beefd56c86ed5571fd964b9d68efda05909e397209ab6cfe04ef67ca4ecd [INFO] running `Command { std: "docker" "start" "-a" "cd27beefd56c86ed5571fd964b9d68efda05909e397209ab6cfe04ef67ca4ecd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.5 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling libc v0.2.55 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling ryu v1.0.1 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling http v0.1.17 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling serde_json v1.0.41 [INFO] [stderr] Compiling armor v1.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: deny(rust_2018_idioms) incompatible with previous forbid [INFO] [stdout] --> src/lib.rs:14:59 [INFO] [stdout] | [INFO] [stdout] 13 | #![forbid(unsafe_code, future_incompatible)] [INFO] [stdout] | ------------------- `forbid` level set here [INFO] [stdout] 14 | #![deny(missing_debug_implementations, nonstandard_style, rust_2018_idioms)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(forbidden_lint_groups)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #81670 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deny(rust_2018_idioms) incompatible with previous forbid [INFO] [stdout] --> src/lib.rs:14:59 [INFO] [stdout] | [INFO] [stdout] 13 | #![forbid(unsafe_code, future_incompatible)] [INFO] [stdout] | ------------------- `forbid` level set here [INFO] [stdout] 14 | #![deny(missing_debug_implementations, nonstandard_style, rust_2018_idioms)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #81670 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 35.08s [INFO] running `Command { std: "docker" "inspect" "cd27beefd56c86ed5571fd964b9d68efda05909e397209ab6cfe04ef67ca4ecd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd27beefd56c86ed5571fd964b9d68efda05909e397209ab6cfe04ef67ca4ecd", kill_on_drop: false }` [INFO] [stdout] cd27beefd56c86ed5571fd964b9d68efda05909e397209ab6cfe04ef67ca4ecd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c04d451508fcaab669b2cc9739253d920c894bea1e4d2dc67b96111bda591cc0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c04d451508fcaab669b2cc9739253d920c894bea1e4d2dc67b96111bda591cc0", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling armor v1.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: deny(rust_2018_idioms) incompatible with previous forbid [INFO] [stdout] --> src/lib.rs:14:59 [INFO] [stdout] | [INFO] [stdout] 13 | #![forbid(unsafe_code, future_incompatible)] [INFO] [stdout] | ------------------- `forbid` level set here [INFO] [stdout] 14 | #![deny(missing_debug_implementations, nonstandard_style, rust_2018_idioms)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(forbidden_lint_groups)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #81670 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deny(rust_2018_idioms) incompatible with previous forbid [INFO] [stdout] --> src/lib.rs:14:59 [INFO] [stdout] | [INFO] [stdout] 13 | #![forbid(unsafe_code, future_incompatible)] [INFO] [stdout] | ------------------- `forbid` level set here [INFO] [stdout] 14 | #![deny(missing_debug_implementations, nonstandard_style, rust_2018_idioms)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #81670 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deny(rust_2018_idioms) incompatible with previous forbid [INFO] [stdout] --> src/lib.rs:14:59 [INFO] [stdout] | [INFO] [stdout] 13 | #![forbid(unsafe_code, future_incompatible)] [INFO] [stdout] | ------------------- `forbid` level set here [INFO] [stdout] 14 | #![deny(missing_debug_implementations, nonstandard_style, rust_2018_idioms)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(forbidden_lint_groups)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #81670 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deny(rust_2018_idioms) incompatible with previous forbid [INFO] [stdout] --> src/lib.rs:14:59 [INFO] [stdout] | [INFO] [stdout] 13 | #![forbid(unsafe_code, future_incompatible)] [INFO] [stdout] | ------------------- `forbid` level set here [INFO] [stdout] 14 | #![deny(missing_debug_implementations, nonstandard_style, rust_2018_idioms)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #81670 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.92s [INFO] running `Command { std: "docker" "inspect" "c04d451508fcaab669b2cc9739253d920c894bea1e4d2dc67b96111bda591cc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c04d451508fcaab669b2cc9739253d920c894bea1e4d2dc67b96111bda591cc0", kill_on_drop: false }` [INFO] [stdout] c04d451508fcaab669b2cc9739253d920c894bea1e4d2dc67b96111bda591cc0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9e744580825dc559d0644bfb149516f573c646c05575f01503f1c580fece8d2a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9e744580825dc559d0644bfb149516f573c646c05575f01503f1c580fece8d2a", kill_on_drop: false }` [INFO] [stderr] warning: deny(rust_2018_idioms) incompatible with previous forbid [INFO] [stderr] --> src/lib.rs:14:59 [INFO] [stderr] | [INFO] [stderr] 13 | #![forbid(unsafe_code, future_incompatible)] [INFO] [stderr] | ------------------- `forbid` level set here [INFO] [stderr] 14 | #![deny(missing_debug_implementations, nonstandard_style, rust_2018_idioms)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ overruled by previous forbid [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(forbidden_lint_groups)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #81670 [INFO] [stderr] [INFO] [stderr] warning: deny(rust_2018_idioms) incompatible with previous forbid [INFO] [stderr] --> src/lib.rs:14:59 [INFO] [stderr] | [INFO] [stderr] 13 | #![forbid(unsafe_code, future_incompatible)] [INFO] [stderr] | ------------------- `forbid` level set here [INFO] [stderr] 14 | #![deny(missing_debug_implementations, nonstandard_style, rust_2018_idioms)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ overruled by previous forbid [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #81670 [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: deny(rust_2018_idioms) incompatible with previous forbid [INFO] [stderr] --> src/lib.rs:14:59 [INFO] [stderr] | [INFO] [stderr] 13 | #![forbid(unsafe_code, future_incompatible)] [INFO] [stderr] | ------------------- `forbid` level set here [INFO] [stderr] 14 | #![deny(missing_debug_implementations, nonstandard_style, rust_2018_idioms)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ overruled by previous forbid [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(forbidden_lint_groups)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #81670 [INFO] [stderr] [INFO] [stderr] warning: deny(rust_2018_idioms) incompatible with previous forbid [INFO] [stderr] --> src/lib.rs:14:59 [INFO] [stderr] | [INFO] [stderr] 13 | #![forbid(unsafe_code, future_incompatible)] [INFO] [stderr] | ------------------- `forbid` level set here [INFO] [stderr] 14 | #![deny(missing_debug_implementations, nonstandard_style, rust_2018_idioms)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ overruled by previous forbid [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #81670 [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/armor-41717d7b202d0bbf) [INFO] [stdout] [INFO] [stderr] Running tests/test.rs (/opt/rustwide/target/debug/deps/test-a3ed02d8e6f788d7) [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 2 tests [INFO] [stdout] test csp_test ... ok [INFO] [stdout] test should_work ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests armor [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/csp.rs - csp (line 10) ... FAILED [INFO] [stdout] test src/lib.rs - (line 6) ... ok [INFO] [stdout] test src/lib.rs - hsts (line 107) ... ok [INFO] [stdout] test src/lib.rs - armor (line 24) ... ok [INFO] [stdout] test src/lib.rs - xss_filter (line 139) ... ok [INFO] [stdout] test src/lib.rs - frameguard (line 68) ... ok [INFO] [stdout] test src/lib.rs - referrer_policy (line 178) ... ok [INFO] [stdout] test src/lib.rs - dont_sniff_mimetype (line 124) ... ok [INFO] [stdout] test src/lib.rs - hide_powered_by (line 88) ... ok [INFO] [stdout] test src/lib.rs - dns_prefetch_control (line 44) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/csp.rs - csp (line 10) stdout ---- [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/csp.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 4 | let mut policy = armor::csp::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 10 | .upgrade_insecure_requests(); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] ... [INFO] [stdout] 13 | policy.apply(&mut headers); [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/csp.rs - csp (line 10) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 9 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.70s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "9e744580825dc559d0644bfb149516f573c646c05575f01503f1c580fece8d2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e744580825dc559d0644bfb149516f573c646c05575f01503f1c580fece8d2a", kill_on_drop: false }` [INFO] [stdout] 9e744580825dc559d0644bfb149516f573c646c05575f01503f1c580fece8d2a