[INFO] cloning repository https://github.com/koya1616/rust-http [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/koya1616/rust-http" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkoya1616%2Frust-http", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkoya1616%2Frust-http'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f6069019c1e0d8702060305c1200c67ee465dbc [INFO] building koya1616/rust-http against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkoya1616%2Frust-http" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/koya1616/rust-http [INFO] finished tweaking git repo https://github.com/koya1616/rust-http [INFO] tweaked toml for git repo https://github.com/koya1616/rust-http written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/koya1616/rust-http on toolchain 23647e694de8d0904848ad068b2e0ec2dd098c37 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/koya1616/rust-http 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" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f010ed3669f64845304cbee000c273e40a9270176e93871f2dce6b897374928 [INFO] running `Command { std: "docker" "start" "-a" "2f010ed3669f64845304cbee000c273e40a9270176e93871f2dce6b897374928", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f010ed3669f64845304cbee000c273e40a9270176e93871f2dce6b897374928", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f010ed3669f64845304cbee000c273e40a9270176e93871f2dce6b897374928", kill_on_drop: false }` [INFO] [stdout] 2f010ed3669f64845304cbee000c273e40a9270176e93871f2dce6b897374928 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 0fa2080ea852f9b56a769249310b7eae9c02560e807b95351cb098668b6e0bbe [INFO] running `Command { std: "docker" "start" "-a" "0fa2080ea852f9b56a769249310b7eae9c02560e807b95351cb098668b6e0bbe", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `unix` in `os` [INFO] [stdout] --> src/sys/fd.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use std::os::unix::io::OwnedFd; [INFO] [stdout] | ^^^^ could not find `unix` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/23647e694de8d0904848ad068b2e0ec2dd098c37/library/std/src/os/mod.rs:29:4 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/23647e694de8d0904848ad068b2e0ec2dd098c37/library/std/src/os/mod.rs:84:40 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `each_addr` in module `super` [INFO] [stdout] --> src/net/tcp.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | super::each_addr(addr, TcpListener::bind).map(TcpListenerMyself) [INFO] [stdout] | ^^^^^^^^^ not found in `super` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET` in crate `libc` [INFO] [stdout] --> src/sys/net.rs:14:35 [INFO] [stdout] | [INFO] [stdout] 14 | SocketAddr::V4(..) => libc::AF_INET, [INFO] [stdout] | ^^^^^^^ not found in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET6` in crate `libc` [INFO] [stdout] --> src/sys/net.rs:15:35 [INFO] [stdout] | [INFO] [stdout] 15 | SocketAddr::V6(..) => libc::AF_INET6, [INFO] [stdout] | ^^^^^^^^ not found in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `socket` in crate `libc` [INFO] [stdout] --> src/sys/net.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | let fd = cvt(libc::socket(fam, ty | libc::SOCK_CLOEXEC, 0))?; [INFO] [stdout] | ^^^^^^ not found in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCK_CLOEXEC` in crate `libc` [INFO] [stdout] --> src/sys/net.rs:23:49 [INFO] [stdout] | [INFO] [stdout] 23 | let fd = cvt(libc::socket(fam, ty | libc::SOCK_CLOEXEC, 0))?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.155/src/wasi.rs:225:1 [INFO] [stdout] | [INFO] [stdout] 225 | pub const O_CLOEXEC: c_int = 0x0; [INFO] [stdout] | -------------------------- similarly named constant `O_CLOEXEC` defined here [INFO] [stdout] | [INFO] [stdout] help: a constant with a similar name exists [INFO] [stdout] | [INFO] [stdout] 23 - let fd = cvt(libc::socket(fam, ty | libc::SOCK_CLOEXEC, 0))?; [INFO] [stdout] 23 + let fd = cvt(libc::socket(fam, ty | libc::O_CLOEXEC, 0))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `socket_addr` found for struct `sys_common::net::TcpListener` in the current scope [INFO] [stdout] --> src/net/tcp.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | self.0.socket_addr() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `sys_common::net::TcpListener` [INFO] [stdout] | [INFO] [stdout] ::: src/sys_common/net.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct TcpListener { [INFO] [stdout] | ---------------------- method `socket_addr` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/net/tcp.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | Incoming { listener: self } [INFO] [stdout] | ^^^^ expected `&TcpListener`, found `&TcpListenerMyself` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&sys_common::net::TcpListener` [INFO] [stdout] found reference `&TcpListenerMyself` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `0` on type `sys_common::net::TcpListener` [INFO] [stdout] --> src/net/tcp.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | self.0 [INFO] [stdout] | ^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `c` [INFO] [stdout] --> src/sys_common/net.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | cvt(c::setsockopt( [INFO] [stdout] | ^ use of unresolved module or unlinked crate `c` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `c`, use `cargo add c` to add it to your `Cargo.toml` [INFO] [stdout] help: a type parameter with a similar name exists [INFO] [stdout] | [INFO] [stdout] 15 - cvt(c::setsockopt( [INFO] [stdout] 15 + cvt(T::setsockopt( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_raw` found for reference `&Socket` in the current scope [INFO] [stdout] --> src/sys_common/net.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | sock.as_raw(), [INFO] [stdout] | ^^^^^^ method not found in `&Socket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init` in this scope [INFO] [stdout] --> src/sys_common/net.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | init(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `c` [INFO] [stdout] --> src/sys_common/net.rs:32:34 [INFO] [stdout] | [INFO] [stdout] 32 | let sock = Socket::new(addr, c::SOCK_STREAM)?; [INFO] [stdout] | ^ use of unresolved module or unlinked crate `c` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `c`, use `cargo add c` 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 `c` [INFO] [stdout] --> src/sys_common/net.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | setsockopt(&sock, c::SOL_SOCKET, c::SO_REUSEADDR, 1 as c_int)?; [INFO] [stdout] | ^ use of unresolved module or unlinked crate `c` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `c`, use `cargo add c` 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 `c` [INFO] [stdout] --> src/sys_common/net.rs:34:38 [INFO] [stdout] | [INFO] [stdout] 34 | setsockopt(&sock, c::SOL_SOCKET, c::SO_REUSEADDR, 1 as c_int)?; [INFO] [stdout] | ^ use of unresolved module or unlinked crate `c` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `c`, use `cargo add c` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_inner` found for reference `&SocketAddr` in the current scope [INFO] [stdout] --> src/sys_common/net.rs:37:28 [INFO] [stdout] | [INFO] [stdout] 37 | let (addr, len) = addr.into_inner(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `&SocketAddr` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `IntoInner` defines an item `into_inner`, perhaps you need to implement it [INFO] [stdout] --> src/net/tcp.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait IntoInner { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `c` [INFO] [stdout] --> src/sys_common/net.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | cvt(unsafe { c::bind(sock.as_raw(), addr.as_ptr(), len as _) })?; [INFO] [stdout] | ^ use of unresolved module or unlinked crate `c` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `c`, use `cargo add c` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_raw` found for struct `Socket` in the current scope [INFO] [stdout] --> src/sys_common/net.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 38 | cvt(unsafe { c::bind(sock.as_raw(), addr.as_ptr(), len as _) })?; [INFO] [stdout] | ^^^^^^ method not found in `Socket` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/net.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Socket(FileDesc); [INFO] [stdout] | ----------------- method `as_raw` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/sys_common/net.rs:38:41 [INFO] [stdout] | [INFO] [stdout] 38 | cvt(unsafe { c::bind(sock.as_raw(), addr.as_ptr(), len as _) })?; [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `c` [INFO] [stdout] --> src/sys_common/net.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 43 | cvt(unsafe { c::listen(sock.as_raw(), backlog) })?; [INFO] [stdout] | ^ use of unresolved module or unlinked crate `c` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `c`, use `cargo add c` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_raw` found for struct `Socket` in the current scope [INFO] [stdout] --> src/sys_common/net.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | cvt(unsafe { c::listen(sock.as_raw(), backlog) })?; [INFO] [stdout] | ^^^^^^ method not found in `Socket` [INFO] [stdout] | [INFO] [stdout] ::: src/sys/net.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Socket(FileDesc); [INFO] [stdout] | ----------------- method `as_raw` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `tcp::Incoming<'_>` is not an iterator [INFO] [stdout] --> src/main.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | for stream in listener.incoming() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `tcp::Incoming<'_>` is not an iterator [INFO] [stdout] | [INFO] [stdout] help: the trait `Iterator` is not implemented for `tcp::Incoming<'_>` [INFO] [stdout] --> src/net/tcp.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Incoming<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: required for `tcp::Incoming<'_>` to implement `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `c` [INFO] [stdout] --> src/sys_common/net.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | mem::size_of::() as c::socklen_t, [INFO] [stdout] | ^ use of unresolved module or unlinked crate `c` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `c`, use `cargo add c` to add it to your `Cargo.toml` [INFO] [stdout] help: a type parameter with a similar name exists [INFO] [stdout] | [INFO] [stdout] 20 - mem::size_of::() as c::socklen_t, [INFO] [stdout] 20 + mem::size_of::() as T::socklen_t, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0308, E0425, E0433, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `app` (bin "app") due to 23 previous errors [INFO] running `Command { std: "docker" "inspect" "0fa2080ea852f9b56a769249310b7eae9c02560e807b95351cb098668b6e0bbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0fa2080ea852f9b56a769249310b7eae9c02560e807b95351cb098668b6e0bbe", kill_on_drop: false }` [INFO] [stdout] 0fa2080ea852f9b56a769249310b7eae9c02560e807b95351cb098668b6e0bbe