[INFO] fetching crate base-coroutine 0.2.0... [INFO] checking base-coroutine-0.2.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate base-coroutine 0.2.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate base-coroutine 0.2.0 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 crates.io crate base-coroutine 0.2.0 [INFO] finished tweaking crates.io crate base-coroutine 0.2.0 [INFO] tweaked toml for crates.io crate base-coroutine 0.2.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 70 packages to latest compatible versions [INFO] [stderr] Adding generator v0.7.5 (available: v0.8.3) [INFO] [stderr] Adding hermit-abi v0.3.9 (available: v0.4.0) [INFO] [stderr] Adding loom v0.5.6 (available: v0.7.2) [INFO] [stderr] Adding matchers v0.1.0 (available: v0.2.0) [INFO] [stderr] Adding nu-ansi-term v0.46.0 (available: v0.50.1) [INFO] [stderr] Adding object-collection v0.0.3 (available: v0.0.5) [INFO] [stderr] Adding object-collection v0.0.4 (available: v0.0.5) [INFO] [stderr] Adding regex-automata v0.1.10 (available: v0.4.7) [INFO] [stderr] Adding regex-syntax v0.6.29 (available: v0.8.4) [INFO] [stderr] Adding timer-utils v0.0.3 (available: v0.0.4) [INFO] [stderr] Adding windows v0.48.0 (available: v0.58.0) [INFO] [stderr] Adding windows-sys v0.42.0 (available: v0.59.0) [INFO] [stderr] Adding windows-targets v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_gnullvm v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_msvc v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_gnu v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_msvc v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnu v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnullvm v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_msvc v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_msvc v0.48.5 (available: v0.52.6) [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] [stderr] warning: version requirement `0.5.2+5.3.0-patched` for dependency `jemalloc-sys` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd7ef06726323513b2197e7d5ff10e0a00becc8d8bae28f7d83ed12b0a91fb4f [INFO] running `Command { std: "docker" "start" "-a" "cd7ef06726323513b2197e7d5ff10e0a00becc8d8bae28f7d83ed12b0a91fb4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd7ef06726323513b2197e7d5ff10e0a00becc8d8bae28f7d83ed12b0a91fb4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd7ef06726323513b2197e7d5ff10e0a00becc8d8bae28f7d83ed12b0a91fb4f", kill_on_drop: false }` [INFO] [stdout] cd7ef06726323513b2197e7d5ff10e0a00becc8d8bae28f7d83ed12b0a91fb4f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89b7c8bfae847fd3a197e9b0d3d4f76fa63bd851b4deb73751b7676450e3f64c [INFO] running `Command { std: "docker" "start" "-a" "89b7c8bfae847fd3a197e9b0d3d4f76fa63bd851b4deb73751b7676450e3f64c", 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] warning: version requirement `0.5.2+5.3.0-patched` for dependency `jemalloc-sys` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking object-collection v0.0.3 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking object-collection v0.0.4 [INFO] [stderr] Compiling cc v1.1.21 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking timer-utils v0.0.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking st3 v0.4.1 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling jemalloc-sys v0.5.4+5.3.0-patched [INFO] [stderr] Compiling base-coroutine v0.2.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `base_coroutine` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/event_loop/selector/mod.rs [INFO] [stderr] * src/monitor.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/event_loop/selector/mod.rs:3:21 [INFO] [stderr] | [INFO] [stderr] 3 | ($fn: ident ( $($arg: expr_2021),* $(,)* ) ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/monitor.rs:64:18 [INFO] [stderr] | [INFO] [stderr] 64 | unsafe { &mut GLOBAL } [INFO] [stderr] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 64 | unsafe { addr_of_mut!(GLOBAL) } [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/context/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 14 | | /// Creates a new `Context` ontop of some stack. [INFO] [stdout] 15 | | /// [INFO] [stdout] 16 | | /// # Arguments [INFO] [stdout] ... | [INFO] [stdout] 28 | | fn jump_fcontext(to: &'static c_void, p: usize) -> Transfer; [INFO] [stdout] 29 | | } [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/event_loop/selector/mod.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | ($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] 3 | ($fn: ident ( $($arg: expr_2021),* $(,)* ) ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/epoll.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 18 | | pub fn epoll_pwait( [INFO] [stdout] 19 | | epfd: libc::c_int, [INFO] [stdout] 20 | | events: *mut epoll_event, [INFO] [stdout] ... | [INFO] [stdout] 38 | | ) -> libc::c_int; [INFO] [stdout] 39 | | } [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: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/monitor.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { &mut GLOBAL } [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { addr_of_mut!(GLOBAL) } [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `jemalloc_sys::malloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | let ptr = jemalloc_sys::malloc(size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe fn allocate_stack(size: usize) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stack::Stack::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | Ok(Stack::new( [INFO] [stdout] | ____________^ [INFO] [stdout] 39 | | (ptr as usize + size) as *mut c_void, [INFO] [stdout] 40 | | ptr as *mut c_void, [INFO] [stdout] 41 | | )) [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stack::Stack::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | Ok(Stack::new(stack.top(), stack.bottom())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | pub unsafe fn protect_stack(stack: &Stack) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `jemalloc_sys::sdallocx` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | jemalloc_sys::sdallocx(ptr, size, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn deallocate_stack(ptr: *mut c_void, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `context::make_fcontext` is unsafe and requires unsafe block [INFO] [stdout] --> src/context/mod.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | Context(make_fcontext(stack.top(), stack.len(), f)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/context/mod.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn new(stack: &Stack, f: ContextFn) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `context::jump_fcontext` is unsafe and requires unsafe block [INFO] [stdout] --> src/context/mod.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | jump_fcontext(self.0, data) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/context/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub unsafe fn resume(&self, data: usize) -> Transfer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block [INFO] [stdout] --> src/scheduler.rs:238:27 [INFO] [stdout] | [INFO] [stdout] 238 | if let Some(co) = SYSTEM_CALL_TABLE.remove(&co_id) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/scheduler.rs:237:5 [INFO] [stdout] | [INFO] [stdout] 237 | pub unsafe fn resume(&mut self, co_id: usize) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `CoroutineResult`, which is not FFI-safe [INFO] [stdout] --> src/coroutine.rs:163:29 [INFO] [stdout] | [INFO] [stdout] 163 | marker: PhantomData<&'a extern "C" fn(Param) -> CoroutineResult>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/coroutine.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum CoroutineResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/work_steal.rs:183:24 [INFO] [stdout] | [INFO] [stdout] 183 | if let Ok(popped_item) = GLOBAL_QUEUE.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/work_steal.rs:187:21 [INFO] [stdout] | [INFO] [stdout] 187 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 183 ~ match GLOBAL_QUEUE.pop() { Ok(popped_item) => { [INFO] [stdout] 184 | self.steal_global(self.queue.capacity() / 2); [INFO] [stdout] 185 | self.release_lock(); [INFO] [stdout] 186 | return Some(popped_item); [INFO] [stdout] 187 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/monitor.rs:133:16 [INFO] [stdout] | [INFO] [stdout] 133 | if let Some(local_queues) = LOCAL_QUEUES.get_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/monitor.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 133 ~ match LOCAL_QUEUES.get_mut() { Some(local_queues) => { [INFO] [stdout] 134 | let mut max = (usize::MIN, 0); [INFO] [stdout] ... [INFO] [stdout] 172 | } [INFO] [stdout] 173 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/event_loop/mod.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | if let Err(e) = EventLoop::next().wait(Some(Duration::from_nanos(left_time))) { [INFO] [stdout] | ^^^^^^^^^^^^^------------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/event_loop/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 41 ~ match EventLoop::next().wait(Some(Duration::from_nanos(left_time))) { Err(e) => { [INFO] [stdout] 42 | match e.kind() { [INFO] [stdout] ... [INFO] [stdout] 46 | } [INFO] [stdout] 47 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/event_loop/mod.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | if let Err(e) = EventLoop::next().wait(Some(Duration::from_secs(1))) { [INFO] [stdout] | ^^^^^^^^^^^^^---------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/event_loop/mod.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 65 ~ match EventLoop::next().wait(Some(Duration::from_secs(1))) { Err(e) => { [INFO] [stdout] 66 | match e.kind() { [INFO] [stdout] ... [INFO] [stdout] 70 | } [INFO] [stdout] 71 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/event_loop/selector/epoll.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | if let Some(libc::ENOSYS) = err.raw_os_error() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^---^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/event_loop/selector/epoll.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 43 ~ match err.raw_os_error() { Some(libc::ENOSYS) => { [INFO] [stdout] 44 | match syscall!(epoll_create(1024)) { [INFO] [stdout] ... [INFO] [stdout] 54 | } [INFO] [stdout] 55 ~ } _ => { [INFO] [stdout] 56 | return Err(err); [INFO] [stdout] 57 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/event_loop/selector/epoll.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | if let Err(err) = syscall!(close(self.ep)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/event_loop/selector/mod.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | ($fn: ident ( $($arg: expr),* $(,)* ) ) => {{ [INFO] [stdout] | _________________________________________________- [INFO] [stdout] 4 | | let res = unsafe { libc::$fn($($arg, )*) }; [INFO] [stdout] 5 | | if res == -1 { [INFO] [stdout] 6 | | Err(std::io::Error::last_os_error()) [INFO] [stdout] ... | [INFO] [stdout] 9 | | } [INFO] [stdout] 10 | | }}; [INFO] [stdout] | |_____- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/event_loop/selector/epoll.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `base_coroutine` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/event_loop/selector/mod.rs [INFO] [stderr] * src/monitor.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/event_loop/selector/mod.rs:3:21 [INFO] [stderr] | [INFO] [stderr] 3 | ($fn: ident ( $($arg: expr_2021),* $(,)* ) ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/monitor.rs:64:18 [INFO] [stderr] | [INFO] [stderr] 64 | unsafe { &mut GLOBAL } [INFO] [stderr] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 64 | unsafe { addr_of_mut!(GLOBAL) } [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/context/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 14 | | /// Creates a new `Context` ontop of some stack. [INFO] [stdout] 15 | | /// [INFO] [stdout] 16 | | /// # Arguments [INFO] [stdout] ... | [INFO] [stdout] 28 | | fn jump_fcontext(to: &'static c_void, p: usize) -> Transfer; [INFO] [stdout] 29 | | } [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/event_loop/selector/mod.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | ($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] 3 | ($fn: ident ( $($arg: expr_2021),* $(,)* ) ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/epoll.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 18 | | pub fn epoll_pwait( [INFO] [stdout] 19 | | epfd: libc::c_int, [INFO] [stdout] 20 | | events: *mut epoll_event, [INFO] [stdout] ... | [INFO] [stdout] 38 | | ) -> libc::c_int; [INFO] [stdout] 39 | | } [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: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/monitor.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { &mut GLOBAL } [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { addr_of_mut!(GLOBAL) } [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `jemalloc_sys::malloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | let ptr = jemalloc_sys::malloc(size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe fn allocate_stack(size: usize) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stack::Stack::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | Ok(Stack::new( [INFO] [stdout] | ____________^ [INFO] [stdout] 39 | | (ptr as usize + size) as *mut c_void, [INFO] [stdout] 40 | | ptr as *mut c_void, [INFO] [stdout] 41 | | )) [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stack::Stack::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | Ok(Stack::new(stack.top(), stack.bottom())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | pub unsafe fn protect_stack(stack: &Stack) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `jemalloc_sys::sdallocx` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | jemalloc_sys::sdallocx(ptr, size, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn deallocate_stack(ptr: *mut c_void, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `context::make_fcontext` is unsafe and requires unsafe block [INFO] [stdout] --> src/context/mod.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | Context(make_fcontext(stack.top(), stack.len(), f)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/context/mod.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn new(stack: &Stack, f: ContextFn) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `context::jump_fcontext` is unsafe and requires unsafe block [INFO] [stdout] --> src/context/mod.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | jump_fcontext(self.0, data) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/context/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub unsafe fn resume(&self, data: usize) -> Transfer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block [INFO] [stdout] --> src/scheduler.rs:238:27 [INFO] [stdout] | [INFO] [stdout] 238 | if let Some(co) = SYSTEM_CALL_TABLE.remove(&co_id) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/scheduler.rs:237:5 [INFO] [stdout] | [INFO] [stdout] 237 | pub unsafe fn resume(&mut self, co_id: usize) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `CoroutineResult`, which is not FFI-safe [INFO] [stdout] --> src/coroutine.rs:163:29 [INFO] [stdout] | [INFO] [stdout] 163 | marker: PhantomData<&'a extern "C" fn(Param) -> CoroutineResult>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/coroutine.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum CoroutineResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/work_steal.rs:183:24 [INFO] [stdout] | [INFO] [stdout] 183 | if let Ok(popped_item) = GLOBAL_QUEUE.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/work_steal.rs:187:21 [INFO] [stdout] | [INFO] [stdout] 187 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 183 ~ match GLOBAL_QUEUE.pop() { Ok(popped_item) => { [INFO] [stdout] 184 | self.steal_global(self.queue.capacity() / 2); [INFO] [stdout] 185 | self.release_lock(); [INFO] [stdout] 186 | return Some(popped_item); [INFO] [stdout] 187 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/monitor.rs:133:16 [INFO] [stdout] | [INFO] [stdout] 133 | if let Some(local_queues) = LOCAL_QUEUES.get_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/monitor.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 133 ~ match LOCAL_QUEUES.get_mut() { Some(local_queues) => { [INFO] [stdout] 134 | let mut max = (usize::MIN, 0); [INFO] [stdout] ... [INFO] [stdout] 172 | } [INFO] [stdout] 173 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/event_loop/mod.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | if let Err(e) = EventLoop::next().wait(Some(Duration::from_nanos(left_time))) { [INFO] [stdout] | ^^^^^^^^^^^^^------------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/event_loop/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 41 ~ match EventLoop::next().wait(Some(Duration::from_nanos(left_time))) { Err(e) => { [INFO] [stdout] 42 | match e.kind() { [INFO] [stdout] ... [INFO] [stdout] 46 | } [INFO] [stdout] 47 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/event_loop/mod.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | if let Err(e) = EventLoop::next().wait(Some(Duration::from_secs(1))) { [INFO] [stdout] | ^^^^^^^^^^^^^---------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/event_loop/mod.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 65 ~ match EventLoop::next().wait(Some(Duration::from_secs(1))) { Err(e) => { [INFO] [stdout] 66 | match e.kind() { [INFO] [stdout] ... [INFO] [stdout] 70 | } [INFO] [stdout] 71 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/event_loop/selector/epoll.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | if let Some(libc::ENOSYS) = err.raw_os_error() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^---^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/event_loop/selector/epoll.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 43 ~ match err.raw_os_error() { Some(libc::ENOSYS) => { [INFO] [stdout] 44 | match syscall!(epoll_create(1024)) { [INFO] [stdout] ... [INFO] [stdout] 54 | } [INFO] [stdout] 55 ~ } _ => { [INFO] [stdout] 56 | return Err(err); [INFO] [stdout] 57 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/event_loop/selector/epoll.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | if let Err(err) = syscall!(close(self.ep)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/event_loop/selector/mod.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | ($fn: ident ( $($arg: expr),* $(,)* ) ) => {{ [INFO] [stdout] | _________________________________________________- [INFO] [stdout] 4 | | let res = unsafe { libc::$fn($($arg, )*) }; [INFO] [stdout] 5 | | if res == -1 { [INFO] [stdout] 6 | | Err(std::io::Error::last_os_error()) [INFO] [stdout] ... | [INFO] [stdout] 9 | | } [INFO] [stdout] 10 | | }}; [INFO] [stdout] | |_____- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/event_loop/selector/epoll.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.13s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] warning: version requirement `0.5.2+5.3.0-patched` for dependency `jemalloc-sys` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion [INFO] [stderr] Compiling base-coroutine v0.2.0 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/context/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / extern "C" { [INFO] [stdout] 14 | | /// Creates a new `Context` ontop of some stack. [INFO] [stdout] 15 | | /// [INFO] [stdout] 16 | | /// # Arguments [INFO] [stdout] ... | [INFO] [stdout] 28 | | fn jump_fcontext(to: &'static c_void, p: usize) -> Transfer; [INFO] [stdout] 29 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/epoll.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / extern "C" { [INFO] [stdout] 18 | | pub fn epoll_pwait( [INFO] [stdout] 19 | | epfd: libc::c_int, [INFO] [stdout] 20 | | events: *mut epoll_event, [INFO] [stdout] ... | [INFO] [stdout] 38 | | ) -> libc::c_int; [INFO] [stdout] 39 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/context/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / extern "C" { [INFO] [stdout] 14 | | /// Creates a new `Context` ontop of some stack. [INFO] [stdout] 15 | | /// [INFO] [stdout] 16 | | /// # Arguments [INFO] [stdout] ... | [INFO] [stdout] 28 | | fn jump_fcontext(to: &'static c_void, p: usize) -> Transfer; [INFO] [stdout] 29 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/epoll.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / extern "C" { [INFO] [stdout] 18 | | pub fn epoll_pwait( [INFO] [stdout] 19 | | epfd: libc::c_int, [INFO] [stdout] 20 | | events: *mut epoll_event, [INFO] [stdout] ... | [INFO] [stdout] 38 | | ) -> libc::c_int; [INFO] [stdout] 39 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/monitor.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { &mut GLOBAL } [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { addr_of_mut!(GLOBAL) } [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/monitor.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { &mut GLOBAL } [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 64 | unsafe { addr_of_mut!(GLOBAL) } [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `jemalloc_sys::malloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | let ptr = jemalloc_sys::malloc(size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe fn allocate_stack(size: usize) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stack::Stack::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | Ok(Stack::new( [INFO] [stdout] | ____________^ [INFO] [stdout] 39 | | (ptr as usize + size) as *mut c_void, [INFO] [stdout] 40 | | ptr as *mut c_void, [INFO] [stdout] 41 | | )) [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stack::Stack::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | Ok(Stack::new(stack.top(), stack.bottom())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | pub unsafe fn protect_stack(stack: &Stack) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `jemalloc_sys::sdallocx` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | jemalloc_sys::sdallocx(ptr, size, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn deallocate_stack(ptr: *mut c_void, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `context::make_fcontext` is unsafe and requires unsafe block [INFO] [stdout] --> src/context/mod.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | Context(make_fcontext(stack.top(), stack.len(), f)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/context/mod.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn new(stack: &Stack, f: ContextFn) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `context::jump_fcontext` is unsafe and requires unsafe block [INFO] [stdout] --> src/context/mod.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | jump_fcontext(self.0, data) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/context/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub unsafe fn resume(&self, data: usize) -> Transfer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block [INFO] [stdout] --> src/scheduler.rs:238:27 [INFO] [stdout] | [INFO] [stdout] 238 | if let Some(co) = SYSTEM_CALL_TABLE.remove(&co_id) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/scheduler.rs:237:5 [INFO] [stdout] | [INFO] [stdout] 237 | pub unsafe fn resume(&mut self, co_id: usize) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `jemalloc_sys::malloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | let ptr = jemalloc_sys::malloc(size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe fn allocate_stack(size: usize) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stack::Stack::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | Ok(Stack::new( [INFO] [stdout] | ____________^ [INFO] [stdout] 39 | | (ptr as usize + size) as *mut c_void, [INFO] [stdout] 40 | | ptr as *mut c_void, [INFO] [stdout] 41 | | )) [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stack::Stack::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | Ok(Stack::new(stack.top(), stack.bottom())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | pub unsafe fn protect_stack(stack: &Stack) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `jemalloc_sys::sdallocx` is unsafe and requires unsafe block [INFO] [stdout] --> src/stack/sys/unix.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | jemalloc_sys::sdallocx(ptr, size, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stack/sys/unix.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn deallocate_stack(ptr: *mut c_void, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `context::make_fcontext` is unsafe and requires unsafe block [INFO] [stdout] --> src/context/mod.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | Context(make_fcontext(stack.top(), stack.len(), f)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/context/mod.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn new(stack: &Stack, f: ContextFn) -> Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `context::jump_fcontext` is unsafe and requires unsafe block [INFO] [stdout] --> src/context/mod.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | jump_fcontext(self.0, data) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/context/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub unsafe fn resume(&self, data: usize) -> Transfer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0796. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block [INFO] [stdout] --> src/scheduler.rs:238:27 [INFO] [stdout] | [INFO] [stdout] 238 | if let Some(co) = SYSTEM_CALL_TABLE.remove(&co_id) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/scheduler.rs:237:5 [INFO] [stdout] | [INFO] [stdout] 237 | pub unsafe fn resume(&mut self, co_id: usize) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `base-coroutine` (lib) due to 4 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0796. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `base-coroutine` (lib test) due to 4 previous errors; 7 warnings emitted [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" "89b7c8bfae847fd3a197e9b0d3d4f76fa63bd851b4deb73751b7676450e3f64c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89b7c8bfae847fd3a197e9b0d3d4f76fa63bd851b4deb73751b7676450e3f64c", kill_on_drop: false }` [INFO] [stdout] 89b7c8bfae847fd3a197e9b0d3d4f76fa63bd851b4deb73751b7676450e3f64c