[INFO] fetching crate medina 0.0.2-alpha.11... [INFO] checking medina-0.0.2-alpha.11 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] extracting crate medina 0.0.2-alpha.11 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate medina 0.0.2-alpha.11 on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate medina 0.0.2-alpha.11 [INFO] finished tweaking crates.io crate medina 0.0.2-alpha.11 [INFO] tweaked toml for crates.io crate medina 0.0.2-alpha.11 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate crates.io crate medina 0.0.2-alpha.11 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99225da0b54b268bb51ed0dbdc4f9cb55e96e74e74be732933d9841622c26f3e [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" "99225da0b54b268bb51ed0dbdc4f9cb55e96e74e74be732933d9841622c26f3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99225da0b54b268bb51ed0dbdc4f9cb55e96e74e74be732933d9841622c26f3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99225da0b54b268bb51ed0dbdc4f9cb55e96e74e74be732933d9841622c26f3e", kill_on_drop: false }` [INFO] [stdout] 99225da0b54b268bb51ed0dbdc4f9cb55e96e74e74be732933d9841622c26f3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45576d2e1a4cb23340a9b3a0ed220d48c765ad6a266c0dff36077e9e390bb670 [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" "45576d2e1a4cb23340a9b3a0ed220d48c765ad6a266c0dff36077e9e390bb670", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.38 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Checking once_cell v1.4.0 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking event-listener v2.4.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking plum v0.1.5 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking async-mutex v1.1.5 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Checking async-channel v1.4.1 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling async-trait v0.1.36 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking medina v0.0.2-alpha.11 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `async_mutex::Mutex` [INFO] [stdout] --> src/crawler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_mutex::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `event_listener::Event` [INFO] [stdout] --> src/crawler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use event_listener::Event; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::FutureExt` [INFO] [stdout] --> src/crawler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::future::FutureExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::select` [INFO] [stdout] --> src/crawler.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use futures::select; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/crawler.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::task_runner::TaskRunner` [INFO] [stdout] --> src/crawler.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use super::task_runner::TaskRunner; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_mutex::Mutex` [INFO] [stdout] --> src/crawler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_mutex::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `event_listener::Event` [INFO] [stdout] --> src/crawler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use event_listener::Event; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::FutureExt` [INFO] [stdout] --> src/crawler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::future::FutureExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::select` [INFO] [stdout] --> src/crawler.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use futures::select; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/crawler.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::task_runner::TaskRunner` [INFO] [stdout] --> src/crawler.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use super::task_runner::TaskRunner; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_item` [INFO] [stdout] --> src/crawler.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn pop_item(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process_request_with_retry` [INFO] [stdout] --> src/crawler.rs:183:14 [INFO] [stdout] | [INFO] [stdout] 183 | async fn process_request_with_retry( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `crawl` [INFO] [stdout] --> src/crawler.rs:268:14 [INFO] [stdout] | [INFO] [stdout] 268 | async fn crawl( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TaskRunner` [INFO] [stdout] --> src/task_runner.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TaskRunner { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/task_runner.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/task_runner.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn run(tasks_mutex: &(Mutex, Event)) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_item` [INFO] [stdout] --> src/crawler.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn pop_item(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process_request_with_retry` [INFO] [stdout] --> src/crawler.rs:183:14 [INFO] [stdout] | [INFO] [stdout] 183 | async fn process_request_with_retry( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `crawl` [INFO] [stdout] --> src/crawler.rs:268:14 [INFO] [stdout] | [INFO] [stdout] 268 | async fn crawl( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TaskRunner` [INFO] [stdout] --> src/task_runner.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TaskRunner { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/task_runner.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/task_runner.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn run(tasks_mutex: &(Mutex, Event)) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> examples/fake_page_tokio.rs:64:3 [INFO] [stdout] | [INFO] [stdout] 64 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_std` [INFO] [stdout] --> examples/fake_page_async_std.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::task; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `run` found for struct `Crawler` in the current scope [INFO] [stdout] --> examples/fake_page_async_std.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | .run(50, 30) [INFO] [stdout] | ^^^ method not found in `Crawler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> examples/fake_page_async_std.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | .run(50, 30) [INFO] [stdout] | ^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> examples/fake_page_async_std.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | / Crawler::with_capacity(50 * 26, 0.0001) [INFO] [stdout] 51 | | .set_default_request_rate(5.0) [INFO] [stdout] 52 | | .push_item(Box::new(RootPage { [INFO] [stdout] 53 | | url: "https://root.com".to_string(), [INFO] [stdout] 54 | | })) [INFO] [stdout] 55 | | .run(50, 30) [INFO] [stdout] 56 | | .await; [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> examples/fake_page_async_std.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | .run(50, 30) [INFO] [stdout] | ^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> examples/fake_page_async_std.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | / Crawler::with_capacity(50 * 26, 0.0001) [INFO] [stdout] 51 | | .set_default_request_rate(5.0) [INFO] [stdout] 52 | | .push_item(Box::new(RootPage { [INFO] [stdout] 53 | | url: "https://root.com".to_string(), [INFO] [stdout] 54 | | })) [INFO] [stdout] 55 | | .run(50, 30) [INFO] [stdout] 56 | | .await; [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `medina` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `run` found for struct `Crawler` in the current scope [INFO] [stdout] --> examples/fake_page_tokio.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | .run(50, 30) [INFO] [stdout] | ^^^ method not found in `Crawler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl Future` [INFO] [stdout] --> examples/fake_page_tokio.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | async fn main() { [INFO] [stdout] | ^ `main` can only return types that implement `Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> examples/fake_page_tokio.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 71 | .run(50, 30) [INFO] [stdout] | ^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> examples/fake_page_tokio.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | / Crawler::with_capacity(1_300, 0.0001) [INFO] [stdout] 67 | | .push_item(Box::new(RootPage { [INFO] [stdout] 68 | | url: "https://root.com".to_string(), [INFO] [stdout] 69 | | })) [INFO] [stdout] 70 | | .set_default_request_rate(5.0) [INFO] [stdout] 71 | | .run(50, 30) [INFO] [stdout] 72 | | .await; [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> examples/fake_page_tokio.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 71 | .run(50, 30) [INFO] [stdout] | ^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> examples/fake_page_tokio.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | / Crawler::with_capacity(1_300, 0.0001) [INFO] [stdout] 67 | | .push_item(Box::new(RootPage { [INFO] [stdout] 68 | | url: "https://root.com".to_string(), [INFO] [stdout] 69 | | })) [INFO] [stdout] 70 | | .set_default_request_rate(5.0) [INFO] [stdout] 71 | | .run(50, 30) [INFO] [stdout] 72 | | .await; [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/fake_page_tokio.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0599, E0698, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "45576d2e1a4cb23340a9b3a0ed220d48c765ad6a266c0dff36077e9e390bb670", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45576d2e1a4cb23340a9b3a0ed220d48c765ad6a266c0dff36077e9e390bb670", kill_on_drop: false }` [INFO] [stdout] 45576d2e1a4cb23340a9b3a0ed220d48c765ad6a266c0dff36077e9e390bb670