[INFO] fetching crate gidle_future 0.2.0... [INFO] testing gidle_future-0.2.0 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate gidle_future 0.2.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate gidle_future 0.2.0 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate gidle_future 0.2.0 [INFO] finished tweaking crates.io crate gidle_future 0.2.0 [INFO] tweaked toml for crates.io crate gidle_future 0.2.0 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "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] 56140ec3b50cd4ecf37e4ff3f3985264db924a24230c96ba1b35ac08f5c14d9f [INFO] running `Command { std: "docker" "start" "-a" "56140ec3b50cd4ecf37e4ff3f3985264db924a24230c96ba1b35ac08f5c14d9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56140ec3b50cd4ecf37e4ff3f3985264db924a24230c96ba1b35ac08f5c14d9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56140ec3b50cd4ecf37e4ff3f3985264db924a24230c96ba1b35ac08f5c14d9f", kill_on_drop: false }` [INFO] [stdout] 56140ec3b50cd4ecf37e4ff3f3985264db924a24230c96ba1b35ac08f5c14d9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb0b6853e1e550ab6d36f848bcbb2671d3c2c117a8f4e4165070e15c3c6cd655 [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" "cb0b6853e1e550ab6d36f848bcbb2671d3c2c117a8f4e4165070e15c3c6cd655", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling strum v0.18.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling strum_macros v0.18.0 [INFO] [stderr] Compiling glib-macros v0.10.1 [INFO] [stderr] Compiling thiserror v1.0.25 [INFO] [stderr] Compiling system-deps v1.3.2 [INFO] [stderr] Compiling glib-sys v0.10.1 [INFO] [stderr] Compiling gobject-sys v0.10.0 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Compiling glib v0.10.3 [INFO] [stderr] Compiling gidle_future v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 41.24s [INFO] running `Command { std: "docker" "inspect" "cb0b6853e1e550ab6d36f848bcbb2671d3c2c117a8f4e4165070e15c3c6cd655", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb0b6853e1e550ab6d36f848bcbb2671d3c2c117a8f4e4165070e15c3c6cd655", kill_on_drop: false }` [INFO] [stdout] cb0b6853e1e550ab6d36f848bcbb2671d3c2c117a8f4e4165070e15c3c6cd655 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2d860aa16627fe1a13ca8793ff187ad29504587a99184fd30b51363c29ca595 [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" "e2d860aa16627fe1a13ca8793ff187ad29504587a99184fd30b51363c29ca595", kill_on_drop: false }` [INFO] [stderr] Compiling gidle_future v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.60s [INFO] running `Command { std: "docker" "inspect" "e2d860aa16627fe1a13ca8793ff187ad29504587a99184fd30b51363c29ca595", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2d860aa16627fe1a13ca8793ff187ad29504587a99184fd30b51363c29ca595", kill_on_drop: false }` [INFO] [stdout] e2d860aa16627fe1a13ca8793ff187ad29504587a99184fd30b51363c29ca595 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8845ac7d47338b780b45970efdd0e4c7d2dc04e234b3aa41f8681cd31a0f0114 [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" "8845ac7d47338b780b45970efdd0e4c7d2dc04e234b3aa41f8681cd31a0f0114", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/gidle_future-4184f69a5f6ea9c6) [INFO] [stdout] [INFO] [stderr] Doc-tests gidle_future [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 5 tests [INFO] [stdout] test src/lib.rs - (line 74) ... FAILED [INFO] [stdout] test src/lib.rs - (line 27) ... FAILED [INFO] [stdout] test src/lib.rs - (line 55) ... FAILED [INFO] [stdout] test src/lib.rs - (line 64) ... FAILED [INFO] [stdout] test src/lib.rs - (line 46) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 74) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/lib.rs:75:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:76:59 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 4 | | //... [INFO] [stdout] 5 | | } [INFO] [stdout] | |_^ expected enum `Result`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 27) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std` [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 3 | async_std::task::yield_now().await; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] 3 | async_std::task::yield_now().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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] ---- src/lib.rs - (line 55) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `smol` [INFO] [stdout] --> src/lib.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 3 | std::thread::spawn(|| smol::run(futures::future::pending::<()>())); [INFO] [stdout] | ^^^^ use of undeclared crate or module `smol` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 64) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `gtk` [INFO] [stdout] --> src/lib.rs:70:24 [INFO] [stdout] | [INFO] [stdout] 8 | rt.block_on(async { gtk::main() }); [INFO] [stdout] | ^^^ use of undeclared crate or module `gtk` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/lib.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 3 | let mut rt = tokio::runtime::Builder::new() [INFO] [stdout] | ^^^^^^^ not found in `tokio::runtime` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::thread::Builder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 46) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std` [INFO] [stdout] --> src/lib.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 3 | async_std::task::spawn(async {}); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 27) [INFO] [stdout] src/lib.rs - (line 46) [INFO] [stdout] src/lib.rs - (line 55) [INFO] [stdout] src/lib.rs - (line 64) [INFO] [stdout] src/lib.rs - (line 74) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.35s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "8845ac7d47338b780b45970efdd0e4c7d2dc04e234b3aa41f8681cd31a0f0114", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8845ac7d47338b780b45970efdd0e4c7d2dc04e234b3aa41f8681cd31a0f0114", kill_on_drop: false }` [INFO] [stdout] 8845ac7d47338b780b45970efdd0e4c7d2dc04e234b3aa41f8681cd31a0f0114