[INFO] cloning repository https://github.com/xllgl2017/reqrio [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xllgl2017/reqrio" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxllgl2017%2Freqrio", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxllgl2017%2Freqrio'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 02067897e088ff4987fec19117c13021a0df4288 [INFO] checking xllgl2017/reqrio against try#54cf65b8d066c082e536455049b95943cf30378f for pr-151920 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxllgl2017%2Freqrio" "/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/xllgl2017/reqrio [INFO] finished tweaking git repo https://github.com/xllgl2017/reqrio [INFO] tweaked toml for git repo https://github.com/xllgl2017/reqrio written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xllgl2017/reqrio on toolchain 54cf65b8d066c082e536455049b95943cf30378f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+54cf65b8d066c082e536455049b95943cf30378f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xllgl2017/reqrio 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" "+54cf65b8d066c082e536455049b95943cf30378f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zmij v1.0.0 [INFO] [stderr] Downloaded httlib-huffman v0.3.4 [INFO] [stderr] Downloaded httlib-hpack v0.1.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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+54cf65b8d066c082e536455049b95943cf30378f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dea4ff406e4ca0028a0c4f58ae37e6dee687142ee18862741cb5048d09049aa9 [INFO] running `Command { std: "docker" "start" "-a" "dea4ff406e4ca0028a0c4f58ae37e6dee687142ee18862741cb5048d09049aa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dea4ff406e4ca0028a0c4f58ae37e6dee687142ee18862741cb5048d09049aa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dea4ff406e4ca0028a0c4f58ae37e6dee687142ee18862741cb5048d09049aa9", kill_on_drop: false }` [INFO] [stdout] dea4ff406e4ca0028a0c4f58ae37e6dee687142ee18862741cb5048d09049aa9 [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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+54cf65b8d066c082e536455049b95943cf30378f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9c388924310f4c8182784f2b977ef770dd58b887120f3aee1f67fef497cc422 [INFO] running `Command { std: "docker" "start" "-a" "c9c388924310f4c8182784f2b977ef770dd58b887120f3aee1f67fef497cc422", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.104 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Compiling getrandom v0.4.1 [INFO] [stderr] Checking simd-adler32 v0.3.8 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking zmij v1.0.0 [INFO] [stderr] Compiling reqtls v0.1.0 (/opt/rustwide/workdir/reqtls) [INFO] [stderr] Checking brotli-decompressor v5.0.0 [INFO] [stderr] Checking bytemuck v1.25.0 [INFO] [stderr] Compiling reqrio v0.1.0 (/opt/rustwide/workdir/reqrio) [INFO] [stderr] Checking httlib-huffman v0.3.4 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking httlib-hpack v0.1.3 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking brotli v8.0.2 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> reqtls/src/boring/ec_curve.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let mut p256 = EcCurve::new_p256().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> reqtls/src/boring/ec_curve.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut p384 = EcCurve::new_p384().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> reqtls/src/boring/ec_curve.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let mut p521 = EcCurve::new_p521().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking reqrio-json v0.1.7 (/opt/rustwide/workdir/json) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> reqrio/examples/async_h1.rs:3:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> reqrio/examples/async_server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::AsyncReadExt; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> reqrio/examples/async_server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `reqrio::TlsStream` [INFO] [stdout] --> reqrio/examples/async_server.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use reqrio::{TlsConfig, TlsStream, ALPN}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `TlsStream` in the root [INFO] [stdout] | help: a similar name exists in the module: `stream` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> reqrio/src/lib.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 134 | #[cfg(feature = "aync")] [INFO] [stdout] | ---------------- the item is gated behind the `aync` feature [INFO] [stdout] 135 | pub use stream::TlsStream; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> reqrio/examples/async_server.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> reqrio/examples/sync_h1.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let resp = req.get().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> reqrio/examples/async_server.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | let listen = TcpListener::bind("0.0.0.0:7878").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AcReq` [INFO] [stdout] --> reqrio/examples/async_h1.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | let mut req = AcReq::new() [INFO] [stdout] | ^^^^^ use of undeclared type `AcReq` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 10 - let mut req = AcReq::new() [INFO] [stdout] 10 + let mut req = ScReq::new() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> reqrio/examples/async_server.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | let (stream, addr) = listen.accept().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> reqrio/examples/async_server.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>` [INFO] [stdout] --> reqrio/examples/async_server.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut tls_stream = TlsStream::accept(stream, TlsConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | let len = tls_stream.read(&mut buffer).await.unwrap(); [INFO] [stdout] | ---------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `tls_stream` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 16 | let mut tls_stream: Result<_, E> = TlsStream::accept(stream, TlsConfig { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> reqrio/examples/async_h1.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | req.set_url("https://m.so.com").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> reqrio/examples/async_server.rs:28:31 [INFO] [stdout] | [INFO] [stdout] 28 | let len = tls_stream.read(&mut buffer).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> reqrio/examples/async_h1.rs:73:23 [INFO] [stdout] | [INFO] [stdout] 73 | req.set_callback(|data| { [INFO] [stdout] | ^^^^ [INFO] [stdout] 74 | println!("{}", data.len()); [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 73 | req.set_callback(|data: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> reqrio/examples/async_h1.rs:82:15 [INFO] [stdout] | [INFO] [stdout] 82 | let res = req.get().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> reqrio/examples/async_h1.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> reqrio/examples/async_server.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `reqrio` (example "async_server") due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `reqrio` (example "async_h1") due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "c9c388924310f4c8182784f2b977ef770dd58b887120f3aee1f67fef497cc422", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9c388924310f4c8182784f2b977ef770dd58b887120f3aee1f67fef497cc422", kill_on_drop: false }` [INFO] [stdout] c9c388924310f4c8182784f2b977ef770dd58b887120f3aee1f67fef497cc422