[INFO] cloning repository https://github.com/iamaliybi/rustrate [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iamaliybi/rustrate" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamaliybi%2Frustrate", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamaliybi%2Frustrate'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5bfdb9a37f08451da5ec95117548f1ce461d5632 [INFO] testing iamaliybi/rustrate against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamaliybi%2Frustrate" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/iamaliybi/rustrate [INFO] finished tweaking git repo https://github.com/iamaliybi/rustrate [INFO] tweaked toml for git repo https://github.com/iamaliybi/rustrate written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/iamaliybi/rustrate on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/iamaliybi/rustrate 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hpack v0.3.0 [INFO] [stderr] Downloaded rustls v0.23.31 [INFO] [stderr] Downloaded aws-lc-rs v1.13.3 [INFO] [stderr] Downloaded tokio v1.47.0 [INFO] [stderr] Downloaded aws-lc-sys v0.30.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9842e88385d7f1c6a0c8046996681c752169936b6d54e493971671c770391a1d [INFO] running `Command { std: "docker" "start" "-a" "9842e88385d7f1c6a0c8046996681c752169936b6d54e493971671c770391a1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9842e88385d7f1c6a0c8046996681c752169936b6d54e493971671c770391a1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9842e88385d7f1c6a0c8046996681c752169936b6d54e493971671c770391a1d", kill_on_drop: false }` [INFO] [stdout] 9842e88385d7f1c6a0c8046996681c752169936b6d54e493971671c770391a1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f5acc394df634ec3019a661bfbb8a183ddb466174e86daf49036e26936b7a8b [INFO] running `Command { std: "docker" "start" "-a" "5f5acc394df634ec3019a661bfbb8a183ddb466174e86daf49036e26936b7a8b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling aws-lc-rs v1.13.3 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling hpack v0.3.0 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling cc v1.2.31 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling aws-lc-sys v0.30.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tokio v1.47.0 [INFO] [stderr] Compiling rustls-webpki v0.103.4 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling rustrate v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `crate::protocols::h2::H2FrameBuilder` [INFO] [stdout] --> src/protocols/h2/frames_manager.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::protocols::h2::{H2FrameBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `H2FrameBuilder` in `protocols::h2` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] crate::protocols::h2::frame_builder::H2FrameBuilder [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `timeout` [INFO] [stdout] --> src/connection.rs:7:46 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils::helper::{set_read_timeout, timeout}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::enums::HttpVersion` [INFO] [stdout] --> src/enums/h2_frame_type.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enums::HttpVersion; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::enums::H2FrameType::Unknown` [INFO] [stdout] --> src/enums/h2_setting_id.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enums::H2FrameType::Unknown; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> src/traits/response_builder.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::enums::HttpStatusCode` [INFO] [stdout] --> src/traits/response_builder.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::enums::HttpStatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/models/response.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IOStream` [INFO] [stdout] --> src/models/response.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::traits::{IOStream, ResponseBuilder}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> src/response/http2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::enums::HttpStatusCode` [INFO] [stdout] --> src/response/http2.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::enums::HttpStatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> src/response/http3.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::enums::HttpStatusCode` [INFO] [stdout] --> src/response/http3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::enums::HttpStatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/server.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 30 | / loop { [INFO] [stdout] 31 | | // Clone Arc for each connection [INFO] [stdout] 32 | | let server = Arc::clone(&server); [INFO] [stdout] ... | [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 67 | [INFO] [stdout] 68 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/server.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / tokio::spawn(async move { [INFO] [stdout] 74 | | if let Err(e) = crate::connection::serve(stream, addr, server).await { [INFO] [stdout] 75 | | // Handle errors from serving connection [INFO] [stdout] 76 | | eprintln!("{}", e); [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | }); [INFO] [stdout] | |______^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Send` is not implemented for `dyn std::error::Error` [INFO] [stdout] note: future is not `Send` as this value is used across an await [INFO] [stdout] --> src/protocols/h2/connection_manager.rs:59:64 [INFO] [stdout] | [INFO] [stdout] 59 | let frame = self.read_header().await?.read(&mut self.reader).await?; [INFO] [stdout] | ------------------------- ^^^^^ await occurs here, with `self.read_header().await?` maybe used later [INFO] [stdout] | | [INFO] [stdout] | has type `ControlFlow>, Frame>` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.0/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/utils/helper.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | Err(e) => Err(Box::new(HttpError::RequestTimeout)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_type` [INFO] [stdout] --> src/response/http2.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | fn build(&mut self, content_type: &str, content_length: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_length` [INFO] [stdout] --> src/response/http2.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 23 | fn build(&mut self, content_type: &str, content_length: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_type` [INFO] [stdout] --> src/response/http3.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | fn build(&mut self, content_type: &str, content_length: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_length` [INFO] [stdout] --> src/response/http3.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 23 | fn build(&mut self, content_type: &str, content_length: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame` [INFO] [stdout] --> src/protocols/h2/connection_manager.rs:113:38 [INFO] [stdout] | [INFO] [stdout] 113 | async fn handle_settings(&mut self, frame: Frame) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustrate` (bin "rustrate") due to 2 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5f5acc394df634ec3019a661bfbb8a183ddb466174e86daf49036e26936b7a8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f5acc394df634ec3019a661bfbb8a183ddb466174e86daf49036e26936b7a8b", kill_on_drop: false }` [INFO] [stdout] 5f5acc394df634ec3019a661bfbb8a183ddb466174e86daf49036e26936b7a8b