[INFO] cloning repository https://github.com/kulak/ntex-middleware [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kulak/ntex-middleware" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkulak%2Fntex-middleware", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkulak%2Fntex-middleware'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 91d0de36f75febdff009bc8b53498849fff66c56 [INFO] testing kulak/ntex-middleware against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkulak%2Fntex-middleware" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kulak/ntex-middleware [INFO] finished tweaking git repo https://github.com/kulak/ntex-middleware [INFO] tweaked toml for git repo https://github.com/kulak/ntex-middleware written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kulak/ntex-middleware on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kulak/ntex-middleware 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ntex-rt v0.4.9 [INFO] [stderr] Downloaded ntex-tokio v0.3.0 [INFO] [stderr] Downloaded futures-micro v0.5.0 [INFO] [stderr] Downloaded ntex-util v0.3.1 [INFO] [stderr] Downloaded ntex-macros v0.1.3 [INFO] [stderr] Downloaded ntex-http v0.1.9 [INFO] [stderr] Downloaded ntex-connect v0.3.0 [INFO] [stderr] Downloaded ntex-tls v0.3.0 [INFO] [stderr] Downloaded ntex-bytes v0.1.19 [INFO] [stderr] Downloaded ntex-io v0.3.2 [INFO] [stderr] Downloaded syn v2.0.30 [INFO] [stderr] Downloaded ntex-router v0.5.1 [INFO] [stderr] Downloaded async-oneshot v0.5.0 [INFO] [stderr] Downloaded ntex-codec v0.6.2 [INFO] [stderr] Downloaded ntex-service v1.2.5 [INFO] [stderr] Downloaded ntex-h2 v0.3.3 [INFO] [stderr] Downloaded ntex v0.7.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1ed5925f6a63a63ee40544afd4f816f483f51fddb0785f4c17fc28543a2982a9 [INFO] running `Command { std: "docker" "start" "-a" "1ed5925f6a63a63ee40544afd4f816f483f51fddb0785f4c17fc28543a2982a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ed5925f6a63a63ee40544afd4f816f483f51fddb0785f4c17fc28543a2982a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ed5925f6a63a63ee40544afd4f816f483f51fddb0785f4c17fc28543a2982a9", kill_on_drop: false }` [INFO] [stdout] 1ed5925f6a63a63ee40544afd4f816f483f51fddb0785f4c17fc28543a2982a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40b7534b34b37c2bf40d335e2db936d85b7879543ee233175831f91972d27569 [INFO] running `Command { std: "docker" "start" "-a" "40b7534b34b37c2bf40d335e2db936d85b7879543ee233175831f91972d27569", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.30 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling futures-micro v0.5.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling ntex-service v1.2.5 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling futures-timer v3.0.2 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling async-oneshot v0.5.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling concurrent-queue v2.2.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling time-core v0.1.1 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling deranged v0.3.8 [INFO] [stderr] Compiling socket2 v0.5.3 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling regex-automata v0.3.8 [INFO] [stderr] Compiling tokio v1.32.0 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling time v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Compiling regex v1.9.5 [INFO] [stderr] Compiling ntex-macros v0.1.3 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Compiling ntex-rt v0.4.9 [INFO] [stderr] Compiling ntex-util v0.3.1 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling ntex-bytes v0.1.19 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.105 [INFO] [stderr] Compiling ntex-codec v0.6.2 [INFO] [stderr] Compiling ntex-http v0.1.9 [INFO] [stderr] Compiling ntex-router v0.5.1 [INFO] [stderr] Compiling ntex-io v0.3.2 [INFO] [stderr] Compiling ntex-tokio v0.3.0 [INFO] [stderr] Compiling ntex-tls v0.3.0 [INFO] [stderr] Compiling ntex-connect v0.3.0 [INFO] [stderr] Compiling ntex-h2 v0.3.3 [INFO] [stderr] Compiling ntex v0.7.3 [INFO] [stderr] Compiling ntex-middleware v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 52.18s [INFO] running `Command { std: "docker" "inspect" "40b7534b34b37c2bf40d335e2db936d85b7879543ee233175831f91972d27569", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40b7534b34b37c2bf40d335e2db936d85b7879543ee233175831f91972d27569", kill_on_drop: false }` [INFO] [stdout] 40b7534b34b37c2bf40d335e2db936d85b7879543ee233175831f91972d27569 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0880324f116aa42f482638c3337da274ff284182e232c9d871d679b39dd32f8e [INFO] running `Command { std: "docker" "start" "-a" "0880324f116aa42f482638c3337da274ff284182e232c9d871d679b39dd32f8e", kill_on_drop: false }` [INFO] [stderr] Compiling ntex-middleware v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.26s [INFO] running `Command { std: "docker" "inspect" "0880324f116aa42f482638c3337da274ff284182e232c9d871d679b39dd32f8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0880324f116aa42f482638c3337da274ff284182e232c9d871d679b39dd32f8e", kill_on_drop: false }` [INFO] [stdout] 0880324f116aa42f482638c3337da274ff284182e232c9d871d679b39dd32f8e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 152cace04c068ae6f6422f2a589edf569c82531aa77af86e7cf10d90bac5954b [INFO] running `Command { std: "docker" "start" "-a" "152cace04c068ae6f6422f2a589edf569c82531aa77af86e7cf10d90bac5954b", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ntex_middleware-87a989e399f800f8) [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 ntex_middleware [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/inactivity.rs - inactivity::Inactivity (line 12) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/inactivity.rs - inactivity::Inactivity (line 12) stdout ---- [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/inactivity.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 21 | info!("reached limit of inactivity, shutting down the server"); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/inactivity.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 3 | let last_time = Arc::new(Mutex::new(OffsetDateTime::now_utc())); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/inactivity.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 3 | let last_time = Arc::new(Mutex::new(OffsetDateTime::now_utc())); [INFO] [stdout] | ^^^^^ use of undeclared type `Mutex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::nonpoison::Mutex; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OffsetDateTime` [INFO] [stdout] --> src/inactivity.rs:13:37 [INFO] [stdout] | [INFO] [stdout] 3 | let last_time = Arc::new(Mutex::new(OffsetDateTime::now_utc())); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `OffsetDateTime` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use time::OffsetDateTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `web` [INFO] [stdout] --> src/inactivity.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 6 | let server = web::server(move || { [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `web` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web`, use `cargo add web` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use ntex::web; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `App` [INFO] [stdout] --> src/inactivity.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 7 | App::new() [INFO] [stdout] | ^^^ use of undeclared type `App` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ntex::web::App; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `inactivity` [INFO] [stdout] --> src/inactivity.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 8 | .wrap(inactivity::Inactivity { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `inactivity` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/inactivity.rs, use `mod inactivity` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod inactivity; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use ntex_middleware::inactivity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `web` [INFO] [stdout] --> src/inactivity.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 12 | web::resource("/index.html").to(|| async { "Hello world!" }), [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `web` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web`, use `cargo add web` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use ntex::web; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `inactivity` [INFO] [stdout] --> src/inactivity.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 20 | inactivity::until_idle(last_time).await; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `inactivity` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/inactivity.rs, use `mod inactivity` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod inactivity; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use ntex_middleware::inactivity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/inactivity.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_inactivity_rs_12_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 25 | server.await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/inactivity.rs - inactivity::Inactivity (line 12) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.37s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "152cace04c068ae6f6422f2a589edf569c82531aa77af86e7cf10d90bac5954b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "152cace04c068ae6f6422f2a589edf569c82531aa77af86e7cf10d90bac5954b", kill_on_drop: false }` [INFO] [stdout] 152cace04c068ae6f6422f2a589edf569c82531aa77af86e7cf10d90bac5954b