[INFO] cloning repository https://github.com/ratnadeepb/Rust_async_demos [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ratnadeepb/Rust_async_demos" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fratnadeepb%2FRust_async_demos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fratnadeepb%2FRust_async_demos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c898ae6b6f0ac04d77990c142ce7fcd16f339d85 [INFO] testing ratnadeepb/Rust_async_demos against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fratnadeepb%2FRust_async_demos" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ratnadeepb/Rust_async_demos on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ratnadeepb/Rust_async_demos [INFO] finished tweaking git repo https://github.com/ratnadeepb/Rust_async_demos [INFO] tweaked toml for git repo https://github.com/ratnadeepb/Rust_async_demos written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/ratnadeepb/Rust_async_demos already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-8/source/tokio-oneshot-joinhandle/Cargo.toml: unused manifest key: dependencies.tokio.feature [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/sergey-melnychuk/rust-parser-combinators` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crossbeam-queue v0.3.0 [INFO] [stderr] Downloaded async-task v4.0.2 [INFO] [stderr] Downloaded async-io v1.1.10 [INFO] [stderr] Downloaded async-std v1.6.5 [INFO] [stderr] Downloaded weezl v0.1.1 [INFO] [stderr] Downloaded env_logger v0.8.1 [INFO] [stderr] Downloaded async-executor v1.3.0 [INFO] [stderr] Downloaded wepoll-sys v3.0.0 [INFO] [stderr] Downloaded async-global-executor v1.3.0 [INFO] [stderr] Downloaded polling v2.0.1 [INFO] [stderr] Downloaded tokio-macros v0.3.0 [INFO] [stderr] Downloaded crossbeam-epoch v0.9.0 [INFO] [stderr] Downloaded futures-lite v1.11.1 [INFO] [stderr] Downloaded tokio v0.3.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a82d6f700e254362a1bd07c69773d19b4d2d2214825701f9f346c7169b304655 [INFO] running `Command { std: "docker" "start" "-a" "a82d6f700e254362a1bd07c69773d19b4d2d2214825701f9f346c7169b304655", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a82d6f700e254362a1bd07c69773d19b4d2d2214825701f9f346c7169b304655", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a82d6f700e254362a1bd07c69773d19b4d2d2214825701f9f346c7169b304655", kill_on_drop: false }` [INFO] [stdout] a82d6f700e254362a1bd07c69773d19b4d2d2214825701f9f346c7169b304655 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4b1d936e345f4733ef1f2bee3adc042e16aba5bd58f246d2f763917338af47bd [INFO] running `Command { std: "docker" "start" "-a" "4b1d936e345f4733ef1f2bee3adc042e16aba5bd58f246d2f763917338af47bd", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/tokio-oneshot-joinhandle/Cargo.toml: unused manifest key: dependencies.tokio.feature [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling const_fn v0.4.2 [INFO] [stderr] Compiling syn v1.0.67 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling fastrand v1.4.0 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling async-task v4.0.2 [INFO] [stderr] Compiling bytes v0.6.0 [INFO] [stderr] Compiling vec-arena v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.6.20 [INFO] [stderr] Compiling weezl v0.1.1 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling humantime v2.0.1 [INFO] [stderr] Compiling bytemuck v1.4.1 [INFO] [stderr] Compiling parser-combinators v0.1.0 (https://github.com/sergey-melnychuk/rust-parser-combinators?tag=0.1.3#9f87600d) [INFO] [stderr] Compiling timer v0.1.0 (/opt/rustwide/workdir/timer) [INFO] [stderr] Compiling parser-combinator v0.1.0 (/opt/rustwide/workdir/parser-combinator) [INFO] [stderr] Compiling thread-demo v0.1.0 (/opt/rustwide/workdir/thread-demo) [INFO] [stderr] Compiling crossbeam-utils v0.8.0 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-bigint v0.3.0 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling tokio v0.3.7 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.8.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling signal-hook-registry v1.2.1 [INFO] [stderr] Compiling nb-connect v1.0.2 [INFO] [stderr] Compiling async-channel v1.5.1 [INFO] [stderr] Compiling backtrace v0.3.53 [INFO] [stderr] Compiling gif v0.11.1 [INFO] [stderr] Compiling parking_lot v0.11.0 [INFO] [stdout] warning: unused variable: `handle1` [INFO] [stdout] --> thread-demo/src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let handle1 = thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling futures-lite v1.11.1 [INFO] [stdout] warning: function is never used: `the_letter_a` [INFO] [stdout] --> parser-combinator/src/lib.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn the_letter_a(input: &str) -> Result<(&str, ()), &str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling polling v2.0.1 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tiff v0.5.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling async-executor v1.3.0 [INFO] [stderr] Compiling async-io v1.1.10 [INFO] [stderr] Compiling blocking v1.0.2 [INFO] [stderr] Compiling png v0.16.7 [INFO] [stderr] Compiling sha-1 v0.9.1 [INFO] [stderr] Compiling async-global-executor v1.3.0 [INFO] [stderr] Compiling mio-http v0.1.0 (/opt/rustwide/workdir/mio-http) [INFO] [stderr] Compiling testing-mio v0.1.0 (/opt/rustwide/workdir/testing-mio) [INFO] [stderr] Compiling async-std v1.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.0 [INFO] [stderr] Compiling regex v1.4.1 [INFO] [stderr] Compiling num-complex v0.3.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling crossbeam v0.8.0 [INFO] [stderr] Compiling crossbeam-parallel-pipeline v0.1.0 (/opt/rustwide/workdir/crossbeam-parallel-pipeline) [INFO] [stderr] Compiling env_logger v0.8.1 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tokio-macros v0.3.0 [INFO] [stderr] Compiling multi-threaded-http v0.1.0 (/opt/rustwide/workdir/multi-threaded-http) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> multi-threaded-http/src/pool.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | thread::{self, JoinHandle}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> multi-threaded-http/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Events`, `Interest`, `Poll`, `TcpListener` [INFO] [stdout] --> multi-threaded-http/src/main.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | net::{TcpListener, TcpStream}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | Events, Interest, Poll, Token, [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `as_string`, `parse_http_request` [INFO] [stdout] --> multi-threaded-http/src/main.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | http::{as_string, parse_http_request, Header, Request, Response}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pool::ThreadPool` [INFO] [stdout] --> multi-threaded-http/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use pool::ThreadPool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read`, `Write`, `collections::HashMap` [INFO] [stdout] --> multi-threaded-http/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | io::{Read, Write}, [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> multi-threaded-http/src/pool.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 15 | Task(Runnable), [INFO] [stdout] | -------------- fn(Box<(dyn FnOnce() + Send + 'static)>) -> Job {Job::Task} defined here [INFO] [stdout] ... [INFO] [stdout] 57 | self.sender.send(Job::Task).unwrap(); // sending Stop to all threads in the pool [INFO] [stdout] | ^^^^^^^^^ expected enum `Job`, found fn item [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Job` [INFO] [stdout] found fn item `fn(Box<(dyn FnOnce() + Send + 'static)>) -> Job {Job::Task}` [INFO] [stdout] help: use parentheses to instantiate this tuple variant [INFO] [stdout] | [INFO] [stdout] 57 | self.sender.send(Job::Task(_)).unwrap(); // sending Stop to all threads in the pool [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> multi-threaded-http/src/main.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | fn handler(req: Request) -> Response { [INFO] [stdout] | ------- ^^^^^^^^ expected struct `Response`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `multi-threaded-http` due to 3 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "4b1d936e345f4733ef1f2bee3adc042e16aba5bd58f246d2f763917338af47bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b1d936e345f4733ef1f2bee3adc042e16aba5bd58f246d2f763917338af47bd", kill_on_drop: false }` [INFO] [stdout] 4b1d936e345f4733ef1f2bee3adc042e16aba5bd58f246d2f763917338af47bd