[INFO] crate deadpool-postgres 0.2.1 is already in cache [INFO] checking deadpool-postgres-0.2.1 against try#1a608893c03d7722effeb0058e82770bd36b4b3c for pr-66504-1 [INFO] extracting crate deadpool-postgres 0.2.1 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate deadpool-postgres 0.2.1 on toolchain 1a608893c03d7722effeb0058e82770bd36b4b3c [INFO] running `"/workspace/cargo-home/bin/cargo" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate deadpool-postgres 0.2.1 [INFO] finished tweaking crates.io crate deadpool-postgres 0.2.1 [INFO] tweaked toml for crates.io crate deadpool-postgres 0.2.1 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 3269a7709d56a2873198c150dd0be9365f484afcf18990f5595b8938650d80a8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "3269a7709d56a2873198c150dd0be9365f484afcf18990f5595b8938650d80a8"` [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Checking futures-sink v0.3.1 [INFO] [stderr] Checking bytes v0.5.2 [INFO] [stderr] Checking futures-core v0.3.1 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Checking pin-utils v0.1.0-alpha.4 [INFO] [stderr] Checking pin-project-lite v0.1.1 [INFO] [stderr] Checking futures-task v0.3.1 [INFO] [stderr] Checking futures-io v0.3.1 [INFO] [stderr] Checking siphasher v0.3.1 [INFO] [stderr] Checking md5 v0.6.1 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking sha2 v0.8.0 [INFO] [stderr] Checking futures-channel v0.3.1 [INFO] [stderr] Checking phf_shared v0.8.0 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Checking tokio v0.2.4 [INFO] [stderr] Checking postgres-protocol v0.5.0-alpha.2 [INFO] [stderr] Checking postgres-types v0.1.0-alpha.2 [INFO] [stderr] Checking tokio-util v0.2.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling async-trait v0.1.21 [INFO] [stderr] Compiling futures-macro v0.3.1 [INFO] [stderr] Checking deadpool v0.2.3 [INFO] [stderr] Checking futures-util v0.3.1 [INFO] [stderr] Checking futures-executor v0.3.1 [INFO] [stderr] Checking futures v0.3.1 [INFO] [stderr] Checking tokio-postgres v0.5.0-alpha.2 [INFO] [stderr] Checking deadpool-postgres v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stderr] --> src/bin/bench_postgres.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #[tokio::main] [INFO] [stderr] | ^^^^ could not find `main` in `tokio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stderr] --> src/bin/bench_postgres.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #[tokio::main] [INFO] [stderr] | ^^^^ could not find `main` in `tokio` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0433`. [INFO] [stderr] error: could not compile `deadpool-postgres`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: async functions cannot be used for tests [INFO] [stderr] --> tests/postgres.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | / async fn test_basic() { [INFO] [stderr] 16 | | let pool = create_pool(); [INFO] [stderr] 17 | | let mut client = pool.get().await.unwrap(); [INFO] [stderr] 18 | | let stmt = client.prepare("SELECT 1 + 2").await.unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 21 | | assert_eq!(value, 3); [INFO] [stderr] 22 | | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] error: async functions cannot be used for tests [INFO] [stderr] --> tests/postgres.rs:26:1 [INFO] [stderr] | [INFO] [stderr] 26 | / async fn test_transaction_1() { [INFO] [stderr] 27 | | let pool = create_pool(); [INFO] [stderr] 28 | | let mut client = pool.get().await.unwrap(); [INFO] [stderr] 29 | | { [INFO] [stderr] ... | [INFO] [stderr] 35 | | } [INFO] [stderr] 36 | | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] error: async functions cannot be used for tests [INFO] [stderr] --> tests/postgres.rs:40:1 [INFO] [stderr] | [INFO] [stderr] 40 | / async fn test_transaction_2() { [INFO] [stderr] 41 | | let pool = create_pool(); [INFO] [stderr] 42 | | let mut client = pool.get().await.unwrap(); [INFO] [stderr] 43 | | let stmt = client.prepare("SELECT 1 + 2").await.unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 49 | | } [INFO] [stderr] 50 | | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stderr] --> tests/postgres.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | #[tokio::main] [INFO] [stderr] | ^^^^ could not find `main` in `tokio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stderr] --> tests/postgres.rs:24:10 [INFO] [stderr] | [INFO] [stderr] 24 | #[tokio::main] [INFO] [stderr] | ^^^^ could not find `main` in `tokio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stderr] --> tests/postgres.rs:38:10 [INFO] [stderr] | [INFO] [stderr] 38 | #[tokio::main] [INFO] [stderr] | ^^^^ could not find `main` in `tokio` [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0433`. [INFO] [stderr] error: could not compile `deadpool-postgres`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0277]: `main` has invalid return type `impl std::future::Future` [INFO] [stderr] --> src/bin/bench_postgres.rs:2:17 [INFO] [stderr] | [INFO] [stderr] 2 | async fn main() { [INFO] [stderr] | ^ `main` can only return types that implement `std::process::Termination` [INFO] [stderr] | [INFO] [stderr] = help: consider using `()`, or a `Result` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: could not compile `deadpool-postgres`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "3269a7709d56a2873198c150dd0be9365f484afcf18990f5595b8938650d80a8"` [INFO] running `"docker" "rm" "-f" "3269a7709d56a2873198c150dd0be9365f484afcf18990f5595b8938650d80a8"` [INFO] [stdout] 3269a7709d56a2873198c150dd0be9365f484afcf18990f5595b8938650d80a8