[INFO] cloning repository https://github.com/romain-mg/rust-memory-allocator
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/romain-mg/rust-memory-allocator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromain-mg%2Frust-memory-allocator", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromain-mg%2Frust-memory-allocator'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3d2b96b34d6225e8cf7afaafbdd6307431b770f4
[INFO] testing romain-mg/rust-memory-allocator against 1.93.0 for beta-1.94-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromain-mg%2Frust-memory-allocator" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/romain-mg/rust-memory-allocator
[INFO] finished tweaking git repo https://github.com/romain-mg/rust-memory-allocator
[INFO] tweaked toml for git repo https://github.com/romain-mg/rust-memory-allocator written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/romain-mg/rust-memory-allocator on toolchain 1.93.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.93.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/romain-mg/rust-memory-allocator 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" "+1.93.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded sdd v3.0.8
[INFO] [stderr]   Downloaded scc v2.3.4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1.93.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 9d12697ac59abb396b006fb9c8a82e4f694c7ce9d50e81a7988ef300aff36e14
[INFO] running `Command { std: "docker" "start" "-a" "9d12697ac59abb396b006fb9c8a82e4f694c7ce9d50e81a7988ef300aff36e14", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9d12697ac59abb396b006fb9c8a82e4f694c7ce9d50e81a7988ef300aff36e14", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9d12697ac59abb396b006fb9c8a82e4f694c7ce9d50e81a7988ef300aff36e14", kill_on_drop: false }`
[INFO] [stdout] 9d12697ac59abb396b006fb9c8a82e4f694c7ce9d50e81a7988ef300aff36e14
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1.93.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 91abf6126a22f16f9a46498c817078543775cf03d6447e4a9b54e4d2f6778fe2
[INFO] running `Command { std: "docker" "start" "-a" "91abf6126a22f16f9a46498c817078543775cf03d6447e4a9b54e4d2f6778fe2", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling sdd v3.0.8
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling scc v2.3.4
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling serial_test_derive v3.2.0
[INFO] [stderr]    Compiling serial_test v3.2.0
[INFO] [stderr]    Compiling mm_alloc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `c_void`, `can_err_mask_t`, and `listen`
[INFO] [stdout]  --> src/mm_alloc.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | use libc::{c_void, can_err_mask_t, listen, sbrk};
[INFO] [stdout]   |            ^^^^^^  ^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::min`
[INFO] [stdout]  --> src/mm_alloc.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::cmp::min;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `null` and `self`
[INFO] [stdout]  --> src/mm_alloc.rs:5:11
[INFO] [stdout]   |
[INFO] [stdout] 5 |     ptr::{self, copy, null, null_mut},
[INFO] [stdout]   |           ^^^^        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if ROOT == null_mut() {
[INFO] [stdout]    |        ^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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/mm_alloc.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub unsafe fn mm_malloc(size: usize) -> *mut u8 {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:35:32
[INFO] [stdout]    |
[INFO] [stdout] 35 |         let raw_root_pointer = sbrk(bits_to_allocate as isize);
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:40:22
[INFO] [stdout]    |
[INFO] [stdout] 40 |         return_ptr = root_pointer.add(1) as *mut u8;
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 | /         root_pointer.write(MemoryHeader {
[INFO] [stdout] 42 | |             prev: null_mut(),
[INFO] [stdout] 43 | |             next: null_mut(),
[INFO] [stdout] 44 | |             size: size,
[INFO] [stdout] 45 | |             free: false,
[INFO] [stdout] 46 | |             magic: return_ptr as isize ^ MAGIC,
[INFO] [stdout] 47 | |         });
[INFO] [stdout]    | |__________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 |         ROOT = root_pointer;
[INFO] [stdout]    |         ^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:52:24
[INFO] [stdout]    |
[INFO] [stdout] 52 |         let mut curr = ROOT;
[INFO] [stdout]    |                        ^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:55:38
[INFO] [stdout]    |
[INFO] [stdout] 55 |         while curr != null_mut() && ((*curr).size < aligned_size || !(*curr).free) {
[INFO] [stdout]    |                                      ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:55:70
[INFO] [stdout]    |
[INFO] [stdout] 55 |         while curr != null_mut() && ((*curr).size < aligned_size || !(*curr).free) {
[INFO] [stdout]    |                                                                      ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:57:20
[INFO] [stdout]    |
[INFO] [stdout] 57 |             curr = (*curr).next;
[INFO] [stdout]    |                    ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:61:33
[INFO] [stdout]    |
[INFO] [stdout] 61 |             let block_pointer = sbrk(bits_to_allocate as isize) as *mut MemoryHeader;
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:65:26
[INFO] [stdout]    |
[INFO] [stdout] 65 |             return_ptr = block_pointer.add(1) as *mut u8;
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:66:13
[INFO] [stdout]    |
[INFO] [stdout] 66 | /             block_pointer.write(MemoryHeader {
[INFO] [stdout] 67 | |                 prev,
[INFO] [stdout] 68 | |                 next: null_mut(),
[INFO] [stdout] 69 | |                 size: aligned_size,
[INFO] [stdout] 70 | |                 free: false,
[INFO] [stdout] 71 | |                 magic: return_ptr as isize ^ MAGIC,
[INFO] [stdout] 72 | |             });
[INFO] [stdout]    | |______________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:73:13
[INFO] [stdout]    |
[INFO] [stdout] 73 |             (*prev).next = block_pointer;
[INFO] [stdout]    |             ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:77:13
[INFO] [stdout]    |
[INFO] [stdout] 77 |             (*curr).free = false;
[INFO] [stdout]    |             ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:78:26
[INFO] [stdout]    |
[INFO] [stdout] 78 |             return_ptr = curr.add(1) as *mut u8;
[INFO] [stdout]    |                          ^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:80:16
[INFO] [stdout]    |
[INFO] [stdout] 80 |             if (*curr).size > aligned_size + SIZE_OF_MEMORY_HEADER + ONE_BYTE {
[INFO] [stdout]    |                ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:81:36
[INFO] [stdout]    |
[INFO] [stdout] 81 |                 let current_next = (*curr).next;
[INFO] [stdout]    |                                    ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:84:42
[INFO] [stdout]    |
[INFO] [stdout] 84 |                   let new_next_as_u8_ptr = curr_as_u8_ptr
[INFO] [stdout]    |  __________________________________________^
[INFO] [stdout] 85 | |                     .add(SIZE_OF_MEMORY_HEADER_IN_BYTES)
[INFO] [stdout] 86 | |                     .add(aligned_size / ONE_BYTE);
[INFO] [stdout]    | |_________________________________________________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:84:42
[INFO] [stdout]    |
[INFO] [stdout] 84 |                   let new_next_as_u8_ptr = curr_as_u8_ptr
[INFO] [stdout]    |  __________________________________________^
[INFO] [stdout] 85 | |                     .add(SIZE_OF_MEMORY_HEADER_IN_BYTES)
[INFO] [stdout]    | |________________________________________________________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:88:17
[INFO] [stdout]    |
[INFO] [stdout] 88 | /                 new_next.write(MemoryHeader {
[INFO] [stdout] 89 | |                     prev: curr,
[INFO] [stdout] 90 | |                     next: current_next,
[INFO] [stdout] 91 | |                     size: (*curr).size - (aligned_size + SIZE_OF_MEMORY_HEADER),
[INFO] [stdout] 92 | |                     free: true,
[INFO] [stdout] 93 | |                     magic: new_next.add(1) as isize ^ MAGIC,
[INFO] [stdout] 94 | |                 });
[INFO] [stdout]    | |__________________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:91:27
[INFO] [stdout]    |
[INFO] [stdout] 91 |                     size: (*curr).size - (aligned_size + SIZE_OF_MEMORY_HEADER),
[INFO] [stdout]    |                           ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:93:28
[INFO] [stdout]    |
[INFO] [stdout] 93 |                     magic: new_next.add(1) as isize ^ MAGIC,
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:95:17
[INFO] [stdout]    |
[INFO] [stdout] 95 |                 (*curr).next = new_next;
[INFO] [stdout]    |                 ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:96:17
[INFO] [stdout]    |
[INFO] [stdout] 96 |                 (*curr).size -= SIZE_OF_MEMORY_HEADER + (*new_next).size
[INFO] [stdout]    |                 ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:96:57
[INFO] [stdout]    |
[INFO] [stdout] 96 |                 (*curr).size -= SIZE_OF_MEMORY_HEADER + (*new_next).size
[INFO] [stdout]    |                                                         ^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:102:19
[INFO] [stdout]     |
[INFO] [stdout] 102 |         let ptr = return_ptr.add(i);
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:103:9
[INFO] [stdout]     |
[INFO] [stdout] 103 |         *ptr = 0;
[INFO] [stdout]     |         ^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:109:22
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let heap_break = sbrk(0) as *mut u8;
[INFO] [stdout]     |                      ^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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/mm_alloc.rs:107:1
[INFO] [stdout]     |
[INFO] [stdout] 107 | pub unsafe fn mm_free(ptr: *mut u8) {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:113:22
[INFO] [stdout]     |
[INFO] [stdout] 113 |     let header_ptr = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout] 115 |     if (*header_ptr).magic != expected_magic {
[INFO] [stdout]     |        ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:119:22
[INFO] [stdout]     |
[INFO] [stdout] 119 |     let header_ptr = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:120:5
[INFO] [stdout]     |
[INFO] [stdout] 120 |     (*header_ptr).free = true;
[INFO] [stdout]     |     ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:123:20
[INFO] [stdout]     |
[INFO] [stdout] 123 |     let mut next = (*header_ptr).next;
[INFO] [stdout]     |                    ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:124:30
[INFO] [stdout]     |
[INFO] [stdout] 124 |     while !next.is_null() && (*next).free {
[INFO] [stdout]     |                              ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 |         (*header_ptr).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |         ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:126:31
[INFO] [stdout]     |
[INFO] [stdout] 126 |         (*header_ptr).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |                               ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:127:16
[INFO] [stdout]     |
[INFO] [stdout] 127 |         next = (*curr).next;
[INFO] [stdout]     |                ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:128:9
[INFO] [stdout]     |
[INFO] [stdout] 128 |         (*curr).prev = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:129:9
[INFO] [stdout]     |
[INFO] [stdout] 129 |         (*curr).next = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:133:20
[INFO] [stdout]     |
[INFO] [stdout] 133 |     let mut prev = (*curr).prev;
[INFO] [stdout]     |                    ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:134:30
[INFO] [stdout]     |
[INFO] [stdout] 134 |     while !prev.is_null() && (*prev).free {
[INFO] [stdout]     |                              ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |         (*prev).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:135:25
[INFO] [stdout]     |
[INFO] [stdout] 135 |         (*prev).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |                         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:136:9
[INFO] [stdout]     |
[INFO] [stdout] 136 |         (*curr).next = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:137:9
[INFO] [stdout]     |
[INFO] [stdout] 137 |         (*curr).prev = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:139:16
[INFO] [stdout]     |
[INFO] [stdout] 139 |         prev = (*curr).prev;
[INFO] [stdout]     |                ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `mm_alloc::mm_malloc` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:147:16
[INFO] [stdout]     |
[INFO] [stdout] 147 |         return mm_malloc(size);
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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/mm_alloc.rs:143:1
[INFO] [stdout]     |
[INFO] [stdout] 143 | pub unsafe fn mm_realloc(ptr: *mut u8, size: usize) -> *mut u8 {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `mm_alloc::mm_free` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:149:9
[INFO] [stdout]     |
[INFO] [stdout] 149 |         mm_free(ptr);
[INFO] [stdout]     |         ^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:153:26
[INFO] [stdout]     |
[INFO] [stdout] 153 |         let ptr_header = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:154:27
[INFO] [stdout]     |
[INFO] [stdout] 154 |         let former_size = (*ptr_header).size;
[INFO] [stdout]     |                           ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `mm_alloc::mm_malloc` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:156:26
[INFO] [stdout]     |
[INFO] [stdout] 156 |             return_ptr = mm_malloc(size);
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::copy` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:157:13
[INFO] [stdout]     |
[INFO] [stdout] 157 |             copy(ptr, return_ptr, former_size);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:159:13
[INFO] [stdout]     |
[INFO] [stdout] 159 |             (*ptr_header).size = size;
[INFO] [stdout]     |             ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `return_ptr` is never read
[INFO] [stdout]    --> src/mm_alloc.rs:152:30
[INFO] [stdout]     |
[INFO] [stdout] 152 |         let mut return_ptr = null_mut();
[INFO] [stdout]     |                              ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[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 6.08s
[INFO] running `Command { std: "docker" "inspect" "91abf6126a22f16f9a46498c817078543775cf03d6447e4a9b54e4d2f6778fe2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "91abf6126a22f16f9a46498c817078543775cf03d6447e4a9b54e4d2f6778fe2", kill_on_drop: false }`
[INFO] [stdout] 91abf6126a22f16f9a46498c817078543775cf03d6447e4a9b54e4d2f6778fe2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1.93.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 503d868ff03280744de3d30d2513dae1c04fb462a4539aa7a43e40652a70c5c9
[INFO] running `Command { std: "docker" "start" "-a" "503d868ff03280744de3d30d2513dae1c04fb462a4539aa7a43e40652a70c5c9", kill_on_drop: false }`
[INFO] [stdout] warning: unused imports: `c_void`, `can_err_mask_t`, and `listen`
[INFO] [stdout]  --> src/mm_alloc.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | use libc::{c_void, can_err_mask_t, listen, sbrk};
[INFO] [stdout]   |            ^^^^^^  ^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::min`
[INFO] [stdout]  --> src/mm_alloc.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::cmp::min;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `null` and `self`
[INFO] [stdout]  --> src/mm_alloc.rs:5:11
[INFO] [stdout]   |
[INFO] [stdout] 5 |     ptr::{self, copy, null, null_mut},
[INFO] [stdout]   |           ^^^^        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if ROOT == null_mut() {
[INFO] [stdout]    |        ^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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/mm_alloc.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub unsafe fn mm_malloc(size: usize) -> *mut u8 {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:35:32
[INFO] [stdout]    |
[INFO] [stdout] 35 |         let raw_root_pointer = sbrk(bits_to_allocate as isize);
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:40:22
[INFO] [stdout]    |
[INFO] [stdout] 40 |         return_ptr = root_pointer.add(1) as *mut u8;
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 | /         root_pointer.write(MemoryHeader {
[INFO] [stdout] 42 | |             prev: null_mut(),
[INFO] [stdout] 43 | |             next: null_mut(),
[INFO] [stdout] 44 | |             size: size,
[INFO] [stdout] 45 | |             free: false,
[INFO] [stdout] 46 | |             magic: return_ptr as isize ^ MAGIC,
[INFO] [stdout] 47 | |         });
[INFO] [stdout]    | |__________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 |         ROOT = root_pointer;
[INFO] [stdout]    |         ^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:52:24
[INFO] [stdout]    |
[INFO] [stdout] 52 |         let mut curr = ROOT;
[INFO] [stdout]    |                        ^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:55:38
[INFO] [stdout]    |
[INFO] [stdout] 55 |         while curr != null_mut() && ((*curr).size < aligned_size || !(*curr).free) {
[INFO] [stdout]    |                                      ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:55:70
[INFO] [stdout]    |
[INFO] [stdout] 55 |         while curr != null_mut() && ((*curr).size < aligned_size || !(*curr).free) {
[INFO] [stdout]    |                                                                      ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:57:20
[INFO] [stdout]    |
[INFO] [stdout] 57 |             curr = (*curr).next;
[INFO] [stdout]    |                    ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:61:33
[INFO] [stdout]    |
[INFO] [stdout] 61 |             let block_pointer = sbrk(bits_to_allocate as isize) as *mut MemoryHeader;
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:65:26
[INFO] [stdout]    |
[INFO] [stdout] 65 |             return_ptr = block_pointer.add(1) as *mut u8;
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:66:13
[INFO] [stdout]    |
[INFO] [stdout] 66 | /             block_pointer.write(MemoryHeader {
[INFO] [stdout] 67 | |                 prev,
[INFO] [stdout] 68 | |                 next: null_mut(),
[INFO] [stdout] 69 | |                 size: aligned_size,
[INFO] [stdout] 70 | |                 free: false,
[INFO] [stdout] 71 | |                 magic: return_ptr as isize ^ MAGIC,
[INFO] [stdout] 72 | |             });
[INFO] [stdout]    | |______________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:73:13
[INFO] [stdout]    |
[INFO] [stdout] 73 |             (*prev).next = block_pointer;
[INFO] [stdout]    |             ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:77:13
[INFO] [stdout]    |
[INFO] [stdout] 77 |             (*curr).free = false;
[INFO] [stdout]    |             ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:78:26
[INFO] [stdout]    |
[INFO] [stdout] 78 |             return_ptr = curr.add(1) as *mut u8;
[INFO] [stdout]    |                          ^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:80:16
[INFO] [stdout]    |
[INFO] [stdout] 80 |             if (*curr).size > aligned_size + SIZE_OF_MEMORY_HEADER + ONE_BYTE {
[INFO] [stdout]    |                ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:81:36
[INFO] [stdout]    |
[INFO] [stdout] 81 |                 let current_next = (*curr).next;
[INFO] [stdout]    |                                    ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:84:42
[INFO] [stdout]    |
[INFO] [stdout] 84 |                   let new_next_as_u8_ptr = curr_as_u8_ptr
[INFO] [stdout]    |  __________________________________________^
[INFO] [stdout] 85 | |                     .add(SIZE_OF_MEMORY_HEADER_IN_BYTES)
[INFO] [stdout] 86 | |                     .add(aligned_size / ONE_BYTE);
[INFO] [stdout]    | |_________________________________________________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:84:42
[INFO] [stdout]    |
[INFO] [stdout] 84 |                   let new_next_as_u8_ptr = curr_as_u8_ptr
[INFO] [stdout]    |  __________________________________________^
[INFO] [stdout] 85 | |                     .add(SIZE_OF_MEMORY_HEADER_IN_BYTES)
[INFO] [stdout]    | |________________________________________________________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:88:17
[INFO] [stdout]    |
[INFO] [stdout] 88 | /                 new_next.write(MemoryHeader {
[INFO] [stdout] 89 | |                     prev: curr,
[INFO] [stdout] 90 | |                     next: current_next,
[INFO] [stdout] 91 | |                     size: (*curr).size - (aligned_size + SIZE_OF_MEMORY_HEADER),
[INFO] [stdout] 92 | |                     free: true,
[INFO] [stdout] 93 | |                     magic: new_next.add(1) as isize ^ MAGIC,
[INFO] [stdout] 94 | |                 });
[INFO] [stdout]    | |__________________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:91:27
[INFO] [stdout]    |
[INFO] [stdout] 91 |                     size: (*curr).size - (aligned_size + SIZE_OF_MEMORY_HEADER),
[INFO] [stdout]    |                           ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:93:28
[INFO] [stdout]    |
[INFO] [stdout] 93 |                     magic: new_next.add(1) as isize ^ MAGIC,
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:95:17
[INFO] [stdout]    |
[INFO] [stdout] 95 |                 (*curr).next = new_next;
[INFO] [stdout]    |                 ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:96:17
[INFO] [stdout]    |
[INFO] [stdout] 96 |                 (*curr).size -= SIZE_OF_MEMORY_HEADER + (*new_next).size
[INFO] [stdout]    |                 ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:96:57
[INFO] [stdout]    |
[INFO] [stdout] 96 |                 (*curr).size -= SIZE_OF_MEMORY_HEADER + (*new_next).size
[INFO] [stdout]    |                                                         ^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:102:19
[INFO] [stdout]     |
[INFO] [stdout] 102 |         let ptr = return_ptr.add(i);
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:103:9
[INFO] [stdout]     |
[INFO] [stdout] 103 |         *ptr = 0;
[INFO] [stdout]     |         ^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:109:22
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let heap_break = sbrk(0) as *mut u8;
[INFO] [stdout]     |                      ^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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/mm_alloc.rs:107:1
[INFO] [stdout]     |
[INFO] [stdout] 107 | pub unsafe fn mm_free(ptr: *mut u8) {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:113:22
[INFO] [stdout]     |
[INFO] [stdout] 113 |     let header_ptr = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout] 115 |     if (*header_ptr).magic != expected_magic {
[INFO] [stdout]     |        ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:119:22
[INFO] [stdout]     |
[INFO] [stdout] 119 |     let header_ptr = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:120:5
[INFO] [stdout]     |
[INFO] [stdout] 120 |     (*header_ptr).free = true;
[INFO] [stdout]     |     ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:123:20
[INFO] [stdout]     |
[INFO] [stdout] 123 |     let mut next = (*header_ptr).next;
[INFO] [stdout]     |                    ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:124:30
[INFO] [stdout]     |
[INFO] [stdout] 124 |     while !next.is_null() && (*next).free {
[INFO] [stdout]     |                              ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 |         (*header_ptr).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |         ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:126:31
[INFO] [stdout]     |
[INFO] [stdout] 126 |         (*header_ptr).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |                               ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:127:16
[INFO] [stdout]     |
[INFO] [stdout] 127 |         next = (*curr).next;
[INFO] [stdout]     |                ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:128:9
[INFO] [stdout]     |
[INFO] [stdout] 128 |         (*curr).prev = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:129:9
[INFO] [stdout]     |
[INFO] [stdout] 129 |         (*curr).next = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:133:20
[INFO] [stdout]     |
[INFO] [stdout] 133 |     let mut prev = (*curr).prev;
[INFO] [stdout]     |                    ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:134:30
[INFO] [stdout]     |
[INFO] [stdout] 134 |     while !prev.is_null() && (*prev).free {
[INFO] [stdout]     |                              ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |         (*prev).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:135:25
[INFO] [stdout]     |
[INFO] [stdout] 135 |         (*prev).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |                         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:136:9
[INFO] [stdout]     |
[INFO] [stdout] 136 |         (*curr).next = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:137:9
[INFO] [stdout]     |
[INFO] [stdout] 137 |         (*curr).prev = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:139:16
[INFO] [stdout]     |
[INFO] [stdout] 139 |         prev = (*curr).prev;
[INFO] [stdout]     |                ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `mm_alloc::mm_malloc` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:147:16
[INFO] [stdout]     |
[INFO] [stdout] 147 |         return mm_malloc(size);
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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/mm_alloc.rs:143:1
[INFO] [stdout]     |
[INFO] [stdout] 143 | pub unsafe fn mm_realloc(ptr: *mut u8, size: usize) -> *mut u8 {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `mm_alloc::mm_free` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:149:9
[INFO] [stdout]     |
[INFO] [stdout] 149 |         mm_free(ptr);
[INFO] [stdout]     |         ^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:153:26
[INFO] [stdout]     |
[INFO] [stdout] 153 |         let ptr_header = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling mm_alloc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:154:27
[INFO] [stdout]     |
[INFO] [stdout] 154 |         let former_size = (*ptr_header).size;
[INFO] [stdout]     |                           ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `mm_alloc::mm_malloc` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:156:26
[INFO] [stdout]     |
[INFO] [stdout] 156 |             return_ptr = mm_malloc(size);
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::copy` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:157:13
[INFO] [stdout]     |
[INFO] [stdout] 157 |             copy(ptr, return_ptr, former_size);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:159:13
[INFO] [stdout]     |
[INFO] [stdout] 159 |             (*ptr_header).size = size;
[INFO] [stdout]     |             ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `return_ptr` is never read
[INFO] [stdout]    --> src/mm_alloc.rs:152:30
[INFO] [stdout]     |
[INFO] [stdout] 152 |         let mut return_ptr = null_mut();
[INFO] [stdout]     |                              ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `c_void`, `can_err_mask_t`, and `listen`
[INFO] [stdout]  --> src/mm_alloc.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | use libc::{c_void, can_err_mask_t, listen, sbrk};
[INFO] [stdout]   |            ^^^^^^  ^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::min`
[INFO] [stdout]  --> src/mm_alloc.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::cmp::min;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `null` and `self`
[INFO] [stdout]  --> src/mm_alloc.rs:5:11
[INFO] [stdout]   |
[INFO] [stdout] 5 |     ptr::{self, copy, null, null_mut},
[INFO] [stdout]   |           ^^^^        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if ROOT == null_mut() {
[INFO] [stdout]    |        ^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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/mm_alloc.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub unsafe fn mm_malloc(size: usize) -> *mut u8 {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:35:32
[INFO] [stdout]    |
[INFO] [stdout] 35 |         let raw_root_pointer = sbrk(bits_to_allocate as isize);
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:40:22
[INFO] [stdout]    |
[INFO] [stdout] 40 |         return_ptr = root_pointer.add(1) as *mut u8;
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 | /         root_pointer.write(MemoryHeader {
[INFO] [stdout] 42 | |             prev: null_mut(),
[INFO] [stdout] 43 | |             next: null_mut(),
[INFO] [stdout] 44 | |             size: size,
[INFO] [stdout] 45 | |             free: false,
[INFO] [stdout] 46 | |             magic: return_ptr as isize ^ MAGIC,
[INFO] [stdout] 47 | |         });
[INFO] [stdout]    | |__________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 |         ROOT = root_pointer;
[INFO] [stdout]    |         ^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:52:24
[INFO] [stdout]    |
[INFO] [stdout] 52 |         let mut curr = ROOT;
[INFO] [stdout]    |                        ^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:55:38
[INFO] [stdout]    |
[INFO] [stdout] 55 |         while curr != null_mut() && ((*curr).size < aligned_size || !(*curr).free) {
[INFO] [stdout]    |                                      ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:55:70
[INFO] [stdout]    |
[INFO] [stdout] 55 |         while curr != null_mut() && ((*curr).size < aligned_size || !(*curr).free) {
[INFO] [stdout]    |                                                                      ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:57:20
[INFO] [stdout]    |
[INFO] [stdout] 57 |             curr = (*curr).next;
[INFO] [stdout]    |                    ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:61:33
[INFO] [stdout]    |
[INFO] [stdout] 61 |             let block_pointer = sbrk(bits_to_allocate as isize) as *mut MemoryHeader;
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:65:26
[INFO] [stdout]    |
[INFO] [stdout] 65 |             return_ptr = block_pointer.add(1) as *mut u8;
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:66:13
[INFO] [stdout]    |
[INFO] [stdout] 66 | /             block_pointer.write(MemoryHeader {
[INFO] [stdout] 67 | |                 prev,
[INFO] [stdout] 68 | |                 next: null_mut(),
[INFO] [stdout] 69 | |                 size: aligned_size,
[INFO] [stdout] 70 | |                 free: false,
[INFO] [stdout] 71 | |                 magic: return_ptr as isize ^ MAGIC,
[INFO] [stdout] 72 | |             });
[INFO] [stdout]    | |______________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:73:13
[INFO] [stdout]    |
[INFO] [stdout] 73 |             (*prev).next = block_pointer;
[INFO] [stdout]    |             ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:77:13
[INFO] [stdout]    |
[INFO] [stdout] 77 |             (*curr).free = false;
[INFO] [stdout]    |             ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:78:26
[INFO] [stdout]    |
[INFO] [stdout] 78 |             return_ptr = curr.add(1) as *mut u8;
[INFO] [stdout]    |                          ^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:80:16
[INFO] [stdout]    |
[INFO] [stdout] 80 |             if (*curr).size > aligned_size + SIZE_OF_MEMORY_HEADER + ONE_BYTE {
[INFO] [stdout]    |                ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:81:36
[INFO] [stdout]    |
[INFO] [stdout] 81 |                 let current_next = (*curr).next;
[INFO] [stdout]    |                                    ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:84:42
[INFO] [stdout]    |
[INFO] [stdout] 84 |                   let new_next_as_u8_ptr = curr_as_u8_ptr
[INFO] [stdout]    |  __________________________________________^
[INFO] [stdout] 85 | |                     .add(SIZE_OF_MEMORY_HEADER_IN_BYTES)
[INFO] [stdout] 86 | |                     .add(aligned_size / ONE_BYTE);
[INFO] [stdout]    | |_________________________________________________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:84:42
[INFO] [stdout]    |
[INFO] [stdout] 84 |                   let new_next_as_u8_ptr = curr_as_u8_ptr
[INFO] [stdout]    |  __________________________________________^
[INFO] [stdout] 85 | |                     .add(SIZE_OF_MEMORY_HEADER_IN_BYTES)
[INFO] [stdout]    | |________________________________________________________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:88:17
[INFO] [stdout]    |
[INFO] [stdout] 88 | /                 new_next.write(MemoryHeader {
[INFO] [stdout] 89 | |                     prev: curr,
[INFO] [stdout] 90 | |                     next: current_next,
[INFO] [stdout] 91 | |                     size: (*curr).size - (aligned_size + SIZE_OF_MEMORY_HEADER),
[INFO] [stdout] 92 | |                     free: true,
[INFO] [stdout] 93 | |                     magic: new_next.add(1) as isize ^ MAGIC,
[INFO] [stdout] 94 | |                 });
[INFO] [stdout]    | |__________________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:91:27
[INFO] [stdout]    |
[INFO] [stdout] 91 |                     size: (*curr).size - (aligned_size + SIZE_OF_MEMORY_HEADER),
[INFO] [stdout]    |                           ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:93:28
[INFO] [stdout]    |
[INFO] [stdout] 93 |                     magic: new_next.add(1) as isize ^ MAGIC,
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:95:17
[INFO] [stdout]    |
[INFO] [stdout] 95 |                 (*curr).next = new_next;
[INFO] [stdout]    |                 ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:96:17
[INFO] [stdout]    |
[INFO] [stdout] 96 |                 (*curr).size -= SIZE_OF_MEMORY_HEADER + (*new_next).size
[INFO] [stdout]    |                 ^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/mm_alloc.rs:96:57
[INFO] [stdout]    |
[INFO] [stdout] 96 |                 (*curr).size -= SIZE_OF_MEMORY_HEADER + (*new_next).size
[INFO] [stdout]    |                                                         ^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:102:19
[INFO] [stdout]     |
[INFO] [stdout] 102 |         let ptr = return_ptr.add(i);
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:103:9
[INFO] [stdout]     |
[INFO] [stdout] 103 |         *ptr = 0;
[INFO] [stdout]     |         ^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:109:22
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let heap_break = sbrk(0) as *mut u8;
[INFO] [stdout]     |                      ^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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/mm_alloc.rs:107:1
[INFO] [stdout]     |
[INFO] [stdout] 107 | pub unsafe fn mm_free(ptr: *mut u8) {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:113:22
[INFO] [stdout]     |
[INFO] [stdout] 113 |     let header_ptr = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout] 115 |     if (*header_ptr).magic != expected_magic {
[INFO] [stdout]     |        ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:119:22
[INFO] [stdout]     |
[INFO] [stdout] 119 |     let header_ptr = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:120:5
[INFO] [stdout]     |
[INFO] [stdout] 120 |     (*header_ptr).free = true;
[INFO] [stdout]     |     ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:123:20
[INFO] [stdout]     |
[INFO] [stdout] 123 |     let mut next = (*header_ptr).next;
[INFO] [stdout]     |                    ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:124:30
[INFO] [stdout]     |
[INFO] [stdout] 124 |     while !next.is_null() && (*next).free {
[INFO] [stdout]     |                              ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 |         (*header_ptr).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |         ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:126:31
[INFO] [stdout]     |
[INFO] [stdout] 126 |         (*header_ptr).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |                               ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:127:16
[INFO] [stdout]     |
[INFO] [stdout] 127 |         next = (*curr).next;
[INFO] [stdout]     |                ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:128:9
[INFO] [stdout]     |
[INFO] [stdout] 128 |         (*curr).prev = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:129:9
[INFO] [stdout]     |
[INFO] [stdout] 129 |         (*curr).next = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:133:20
[INFO] [stdout]     |
[INFO] [stdout] 133 |     let mut prev = (*curr).prev;
[INFO] [stdout]     |                    ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:134:30
[INFO] [stdout]     |
[INFO] [stdout] 134 |     while !prev.is_null() && (*prev).free {
[INFO] [stdout]     |                              ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |         (*prev).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:135:25
[INFO] [stdout]     |
[INFO] [stdout] 135 |         (*prev).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stdout]     |                         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:136:9
[INFO] [stdout]     |
[INFO] [stdout] 136 |         (*curr).next = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:137:9
[INFO] [stdout]     |
[INFO] [stdout] 137 |         (*curr).prev = null_mut();
[INFO] [stdout]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:139:16
[INFO] [stdout]     |
[INFO] [stdout] 139 |         prev = (*curr).prev;
[INFO] [stdout]     |                ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `mm_alloc::mm_malloc` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:147:16
[INFO] [stdout]     |
[INFO] [stdout] 147 |         return mm_malloc(size);
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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/mm_alloc.rs:143:1
[INFO] [stdout]     |
[INFO] [stdout] 143 | pub unsafe fn mm_realloc(ptr: *mut u8, size: usize) -> *mut u8 {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `mm_alloc::mm_free` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:149:9
[INFO] [stdout]     |
[INFO] [stdout] 149 |         mm_free(ptr);
[INFO] [stdout]     |         ^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:153:26
[INFO] [stdout]     |
[INFO] [stdout] 153 |         let ptr_header = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:154:27
[INFO] [stdout]     |
[INFO] [stdout] 154 |         let former_size = (*ptr_header).size;
[INFO] [stdout]     |                           ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `mm_alloc::mm_malloc` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:156:26
[INFO] [stdout]     |
[INFO] [stdout] 156 |             return_ptr = mm_malloc(size);
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[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 `std::ptr::copy` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:157:13
[INFO] [stdout]     |
[INFO] [stdout] 157 |             copy(ptr, return_ptr, former_size);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> src/mm_alloc.rs:159:13
[INFO] [stdout]     |
[INFO] [stdout] 159 |             (*ptr_header).size = size;
[INFO] [stdout]     |             ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `return_ptr` is never read
[INFO] [stdout]    --> src/mm_alloc.rs:152:30
[INFO] [stdout]     |
[INFO] [stdout] 152 |         let mut return_ptr = null_mut();
[INFO] [stdout]     |                              ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.35s
[INFO] running `Command { std: "docker" "inspect" "503d868ff03280744de3d30d2513dae1c04fb462a4539aa7a43e40652a70c5c9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "503d868ff03280744de3d30d2513dae1c04fb462a4539aa7a43e40652a70c5c9", kill_on_drop: false }`
[INFO] [stdout] 503d868ff03280744de3d30d2513dae1c04fb462a4539aa7a43e40652a70c5c9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1.93.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 23df9b63ffecfc7c0e5981cacdcfef314f585ba5a56c16109770cc0719eb81f0
[INFO] running `Command { std: "docker" "start" "-a" "23df9b63ffecfc7c0e5981cacdcfef314f585ba5a56c16109770cc0719eb81f0", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `c_void`, `can_err_mask_t`, and `listen`
[INFO] [stderr]  --> src/mm_alloc.rs:1:12
[INFO] [stderr]   |
[INFO] [stderr] 1 | use libc::{c_void, can_err_mask_t, listen, sbrk};
[INFO] [stderr]   |            ^^^^^^  ^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::cmp::min`
[INFO] [stderr]  --> src/mm_alloc.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use std::cmp::min;
[INFO] [stderr]   |     ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `null` and `self`
[INFO] [stderr]  --> src/mm_alloc.rs:5:11
[INFO] [stderr]   |
[INFO] [stderr] 5 |     ptr::{self, copy, null, null_mut},
[INFO] [stderr]   |           ^^^^        ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:34:8
[INFO] [stderr]    |
[INFO] [stderr] 34 |     if ROOT == null_mut() {
[INFO] [stderr]    |        ^^^^ use of mutable static
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stderr]   --> src/mm_alloc.rs:26:1
[INFO] [stderr]    |
[INFO] [stderr] 26 | pub unsafe fn mm_malloc(size: usize) -> *mut u8 {
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:35:32
[INFO] [stderr]    |
[INFO] [stderr] 35 |         let raw_root_pointer = sbrk(bits_to_allocate as isize);
[INFO] [stderr]    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:40:22
[INFO] [stderr]    |
[INFO] [stderr] 40 |         return_ptr = root_pointer.add(1) as *mut u8;
[INFO] [stderr]    |                      ^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:41:9
[INFO] [stderr]    |
[INFO] [stderr] 41 | /         root_pointer.write(MemoryHeader {
[INFO] [stderr] 42 | |             prev: null_mut(),
[INFO] [stderr] 43 | |             next: null_mut(),
[INFO] [stderr] 44 | |             size: size,
[INFO] [stderr] 45 | |             free: false,
[INFO] [stderr] 46 | |             magic: return_ptr as isize ^ MAGIC,
[INFO] [stderr] 47 | |         });
[INFO] [stderr]    | |__________^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:48:9
[INFO] [stderr]    |
[INFO] [stderr] 48 |         ROOT = root_pointer;
[INFO] [stderr]    |         ^^^^ use of mutable static
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:52:24
[INFO] [stderr]    |
[INFO] [stderr] 52 |         let mut curr = ROOT;
[INFO] [stderr]    |                        ^^^^ use of mutable static
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:55:38
[INFO] [stderr]    |
[INFO] [stderr] 55 |         while curr != null_mut() && ((*curr).size < aligned_size || !(*curr).free) {
[INFO] [stderr]    |                                      ^^^^^^^ dereference of raw pointer
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:55:70
[INFO] [stderr]    |
[INFO] [stderr] 55 |         while curr != null_mut() && ((*curr).size < aligned_size || !(*curr).free) {
[INFO] [stderr]    |                                                                      ^^^^^^^ dereference of raw pointer
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:57:20
[INFO] [stderr]    |
[INFO] [stderr] 57 |             curr = (*curr).next;
[INFO] [stderr]    |                    ^^^^^^^ dereference of raw pointer
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:61:33
[INFO] [stderr]    |
[INFO] [stderr] 61 |             let block_pointer = sbrk(bits_to_allocate as isize) as *mut MemoryHeader;
[INFO] [stderr]    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:65:26
[INFO] [stderr]    |
[INFO] [stderr] 65 |             return_ptr = block_pointer.add(1) as *mut u8;
[INFO] [stderr]    |                          ^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:66:13
[INFO] [stderr]    |
[INFO] [stderr] 66 | /             block_pointer.write(MemoryHeader {
[INFO] [stderr] 67 | |                 prev,
[INFO] [stderr] 68 | |                 next: null_mut(),
[INFO] [stderr] 69 | |                 size: aligned_size,
[INFO] [stderr] 70 | |                 free: false,
[INFO] [stderr] 71 | |                 magic: return_ptr as isize ^ MAGIC,
[INFO] [stderr] 72 | |             });
[INFO] [stderr]    | |______________^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:73:13
[INFO] [stderr]    |
[INFO] [stderr] 73 |             (*prev).next = block_pointer;
[INFO] [stderr]    |             ^^^^^^^ dereference of raw pointer
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:77:13
[INFO] [stderr]    |
[INFO] [stderr] 77 |             (*curr).free = false;
[INFO] [stderr]    |             ^^^^^^^ dereference of raw pointer
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:78:26
[INFO] [stderr]    |
[INFO] [stderr] 78 |             return_ptr = curr.add(1) as *mut u8;
[INFO] [stderr]    |                          ^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:80:16
[INFO] [stderr]    |
[INFO] [stderr] 80 |             if (*curr).size > aligned_size + SIZE_OF_MEMORY_HEADER + ONE_BYTE {
[INFO] [stderr]    |                ^^^^^^^ dereference of raw pointer
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:81:36
[INFO] [stderr]    |
[INFO] [stderr] 81 |                 let current_next = (*curr).next;
[INFO] [stderr]    |                                    ^^^^^^^ dereference of raw pointer
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:84:42
[INFO] [stderr]    |
[INFO] [stderr] 84 |                   let new_next_as_u8_ptr = curr_as_u8_ptr
[INFO] [stderr]    |  __________________________________________^
[INFO] [stderr] 85 | |                     .add(SIZE_OF_MEMORY_HEADER_IN_BYTES)
[INFO] [stderr] 86 | |                     .add(aligned_size / ONE_BYTE);
[INFO] [stderr]    | |_________________________________________________^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:84:42
[INFO] [stderr]    |
[INFO] [stderr] 84 |                   let new_next_as_u8_ptr = curr_as_u8_ptr
[INFO] [stderr]    |  __________________________________________^
[INFO] [stderr] 85 | |                     .add(SIZE_OF_MEMORY_HEADER_IN_BYTES)
[INFO] [stderr]    | |________________________________________________________^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::write` is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:88:17
[INFO] [stderr]    |
[INFO] [stderr] 88 | /                 new_next.write(MemoryHeader {
[INFO] [stderr] 89 | |                     prev: curr,
[INFO] [stderr] 90 | |                     next: current_next,
[INFO] [stderr] 91 | |                     size: (*curr).size - (aligned_size + SIZE_OF_MEMORY_HEADER),
[INFO] [stderr] 92 | |                     free: true,
[INFO] [stderr] 93 | |                     magic: new_next.add(1) as isize ^ MAGIC,
[INFO] [stderr] 94 | |                 });
[INFO] [stderr]    | |__________________^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:91:27
[INFO] [stderr]    |
[INFO] [stderr] 91 |                     size: (*curr).size - (aligned_size + SIZE_OF_MEMORY_HEADER),
[INFO] [stderr]    |                           ^^^^^^^ dereference of raw pointer
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:93:28
[INFO] [stderr]    |
[INFO] [stderr] 93 |                     magic: new_next.add(1) as isize ^ MAGIC,
[INFO] [stderr]    |                            ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:95:17
[INFO] [stderr]    |
[INFO] [stderr] 95 |                 (*curr).next = new_next;
[INFO] [stderr]    |                 ^^^^^^^ dereference of raw pointer
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:96:17
[INFO] [stderr]    |
[INFO] [stderr] 96 |                 (*curr).size -= SIZE_OF_MEMORY_HEADER + (*new_next).size
[INFO] [stderr]    |                 ^^^^^^^ dereference of raw pointer
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]   --> src/mm_alloc.rs:96:57
[INFO] [stderr]    |
[INFO] [stderr] 96 |                 (*curr).size -= SIZE_OF_MEMORY_HEADER + (*new_next).size
[INFO] [stderr]    |                                                         ^^^^^^^^^^^ dereference of raw pointer
[INFO] [stderr]    |
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:102:19
[INFO] [stderr]     |
[INFO] [stderr] 102 |         let ptr = return_ptr.add(i);
[INFO] [stderr]     |                   ^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:103:9
[INFO] [stderr]     |
[INFO] [stderr] 103 |         *ptr = 0;
[INFO] [stderr]     |         ^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `libc::sbrk` is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:109:22
[INFO] [stderr]     |
[INFO] [stderr] 109 |     let heap_break = sbrk(0) as *mut u8;
[INFO] [stderr]     |                      ^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stderr]    --> src/mm_alloc.rs:107:1
[INFO] [stderr]     |
[INFO] [stderr] 107 | pub unsafe fn mm_free(ptr: *mut u8) {
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:113:22
[INFO] [stderr]     |
[INFO] [stderr] 113 |     let header_ptr = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stderr]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:115:8
[INFO] [stderr]     |
[INFO] [stderr] 115 |     if (*header_ptr).magic != expected_magic {
[INFO] [stderr]     |        ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:119:22
[INFO] [stderr]     |
[INFO] [stderr] 119 |     let header_ptr = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stderr]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:120:5
[INFO] [stderr]     |
[INFO] [stderr] 120 |     (*header_ptr).free = true;
[INFO] [stderr]     |     ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:123:20
[INFO] [stderr]     |
[INFO] [stderr] 123 |     let mut next = (*header_ptr).next;
[INFO] [stderr]     |                    ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:124:30
[INFO] [stderr]     |
[INFO] [stderr] 124 |     while !next.is_null() && (*next).free {
[INFO] [stderr]     |                              ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:126:9
[INFO] [stderr]     |
[INFO] [stderr] 126 |         (*header_ptr).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stderr]     |         ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:126:31
[INFO] [stderr]     |
[INFO] [stderr] 126 |         (*header_ptr).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stderr]     |                               ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:127:16
[INFO] [stderr]     |
[INFO] [stderr] 127 |         next = (*curr).next;
[INFO] [stderr]     |                ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:128:9
[INFO] [stderr]     |
[INFO] [stderr] 128 |         (*curr).prev = null_mut();
[INFO] [stderr]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:129:9
[INFO] [stderr]     |
[INFO] [stderr] 129 |         (*curr).next = null_mut();
[INFO] [stderr]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:133:20
[INFO] [stderr]     |
[INFO] [stderr] 133 |     let mut prev = (*curr).prev;
[INFO] [stderr]     |                    ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:134:30
[INFO] [stderr]     |
[INFO] [stderr] 134 |     while !prev.is_null() && (*prev).free {
[INFO] [stderr]     |                              ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:135:9
[INFO] [stderr]     |
[INFO] [stderr] 135 |         (*prev).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stderr]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:135:25
[INFO] [stderr]     |
[INFO] [stderr] 135 |         (*prev).size += (*curr).size + SIZE_OF_MEMORY_HEADER;
[INFO] [stderr]     |                         ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:136:9
[INFO] [stderr]     |
[INFO] [stderr] 136 |         (*curr).next = null_mut();
[INFO] [stderr]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:137:9
[INFO] [stderr]     |
[INFO] [stderr] 137 |         (*curr).prev = null_mut();
[INFO] [stderr]     |         ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:139:16
[INFO] [stderr]     |
[INFO] [stderr] 139 |         prev = (*curr).prev;
[INFO] [stderr]     |                ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `mm_alloc::mm_malloc` is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:147:16
[INFO] [stderr]     |
[INFO] [stderr] 147 |         return mm_malloc(size);
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stderr]    --> src/mm_alloc.rs:143:1
[INFO] [stderr]     |
[INFO] [stderr] 143 | pub unsafe fn mm_realloc(ptr: *mut u8, size: usize) -> *mut u8 {
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `mm_alloc::mm_free` is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:149:9
[INFO] [stderr]     |
[INFO] [stderr] 149 |         mm_free(ptr);
[INFO] [stderr]     |         ^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::sub` is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:153:26
[INFO] [stderr]     |
[INFO] [stderr] 153 |         let ptr_header = ptr.sub(SIZE_OF_MEMORY_HEADER_IN_BYTES) as *mut MemoryHeader;
[INFO] [stderr]     |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:154:27
[INFO] [stderr]     |
[INFO] [stderr] 154 |         let former_size = (*ptr_header).size;
[INFO] [stderr]     |                           ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `mm_alloc::mm_malloc` is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:156:26
[INFO] [stderr]     |
[INFO] [stderr] 156 |             return_ptr = mm_malloc(size);
[INFO] [stderr]     |                          ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::copy` is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:157:13
[INFO] [stderr]     |
[INFO] [stderr] 157 |             copy(ptr, return_ptr, former_size);
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> src/mm_alloc.rs:159:13
[INFO] [stderr]     |
[INFO] [stderr] 159 |             (*ptr_header).size = size;
[INFO] [stderr]     |             ^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `return_ptr` is never read
[INFO] [stderr]    --> src/mm_alloc.rs:152:30
[INFO] [stderr]     |
[INFO] [stderr] 152 |         let mut return_ptr = null_mut();
[INFO] [stderr]     |                              ^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0133`.
[INFO] [stderr] warning: `mm_alloc` (lib) generated 57 warnings (run `cargo fix --lib -p mm_alloc` to apply 6 suggestions)
[INFO] [stderr] warning: `mm_alloc` (lib test) generated 57 warnings (57 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mm_alloc-b58c864878fe0da1)
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running tests/basic.rs (/opt/rustwide/target/debug/deps/basic-5c07e43aa2079b88)
[INFO] [stdout] 
[INFO] [stdout] running 13 tests
[INFO] [stdout] test test_free_null ... ok
[INFO] [stderr] 
[INFO] [stderr] thread 'test_realloc_to_zero' (37) panicked at src/mm_alloc.rs:124:30:
[INFO] [stderr] misaligned pointer dereference: address must be a multiple of 0x8 but is 0x1
[INFO] [stderr] stack backtrace:
[INFO] [stderr]    0:     0x57f797a98a42 - std::backtrace_rs::backtrace::libunwind::trace::h90e89fac33585832
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stderr]    1:     0x57f797a98a42 - std::backtrace_rs::backtrace::trace_unsynchronized::heebcf2380a8e7359
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stderr]    2:     0x57f797a98a42 - std::sys::backtrace::_print_fmt::hdf3e2a22d2f810db
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/backtrace.rs:68:9
[INFO] [stderr]    3:     0x57f797a98a42 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hac1d885928ba8582
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/backtrace.rs:38:26
[INFO] [stderr]    4:     0x57f797aa8757 - core::fmt::rt::Argument::fmt::h6901eb7c19abebe8
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/fmt/rt.rs:152:76
[INFO] [stderr]    5:     0x57f797aa8757 - core::fmt::write::h83ebb4d32483be9e
[INFO] [stderr]    6:     0x57f797a67916 - std::io::default_write_fmt::hdea1c6df292e9097
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/io/mod.rs:639:11
[INFO] [stderr]    7:     0x57f797a67916 - std::io::Write::write_fmt::ha6a1d6c1ea64b2d0
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/io/mod.rs:1994:13
[INFO] [stderr]    8:     0x57f797a77e09 - std::sys::backtrace::BacktraceLock::print::hcc2e1a3ac996c911
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/backtrace.rs:41:9
[INFO] [stderr]    9:     0x57f797a77e09 - std::panicking::default_hook::{{closure}}::h8e9c4d1276f0925f
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:292:27
[INFO] [stderr]   10:     0x57f797a77c69 - std::panicking::default_hook::h2b2078d38b534dfb
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:319:9
[INFO] [stderr]   11:     0x57f797a3a96e - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39d051e7dedac6a7
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/alloc/src/boxed.rs:2220:9
[INFO] [stderr]   12:     0x57f797a3a96e - test::test_main_with_exit_callback::{{closure}}::h4b005fe75814c302
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:145:21
[INFO] [stderr]   13:     0x57f797a78082 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hd426070722c13cbf
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/alloc/src/boxed.rs:2220:9
[INFO] [stderr]   14:     0x57f797a78082 - std::panicking::panic_with_hook::h39b739724e701bfd
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:833:13
[INFO] [stderr]   15:     0x57f797a77ec8 - std::panicking::panic_handler::{{closure}}::he540c4833054e458
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:698:13
[INFO] [stderr]   16:     0x57f797a73499 - std::sys::backtrace::__rust_end_short_backtrace::hfa179d89deec8aed
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/backtrace.rs:176:18
[INFO] [stderr]   17:     0x57f797a5c5bd - __rustc[d131491b17107b07]::rust_begin_unwind
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:689:5
[INFO] [stderr]   18:     0x57f797aafa2d - core::panicking::panic_nounwind_fmt::runtime::hdd17ae2c2a7f85df
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/panicking.rs:122:22
[INFO] [stderr]   19:     0x57f797aafa2d - core::panicking::panic_nounwind_fmt::h2987a0c8ccb716e5
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/intrinsics/mod.rs:2449:9
[INFO] [stderr]   20:     0x57f797aafbb9 - core::panicking::panic_misaligned_pointer_dereference::hf3783101d7183a79
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/panicking.rs:284:5
[INFO] [stderr]   21:     0x57f797a5b09a - mm_alloc::mm_alloc::mm_free::h14b7f4a51c322e01
[INFO] [stderr]                                at /opt/rustwide/workdir/src/mm_alloc.rs:124:30
[INFO] [stderr]   22:     0x57f797a5ac7f - mm_alloc::mm_alloc::mm_realloc::h075797d64fa5b02f
[INFO] [stderr]                                at /opt/rustwide/workdir/src/mm_alloc.rs:149:9
[INFO] [stderr]   23:     0x57f797a1af33 - basic::test_realloc_to_zero::h4fe1fd3c2c39a174
[INFO] [stderr]                                at /opt/rustwide/workdir/tests/basic.rs:120:23
[INFO] [stderr]   24:     0x57f797a1afa7 - basic::test_realloc_to_zero::{{closure}}::h989a1188a988e952
[INFO] [stderr]                                at /opt/rustwide/workdir/tests/basic.rs:115:26
[INFO] [stderr]   25:     0x57f797a19926 - core::ops::function::FnOnce::call_once::h45c1e98cda7643f6
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/ops/function.rs:250:5
[INFO] [stderr]   26:     0x57f797a3a79b - core::ops::function::FnOnce::call_once::h0217b30cfdee2e67
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/ops/function.rs:250:5
[INFO] [stderr]   27:     0x57f797a3a79b - test::__rust_begin_short_backtrace::h6d98714a1e28f556
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:663:18
[INFO] [stderr]   28:     0x57f797a4e12a - test::run_test_in_process::{{closure}}::he2c70d2634d3a3cc
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:686:74
[INFO] [stderr]   29:     0x57f797a4e12a - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h40a0a825bcf17fdd
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/panic/unwind_safe.rs:274:9
[INFO] [stderr]   30:     0x57f797a4e12a - std::panicking::catch_unwind::do_call::h6c8eb5dd6e7b5975
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:581:40
[INFO] [stderr]   31:     0x57f797a4e12a - std::panicking::catch_unwind::h55455eac2972ad1e
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:544:19
[INFO] [stderr]   32:     0x57f797a4e12a - std::panic::catch_unwind::h0025465150a5e558
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panic.rs:359:14
[INFO] [stderr]   33:     0x57f797a4e12a - test::run_test_in_process::hb61e682f9b630fbc
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:686:27
[INFO] [stderr]   34:     0x57f797a4e12a - test::run_test::{{closure}}::hc2c2a7a38ab176e2
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:607:43
[INFO] [stderr]   35:     0x57f797a283c4 - test::run_test::{{closure}}::ha91867b85cd2a911
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:637:41
[INFO] [stderr]   36:     0x57f797a283c4 - std::sys::backtrace::__rust_begin_short_backtrace::ha00a9fe02049c339
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/backtrace.rs:160:18
[INFO] [stderr]   37:     0x57f797a2bcf2 - std::thread::lifecycle::spawn_unchecked::{{closure}}::{{closure}}::hd629fba9153dfb55
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/thread/lifecycle.rs:92:13
[INFO] [stderr]   38:     0x57f797a2bcf2 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h4189018816a5c5d9
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/panic/unwind_safe.rs:274:9
[INFO] [stderr]   39:     0x57f797a2bcf2 - std::panicking::catch_unwind::do_call::hf9fcdbca3c2e9877
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:581:40
[INFO] [stderr]   40:     0x57f797a2bcf2 - std::panicking::catch_unwind::h97b92d88631c7c64
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:544:19
[INFO] [stderr]   41:     0x57f797a2bcf2 - std::panic::catch_unwind::ha77cdbb68e725e5e
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panic.rs:359:14
[INFO] [stderr]   42:     0x57f797a2bcf2 - std::thread::lifecycle::spawn_unchecked::{{closure}}::h511f05bc1a132253
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/thread/lifecycle.rs:90:26
[INFO] [stderr]   43:     0x57f797a2bcf2 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6b68b31e9b685cb8
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/ops/function.rs:250:5
[INFO] [stderr]   44:     0x57f797a6eb2f - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h22a27d165e4e871d
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/alloc/src/boxed.rs:2206:9
[INFO] [stderr]   45:     0x57f797a6eb2f - std::sys::thread::unix::Thread::new::thread_start::h45cc87bb053add0f
[INFO] [stderr]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/thread/unix.rs:118:17
[INFO] [stderr]   46:     0x7788c9fe8aa4 - <unknown>
[INFO] [stderr]   47:     0x7788ca075a64 - clone
[INFO] [stderr]   48:                0x0 - <unknown>
[INFO] [stderr] thread caused non-unwinding panic. aborting.
[INFO] [stderr] error: test failed, to rerun pass `--test basic`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/deps/basic-5c07e43aa2079b88` (signal: 6, SIGABRT: process abort signal)
[INFO] running `Command { std: "docker" "inspect" "23df9b63ffecfc7c0e5981cacdcfef314f585ba5a56c16109770cc0719eb81f0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "23df9b63ffecfc7c0e5981cacdcfef314f585ba5a56c16109770cc0719eb81f0", kill_on_drop: false }`
[INFO] [stdout] 23df9b63ffecfc7c0e5981cacdcfef314f585ba5a56c16109770cc0719eb81f0
