[INFO] cloning repository https://github.com/cuppar/rnet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cuppar/rnet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcuppar%2Frnet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcuppar%2Frnet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d42d1c3315e4946b55695479e70dc3735a0ff28b [INFO] checking cuppar/rnet against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcuppar%2Frnet" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cuppar/rnet on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cuppar/rnet [INFO] finished tweaking git repo https://github.com/cuppar/rnet [INFO] tweaked toml for git repo https://github.com/cuppar/rnet written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cuppar/rnet 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.151 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 518a59f9ecb1ad311144b038939933fbdc98816a92e542a877f647a5e909c8c8 [INFO] running `Command { std: "docker" "start" "-a" "518a59f9ecb1ad311144b038939933fbdc98816a92e542a877f647a5e909c8c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "518a59f9ecb1ad311144b038939933fbdc98816a92e542a877f647a5e909c8c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "518a59f9ecb1ad311144b038939933fbdc98816a92e542a877f647a5e909c8c8", kill_on_drop: false }` [INFO] [stdout] 518a59f9ecb1ad311144b038939933fbdc98816a92e542a877f647a5e909c8c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 474e15ac11e3befa103971f1f8b16cfa97a6049c0aac7d139cf1390c74fd3693 [INFO] running `Command { std: "docker" "start" "-a" "474e15ac11e3befa103971f1f8b16cfa97a6049c0aac7d139cf1390c74fd3693", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rnet v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Read`, `Write`, `cmp`, `net::TcpStream`, `self`, `time::Duration` [INFO] [stdout] --> src/tcp_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | io::{self, BufRead, BufReader, Read, Write}, [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^ [INFO] [stdout] 4 | net::TcpStream, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 5 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpListener` [INFO] [stdout] --> src/tcp_server.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | net::{TcpListener, TcpStream}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `net::UdpSocket`, `thread`, `time::Duration` [INFO] [stdout] --> src/udp_server.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{net::UdpSocket, thread, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rng`, `thread_rng` [INFO] [stdout] --> src/udp_server.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io`, `net::UdpSocket` [INFO] [stdout] --> src/udp_client.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io, net::UdpSocket}; [INFO] [stdout] | ^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::IpAddr` [INFO] [stdout] --> src/net.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::IpAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read`, `cmp` [INFO] [stdout] --> src/tcp_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | io::{self, BufRead, BufReader, Read, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/tcp_server.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_client` is never used [INFO] [stdout] --> src/tcp_server.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn handle_client(mut stream: TcpStream) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global` [INFO] [stdout] --> src/net.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let global: IpAddr = IpAddr::from([0, 0, 0x1c9, 0, 0, 0xafc8, 0, 0x1]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_global` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.30s [INFO] running `Command { std: "docker" "inspect" "474e15ac11e3befa103971f1f8b16cfa97a6049c0aac7d139cf1390c74fd3693", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "474e15ac11e3befa103971f1f8b16cfa97a6049c0aac7d139cf1390c74fd3693", kill_on_drop: false }` [INFO] [stdout] 474e15ac11e3befa103971f1f8b16cfa97a6049c0aac7d139cf1390c74fd3693 [INFO] checking cuppar/rnet against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcuppar%2Frnet" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cuppar/rnet on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cuppar/rnet [INFO] finished tweaking git repo https://github.com/cuppar/rnet [INFO] tweaked toml for git repo https://github.com/cuppar/rnet written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/cuppar/rnet 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 22e46c5ea6cea1baf741c5229a636ef3eafce6beaf9d19b96bceb924c200ea78 [INFO] running `Command { std: "docker" "start" "-a" "22e46c5ea6cea1baf741c5229a636ef3eafce6beaf9d19b96bceb924c200ea78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22e46c5ea6cea1baf741c5229a636ef3eafce6beaf9d19b96bceb924c200ea78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22e46c5ea6cea1baf741c5229a636ef3eafce6beaf9d19b96bceb924c200ea78", kill_on_drop: false }` [INFO] [stdout] 22e46c5ea6cea1baf741c5229a636ef3eafce6beaf9d19b96bceb924c200ea78 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 17b841290fde74dc8b0e53f9b2f4f5fc6efda2cc0fd4920b20f8ee77335ff3fc [INFO] running `Command { std: "docker" "start" "-a" "17b841290fde74dc8b0e53f9b2f4f5fc6efda2cc0fd4920b20f8ee77335ff3fc", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rnet v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/tcp_server.rs (1 fix) [INFO] [stderr] Fixed src/tcp_client.rs (1 fix) [INFO] [stderr] Fixed src/udp_server.rs (2 fixes) [INFO] [stderr] Fixed src/net.rs (1 fix) [INFO] [stderr] Fixed src/udp_client.rs (1 fix) [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/tcp_server.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_client` is never used [INFO] [stdout] --> src/tcp_server.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn handle_client(mut stream: TcpStream) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpStream` [INFO] [stdout] --> src/tcp_client.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | TcpStream::connect_timeout(&"127.0.0.1:8080".parse().unwrap(), Duration::from_secs(1)) [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TcpStream` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/tcp_client.rs:5:72 [INFO] [stdout] | [INFO] [stdout] 5 | TcpStream::connect_timeout(&"127.0.0.1:8080".parse().unwrap(), Duration::from_secs(1)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/tcp_client.rs:9:32 [INFO] [stdout] | [INFO] [stdout] 9 | .set_read_timeout(Some(Duration::from_secs(3))) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io` [INFO] [stdout] --> src/tcp_client.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | io::stdin() [INFO] [stdout] | ^^ use of undeclared crate or module `io` [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 16 | i8::stdin() [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::io; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufReader` [INFO] [stdout] --> src/tcp_client.rs:24:26 [INFO] [stdout] | [INFO] [stdout] 24 | let mut reader = BufReader::new(&stream); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BufReader` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::BufReader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpListener` [INFO] [stdout] --> src/tcp_server.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | let listener = TcpListener::bind("0.0.0.0:8080").expect("Could not bind"); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `TcpListener` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UdpSocket` [INFO] [stdout] --> src/udp_server.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | let socket = UdpSocket::bind("0.0.0.0:8084").expect("Could not bind socket"); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `UdpSocket` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use std::net::UdpSocket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/udp_server.rs:18:30 [INFO] [stdout] | [INFO] [stdout] 18 | handles.push(thread::spawn(move || { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `thread` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 + use crate::thread; [INFO] [stdout] | [INFO] [stdout] 3 + use std::thread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/udp_server.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | let sleep = thread_rng().gen_range(2..8); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/udp_server.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | thread::sleep(Duration::from_secs(sleep)); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `thread` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 + use crate::thread; [INFO] [stdout] | [INFO] [stdout] 3 + use std::thread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/udp_server.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 26 | thread::sleep(Duration::from_secs(sleep)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 + use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UdpSocket` [INFO] [stdout] --> src/udp_client.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | let socket = UdpSocket::bind("127.0.0.1:3333").expect("Failed bind client socket"); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `UdpSocket` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::net::UdpSocket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io` [INFO] [stdout] --> src/udp_client.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | io::stdin() [INFO] [stdout] | ^^ use of undeclared crate or module `io` [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 17 | i8::stdin() [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::io; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IpAddr` in this scope [INFO] [stdout] --> src/net.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | let local: IpAddr = "127.0.0.1".parse().unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::net::IpAddr; [INFO] [stdout] | [INFO] [stdout] 2 + use std::net::IpAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IpAddr` in this scope [INFO] [stdout] --> src/net.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | let global: IpAddr = IpAddr::from([0, 0, 0x1c9, 0, 0, 0xafc8, 0, 0x1]); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::net::IpAddr; [INFO] [stdout] | [INFO] [stdout] 2 + use std::net::IpAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IpAddr` [INFO] [stdout] --> src/net.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | let global: IpAddr = IpAddr::from([0, 0, 0x1c9, 0, 0, 0xafc8, 0, 0x1]); [INFO] [stdout] | ^^^^^^ use of undeclared type `IpAddr` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::net::IpAddr; [INFO] [stdout] | [INFO] [stdout] 2 + use std::net::IpAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rnet` (bin "rnet" test) due to 17 previous errors [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "17b841290fde74dc8b0e53f9b2f4f5fc6efda2cc0fd4920b20f8ee77335ff3fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17b841290fde74dc8b0e53f9b2f4f5fc6efda2cc0fd4920b20f8ee77335ff3fc", kill_on_drop: false }` [INFO] [stdout] 17b841290fde74dc8b0e53f9b2f4f5fc6efda2cc0fd4920b20f8ee77335ff3fc