Files
RedBear-OS/src/platform/redox
Red Bear OS b80f8b470b relibc: fix edition-2024 unsafe-op-in-unsafe-fn in epoll::convert_event
Commit dd2cd443 introduced unsafe fn convert_event(*const Event,
*mut epoll_event) but dereferenced both pointers without unsafe
blocks. Edition 2024 (relibc's top-level Cargo.toml) enforces
unsafe-op-in-unsafe-fn by default with -D, so this caused rustc
E0133 errors during canonical build:

  error[E0133]: dereference of raw pointer is unsafe and requires
  unsafe block
    --> src/platform/redox/epoll.rs:139:17 / 143:5

The fix wraps each deref in an explicit unsafe { } block with a
SAFETY justification, keeping the outer unsafe fn signature so the
validity proof stays on callers (the rest of epoll.rs already
upholds those invariants).

No semantic change — same machine code after the wrap, just edition
2024-compliant source.
2026-07-26 17:11:18 +09:00
..
2026-07-05 19:27:57 +07:00
2026-07-16 08:59:10 +01:00
2026-07-16 08:59:10 +01:00
2026-07-15 10:30:48 +01:00
2026-07-15 10:30:48 +01:00
2026-07-14 09:16:29 +01:00