[INFO] fetching crate wasmedge_wasi_socket 0.5.5... [INFO] checking wasmedge_wasi_socket-0.5.5 against try#da25749bf5e6ba5ed862ff361c19afff2a986b2d for pr-132712 [INFO] extracting crate wasmedge_wasi_socket 0.5.5 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate wasmedge_wasi_socket 0.5.5 on toolchain da25749bf5e6ba5ed862ff361c19afff2a986b2d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-tc2/source/.cargo/config.toml [INFO] started tweaking crates.io crate wasmedge_wasi_socket 0.5.5 [INFO] finished tweaking crates.io crate wasmedge_wasi_socket 0.5.5 [INFO] tweaked toml for crates.io crate wasmedge_wasi_socket 0.5.5 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate wasmedge_wasi_socket 0.5.5 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" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 040e543ff87d7da81d2ff28a2edbe46296fb664dafd3d43f457bc5bc720b13ce [INFO] running `Command { std: "docker" "start" "-a" "040e543ff87d7da81d2ff28a2edbe46296fb664dafd3d43f457bc5bc720b13ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "040e543ff87d7da81d2ff28a2edbe46296fb664dafd3d43f457bc5bc720b13ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "040e543ff87d7da81d2ff28a2edbe46296fb664dafd3d43f457bc5bc720b13ce", kill_on_drop: false }` [INFO] [stdout] 040e543ff87d7da81d2ff28a2edbe46296fb664dafd3d43f457bc5bc720b13ce [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40140bc4dbcc48cbd7da9c0582ecb35eeda629dc9514c2b2c79b90ca8c53bec0 [INFO] running `Command { std: "docker" "start" "-a" "40140bc4dbcc48cbd7da9c0582ecb35eeda629dc9514c2b2c79b90ca8c53bec0", 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 proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking dns-parser v0.8.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking wasmedge_wasi_socket v0.5.5 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/poll.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::wasi::prelude::*; [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RawFd` in this scope [INFO] [stdout] --> src/poll.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | fd: RawFd, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::fd::RawFd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RawFd` in this scope [INFO] [stdout] --> src/poll.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | fd: RawFd, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::fd::RawFd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsRawFd` in this scope [INFO] [stdout] --> src/poll.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn io( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these traits [INFO] [stdout] | [INFO] [stdout] 1 + use crate::AsRawFd; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::fd::AsRawFd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:134:37 [INFO] [stdout] | [INFO] [stdout] 134 | fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 134 - fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] 134 + fn as_raw_fd(&self) -> prelude::RawFd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:140:38 [INFO] [stdout] | [INFO] [stdout] 140 | fn into_raw_fd(self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 140 - fn into_raw_fd(self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] 140 + fn into_raw_fd(self) -> prelude::RawFd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:146:40 [INFO] [stdout] | [INFO] [stdout] 146 | unsafe fn from_raw_fd(fd: std::os::wasi::prelude::RawFd) -> Self { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 146 - unsafe fn from_raw_fd(fd: std::os::wasi::prelude::RawFd) -> Self { [INFO] [stdout] 146 + unsafe fn from_raw_fd(fd: prelude::RawFd) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:247:37 [INFO] [stdout] | [INFO] [stdout] 247 | fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 247 - fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] 247 + fn as_raw_fd(&self) -> prelude::RawFd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:253:38 [INFO] [stdout] | [INFO] [stdout] 253 | fn into_raw_fd(self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 253 - fn into_raw_fd(self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] 253 + fn into_raw_fd(self) -> prelude::RawFd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:259:40 [INFO] [stdout] | [INFO] [stdout] 259 | unsafe fn from_raw_fd(fd: std::os::wasi::prelude::RawFd) -> Self { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 259 - unsafe fn from_raw_fd(fd: std::os::wasi::prelude::RawFd) -> Self { [INFO] [stdout] 259 + unsafe fn from_raw_fd(fd: prelude::RawFd) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:334:37 [INFO] [stdout] | [INFO] [stdout] 334 | fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 334 - fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] 334 + fn as_raw_fd(&self) -> prelude::RawFd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/socket.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 147 | | pub fn sock_getaddrinfo( [INFO] [stdout] 148 | | node: *const u8, [INFO] [stdout] 149 | | node_len: u32, [INFO] [stdout] ... | [INFO] [stdout] 156 | | ) -> u32; [INFO] [stdout] 157 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/socket.rs:304:27 [INFO] [stdout] | [INFO] [stdout] 304 | ($fn: ident ( $($arg: expr),* $(,)* ) ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 304 | ($fn: ident ( $($arg: expr_2021),* $(,)* ) ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/socket.rs:346:5 [INFO] [stdout] | [INFO] [stdout] 346 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 347 | | pub fn sock_open(addr_family: u8, sock_type: u8, fd: *mut u32) -> u32; [INFO] [stdout] 348 | | pub fn sock_bind(fd: u32, addr: *mut WasiAddress, port: u32) -> u32; [INFO] [stdout] 349 | | pub fn sock_listen(fd: u32, backlog: u32) -> u32; [INFO] [stdout] ... | [INFO] [stdout] 415 | | ) -> u32; [INFO] [stdout] 416 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/wasi_poll.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 102 | | #[cfg(not(feature = "epoll"))] [INFO] [stdout] 103 | | pub fn poll_oneoff(arg0: i32, arg1: i32, arg2: i32, arg3: i32) -> i32; [INFO] [stdout] 104 | | #[cfg(feature = "epoll")] [INFO] [stdout] 105 | | pub fn epoll_oneoff(arg0: i32, arg1: i32, arg2: i32, arg3: i32) -> i32; [INFO] [stdout] 106 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wasmedge_wasi_socket` (lib test) due to 11 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/poll.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::wasi::prelude::*; [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RawFd` in this scope [INFO] [stdout] --> src/poll.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | fd: RawFd, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::fd::RawFd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RawFd` in this scope [INFO] [stdout] --> src/poll.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | fd: RawFd, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::fd::RawFd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsRawFd` in this scope [INFO] [stdout] --> src/poll.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn io( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these traits [INFO] [stdout] | [INFO] [stdout] 1 + use crate::AsRawFd; [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::fd::AsRawFd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:134:37 [INFO] [stdout] | [INFO] [stdout] 134 | fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 134 - fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] 134 + fn as_raw_fd(&self) -> prelude::RawFd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:140:38 [INFO] [stdout] | [INFO] [stdout] 140 | fn into_raw_fd(self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 140 - fn into_raw_fd(self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] 140 + fn into_raw_fd(self) -> prelude::RawFd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:146:40 [INFO] [stdout] | [INFO] [stdout] 146 | unsafe fn from_raw_fd(fd: std::os::wasi::prelude::RawFd) -> Self { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 146 - unsafe fn from_raw_fd(fd: std::os::wasi::prelude::RawFd) -> Self { [INFO] [stdout] 146 + unsafe fn from_raw_fd(fd: prelude::RawFd) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:247:37 [INFO] [stdout] | [INFO] [stdout] 247 | fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 247 - fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] 247 + fn as_raw_fd(&self) -> prelude::RawFd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:253:38 [INFO] [stdout] | [INFO] [stdout] 253 | fn into_raw_fd(self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 253 - fn into_raw_fd(self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] 253 + fn into_raw_fd(self) -> prelude::RawFd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:259:40 [INFO] [stdout] | [INFO] [stdout] 259 | unsafe fn from_raw_fd(fd: std::os::wasi::prelude::RawFd) -> Self { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 259 - unsafe fn from_raw_fd(fd: std::os::wasi::prelude::RawFd) -> Self { [INFO] [stdout] 259 + unsafe fn from_raw_fd(fd: prelude::RawFd) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `wasi` in `os` [INFO] [stdout] --> src/lib.rs:334:37 [INFO] [stdout] | [INFO] [stdout] 334 | fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] | ^^^^ could not find `wasi` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:107:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/da25749bf5e6ba5ed862ff361c19afff2a986b2d/library/std/src/os/mod.rs:106:1 [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 7 + use std::os::unix::prelude; [INFO] [stdout] | [INFO] [stdout] help: if you import `prelude`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 334 - fn as_raw_fd(&self) -> std::os::wasi::prelude::RawFd { [INFO] [stdout] 334 + fn as_raw_fd(&self) -> prelude::RawFd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/socket.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 147 | | pub fn sock_getaddrinfo( [INFO] [stdout] 148 | | node: *const u8, [INFO] [stdout] 149 | | node_len: u32, [INFO] [stdout] ... | [INFO] [stdout] 156 | | ) -> u32; [INFO] [stdout] 157 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/socket.rs:304:27 [INFO] [stdout] | [INFO] [stdout] 304 | ($fn: ident ( $($arg: expr),* $(,)* ) ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 304 | ($fn: ident ( $($arg: expr_2021),* $(,)* ) ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/socket.rs:346:5 [INFO] [stdout] | [INFO] [stdout] 346 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 347 | | pub fn sock_open(addr_family: u8, sock_type: u8, fd: *mut u32) -> u32; [INFO] [stdout] 348 | | pub fn sock_bind(fd: u32, addr: *mut WasiAddress, port: u32) -> u32; [INFO] [stdout] 349 | | pub fn sock_listen(fd: u32, backlog: u32) -> u32; [INFO] [stdout] ... | [INFO] [stdout] 415 | | ) -> u32; [INFO] [stdout] 416 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/wasi_poll.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 102 | | #[cfg(not(feature = "epoll"))] [INFO] [stdout] 103 | | pub fn poll_oneoff(arg0: i32, arg1: i32, arg2: i32, arg3: i32) -> i32; [INFO] [stdout] 104 | | #[cfg(feature = "epoll")] [INFO] [stdout] 105 | | pub fn epoll_oneoff(arg0: i32, arg1: i32, arg2: i32, arg3: i32) -> i32; [INFO] [stdout] 106 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] [INFO] [stderr] error: could not compile `wasmedge_wasi_socket` (lib) due to 11 previous errors; 4 warnings emitted [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [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" "40140bc4dbcc48cbd7da9c0582ecb35eeda629dc9514c2b2c79b90ca8c53bec0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40140bc4dbcc48cbd7da9c0582ecb35eeda629dc9514c2b2c79b90ca8c53bec0", kill_on_drop: false }` [INFO] [stdout] 40140bc4dbcc48cbd7da9c0582ecb35eeda629dc9514c2b2c79b90ca8c53bec0