[INFO] fetching crate tcp_ip 0.1.10... [INFO] testing tcp_ip-0.1.10 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate tcp_ip 0.1.10 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate tcp_ip 0.1.10 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate tcp_ip 0.1.10 [INFO] tweaked toml for crates.io crate tcp_ip 0.1.10 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate tcp_ip 0.1.10 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate tcp_ip 0.1.10 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded c2rust-bitfields v0.19.0 [INFO] [stderr] Downloaded pnet_base v0.35.0 [INFO] [stderr] Downloaded c2rust-bitfields-derive v0.19.0 [INFO] [stderr] Downloaded getifaddrs v0.1.5 [INFO] [stderr] Downloaded mac_address v1.1.8 [INFO] [stderr] Downloaded rand v0.9.0 [INFO] [stderr] Downloaded pnet_packet v0.35.0 [INFO] [stderr] Downloaded futures-lite v2.6.0 [INFO] [stderr] Downloaded clap v4.5.29 [INFO] [stderr] Downloaded pnet_macros_support v0.35.0 [INFO] [stderr] Downloaded miniz_oxide v0.8.4 [INFO] [stderr] Downloaded pnet_macros v0.35.0 [INFO] [stderr] Downloaded zerocopy v0.8.17 [INFO] [stderr] Downloaded tun-rs v1.5.0 [INFO] [stderr] Downloaded zerocopy-derive v0.8.17 [INFO] [stderr] Downloaded clap_builder v4.5.29 [INFO] [stderr] Downloaded wintun-bindings v0.7.30 [INFO] [stderr] Downloaded winnow v0.7.2 [INFO] [stderr] Downloaded rand_core v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11613646b4fa96015d6c3a5afa6fd3a70ad42a65954d4da08ed5703077129e72 [INFO] running `Command { std: "docker" "start" "-a" "11613646b4fa96015d6c3a5afa6fd3a70ad42a65954d4da08ed5703077129e72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11613646b4fa96015d6c3a5afa6fd3a70ad42a65954d4da08ed5703077129e72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11613646b4fa96015d6c3a5afa6fd3a70ad42a65954d4da08ed5703077129e72", kill_on_drop: false }` [INFO] [stdout] 11613646b4fa96015d6c3a5afa6fd3a70ad42a65954d4da08ed5703077129e72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a26fc972632291f6dffd61a78f24472d12303e6a06bd06ece5c01b26f950430 [INFO] running `Command { std: "docker" "start" "-a" "8a26fc972632291f6dffd61a78f24472d12303e6a06bd06ece5c01b26f950430", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling zerocopy v0.8.17 [INFO] [stderr] Compiling winnow v0.7.2 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling no-std-net v0.6.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling pnet_base v0.35.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling pnet_macros_support v0.35.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rand_core v0.9.0 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling pnet_macros v0.35.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling pnet_packet v0.35.0 [INFO] [stderr] Compiling num_enum v0.7.3 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tcp_ip v0.1.10 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tcp/tcp_queue.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn peek(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 46 | pub fn peek(&mut self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.19s [INFO] running `Command { std: "docker" "inspect" "8a26fc972632291f6dffd61a78f24472d12303e6a06bd06ece5c01b26f950430", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a26fc972632291f6dffd61a78f24472d12303e6a06bd06ece5c01b26f950430", kill_on_drop: false }` [INFO] [stdout] 8a26fc972632291f6dffd61a78f24472d12303e6a06bd06ece5c01b26f950430 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96e194886d9fa8bbcf1b900659dd8c22df306743598f7392523f9f4f8e745174 [INFO] running `Command { std: "docker" "start" "-a" "96e194886d9fa8bbcf1b900659dd8c22df306743598f7392523f9f4f8e745174", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling futures-lite v2.6.0 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Compiling event-listener-strategy v0.5.3 [INFO] [stderr] Compiling clap_builder v4.5.29 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling rand_core v0.9.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling mac_address v1.1.8 [INFO] [stderr] Compiling getifaddrs v0.1.5 [INFO] [stderr] Compiling clap v4.5.29 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling pnet_macros v0.35.0 [INFO] [stderr] Compiling env_logger v0.11.6 [INFO] [stderr] Compiling pnet_packet v0.35.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tun-rs v1.5.0 [INFO] [stderr] Compiling tcp_ip v0.1.10 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tcp/tcp_queue.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn peek(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 46 | pub fn peek(&mut self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tcp/tcp_queue.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn peek(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 46 | pub fn peek(&mut self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 51.84s [INFO] running `Command { std: "docker" "inspect" "96e194886d9fa8bbcf1b900659dd8c22df306743598f7392523f9f4f8e745174", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96e194886d9fa8bbcf1b900659dd8c22df306743598f7392523f9f4f8e745174", kill_on_drop: false }` [INFO] [stdout] 96e194886d9fa8bbcf1b900659dd8c22df306743598f7392523f9f4f8e745174 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 18f8f55b65485241427410e67397a4586623248f370b93dfcf9720c9fe42d51c [INFO] running `Command { std: "docker" "start" "-a" "18f8f55b65485241427410e67397a4586623248f370b93dfcf9720c9fe42d51c", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tcp/tcp_queue.rs:46:17 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn peek(&mut self) -> Option { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 46 | pub fn peek(&mut self) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `tcp_ip` (lib) generated 1 warning (run `cargo fix --lib -p tcp_ip` to apply 1 suggestion) [INFO] [stderr] warning: `tcp_ip` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tcp_ip-8fe532dd36533582) [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test buffer::tests::test_ring_buffer ... ok [INFO] [stdout] test tcp::tcp_queue::tests::test_push_and_peek ... ok [INFO] [stdout] test tcp::tcp_queue::tests::test_push_with_duplicate_handling ... ok [INFO] [stdout] test tcp::tcp_queue::tests::test_ordering ... ok [INFO] [stdout] test tcp::tcp_queue::tests::test_pop ... ok [INFO] [stdout] test tcp::tcp_queue::tests::test_len ... ok [INFO] [stdout] test buffer::tests::test_fixed_buffer ... ok [INFO] [stdout] test tcp::tcp_queue::tests::test_clear ... ok [INFO] [stdout] test tcp::tcp_queue::tests::test_drop_after_pop ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Doc-tests tcp_ip [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/tcp/mod.rs - tcp::TcpStream (line 62) - compile ... FAILED [INFO] [stdout] test src/ip_stack.rs - ip_stack::ip_stack (line 252) ... FAILED [INFO] [stdout] test src/tcp/mod.rs - tcp::TcpListener (line 29) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 2) - compile ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/tcp/mod.rs - tcp::TcpStream (line 62) stdout ---- [INFO] [stdout] error[E0599]: no method named `connect` found for struct `tcp_ip::tcp::TcpStream` in the current scope [INFO] [stdout] --> src/tcp/mod.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 14 | let mut stream = tcp_ip::tcp::TcpStream::bind(ip_stack.clone(),src)? [INFO] [stdout] | ______________________- [INFO] [stdout] 15 | | .connect(dst).await?; [INFO] [stdout] | | -^^^^^^^ this is an associated function, not a method [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] = note: the candidate is defined in an impl for the type `tcp_ip::tcp::TcpStream` [INFO] [stdout] help: use associated function syntax instead [INFO] [stdout] | [INFO] [stdout] 14 - let mut stream = tcp_ip::tcp::TcpStream::bind(ip_stack.clone(),src)? [INFO] [stdout] 15 - .connect(dst).await?; [INFO] [stdout] 14 + let mut stream = tcp_ip::tcp::TcpStream::connect(dst).await?; [INFO] [stdout] | [INFO] [stdout] help: there is a method `connect_to` with a similar name [INFO] [stdout] | [INFO] [stdout] 15 | .connect_to(dst).await?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ip_stack.rs - ip_stack::ip_stack (line 252) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ip_stack.rs:257:88 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main(){ [INFO] [stdout] | ________________- [INFO] [stdout] 7 | | let (ip_stack, ip_stack_send, ip_stack_recv) = tcp_ip::ip_stack(Default::default())?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 11 | | let mut tcp_listener = TcpListener::bind_all(ip_stack.clone()).await?; [INFO] [stdout] 12 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ip_stack.rs:261:73 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main(){ [INFO] [stdout] | ________________- [INFO] [stdout] 7 | | let (ip_stack, ip_stack_send, ip_stack_recv) = tcp_ip::ip_stack(Default::default())?; [INFO] [stdout] ... | [INFO] [stdout] 11 | | let mut tcp_listener = TcpListener::bind_all(ip_stack.clone()).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 12 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/ip_stack.rs:256:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/tcp/mod.rs - tcp::TcpListener (line 29) stdout ---- [INFO] [stdout] error[E0284]: type annotations needed [INFO] [stdout] --> src/tcp/mod.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 16 | let src = "10.0.0.2:8080".parse().unwrap(); [INFO] [stdout] | ^^^ ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `<_ as FromStr>::Err == _` [INFO] [stdout] help: consider giving `src` an explicit type [INFO] [stdout] | [INFO] [stdout] 16 | let src: /* Type */ = "10.0.0.2:8080".parse().unwrap(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0284`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 2) stdout ---- [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:24:90 [INFO] [stdout] | [INFO] [stdout] 24 | let mut tcp_listener = tcp_ip::tcp::TcpListener::bind(ip_stack.clone(), "0.0.0.0:80".parse().unwrap()).await?; [INFO] [stdout] | ------------------------------ ^^^^^ cannot infer type of the type parameter `F` declared on the method `parse` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: ToSocketAddr` [INFO] [stdout] = help: the following types implement trait `ToSocketAddr`: [INFO] [stdout] &SocketAddrV4 [INFO] [stdout] &SocketAddrV6 [INFO] [stdout] &String [INFO] [stdout] &std::net::SocketAddr [INFO] [stdout] &str [INFO] [stdout] SocketAddrV4 [INFO] [stdout] SocketAddrV6 [INFO] [stdout] String [INFO] [stdout] std::net::SocketAddr [INFO] [stdout] note: required by a bound in `tcp_ip::tcp::TcpListener::bind` [INFO] [stdout] --> /opt/rustwide/workdir/src/tcp/mod.rs:118:26 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn bind(ip_stack: IpStack, local_addr: A) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^ required by this bound in `TcpListener::bind` [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 24 | let mut tcp_listener = tcp_ip::tcp::TcpListener::bind(ip_stack.clone(), "0.0.0.0:80".parse::().unwrap()).await?; [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0283`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/ip_stack.rs - ip_stack::ip_stack (line 252) [INFO] [stdout] src/lib.rs - (line 2) [INFO] [stdout] src/tcp/mod.rs - tcp::TcpListener (line 29) [INFO] [stdout] src/tcp/mod.rs - tcp::TcpStream (line 62) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.52s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "18f8f55b65485241427410e67397a4586623248f370b93dfcf9720c9fe42d51c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18f8f55b65485241427410e67397a4586623248f370b93dfcf9720c9fe42d51c", kill_on_drop: false }` [INFO] [stdout] 18f8f55b65485241427410e67397a4586623248f370b93dfcf9720c9fe42d51c