[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/d42d1c3315e4946b55695479e70dc3735a0ff28b against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcuppar%2Frnet" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cuppar/rnet on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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-4-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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2986733c6997356ccb2a42c7faba0615c6e2bc8484d20f9646001554f2f011fd [INFO] running `Command { std: "docker" "start" "-a" "2986733c6997356ccb2a42c7faba0615c6e2bc8484d20f9646001554f2f011fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2986733c6997356ccb2a42c7faba0615c6e2bc8484d20f9646001554f2f011fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2986733c6997356ccb2a42c7faba0615c6e2bc8484d20f9646001554f2f011fd", kill_on_drop: false }` [INFO] [stdout] 2986733c6997356ccb2a42c7faba0615c6e2bc8484d20f9646001554f2f011fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b059ce1001070503754c82777feaf434d3d28a9f8f112cddb0849c3d3c8797b0 [INFO] running `Command { std: "docker" "start" "-a" "b059ce1001070503754c82777feaf434d3d28a9f8f112cddb0849c3d3c8797b0", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [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_client.rs (1 fix) [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/net.rs (1 fix) [INFO] [stderr] Fixed src/tcp_client.rs (1 fix) [INFO] [stderr] Fixed src/tcp_server.rs (1 fix) [INFO] [stderr] Fixed src/udp_client.rs (1 fix) [INFO] [stderr] Fixed src/udp_server.rs (2 fixes) [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.39s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rnet v0.1.0 (/tmp/fixit) [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 this struct [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 this struct [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 modules [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 modules [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 this struct [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 this enum [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 this enum [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 this enum [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 check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "b059ce1001070503754c82777feaf434d3d28a9f8f112cddb0849c3d3c8797b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b059ce1001070503754c82777feaf434d3d28a9f8f112cddb0849c3d3c8797b0", kill_on_drop: false }` [INFO] [stdout] b059ce1001070503754c82777feaf434d3d28a9f8f112cddb0849c3d3c8797b0