[INFO] updating cached repository https://github.com/PhantomOS/PhantomOS-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 207f9260aadfb13504e252bcd28efa07f08105b4 [INFO] checking PhantomOS/PhantomOS-Rust/207f9260aadfb13504e252bcd28efa07f08105b4 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPhantomOS%2FPhantomOS-Rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PhantomOS/PhantomOS-Rust on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-5-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/PhantomOS/PhantomOS-Rust [INFO] finished tweaking git repo https://github.com/PhantomOS/PhantomOS-Rust [INFO] tweaked toml for git repo https://github.com/PhantomOS/PhantomOS-Rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/PhantomOS/PhantomOS-Rust 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 369f6b8a258e89d1bf7407d4b69e8c3b906fa161078c2c22f41eab3bbe793a47 [INFO] running `Command { std: "docker" "start" "-a" "369f6b8a258e89d1bf7407d4b69e8c3b906fa161078c2c22f41eab3bbe793a47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "369f6b8a258e89d1bf7407d4b69e8c3b906fa161078c2c22f41eab3bbe793a47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "369f6b8a258e89d1bf7407d4b69e8c3b906fa161078c2c22f41eab3bbe793a47", kill_on_drop: false }` [INFO] [stdout] 369f6b8a258e89d1bf7407d4b69e8c3b906fa161078c2c22f41eab3bbe793a47 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0aa12bb992ddc666c2229aed8e442a60e7ea0ee1749629c4ecc929be0818bfa6 [INFO] running `Command { std: "docker" "start" "-a" "0aa12bb992ddc666c2229aed8e442a60e7ea0ee1749629c4ecc929be0818bfa6", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling syn v1.0.89 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking std v0.1.0 (/opt/rustwide/workdir/phantomos-kernel-std) [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Compiling phantomos-init v0.1.0 (/opt/rustwide/workdir/phantomos-init) [INFO] [stderr] Compiling paste v1.0.6 [INFO] [stderr] Checking debug-helper v0.3.13 [INFO] [stderr] Checking fake-enum v0.1.4 [INFO] [stderr] Compiling quote v1.0.16 [INFO] [stderr] Checking crc-any v2.4.2 [INFO] [stdout] warning: the feature `const_maybe_uninit_zeroed` has been stable since 1.75.0 and no longer requires an attribute to enable [INFO] [stdout] --> phantomos-kernel-std/src/lib.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(allocator_api, const_maybe_uninit_zeroed)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_maybe_uninit_zeroed` has been stable since 1.75.0 and no longer requires an attribute to enable [INFO] [stdout] --> phantomos-kernel-std/src/lib.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(allocator_api, const_maybe_uninit_zeroed)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `align` is never read [INFO] [stdout] --> phantomos-kernel-std/src/sync.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 283 | union AtomicStorage { [INFO] [stdout] | ------------- field in this union [INFO] [stdout] ... [INFO] [stdout] 286 | align: ManuallyDrop<[Align; 0]>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking stivale-boot v0.3.0 (https://github.com/Andy-Python-Programmer/stivale#481d8fed) [INFO] [stdout] warning: field `align` is never read [INFO] [stdout] --> phantomos-kernel-std/src/sync.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 283 | union AtomicStorage { [INFO] [stdout] | ------------- field in this union [INFO] [stdout] ... [INFO] [stdout] 286 | align: ManuallyDrop<[Align; 0]>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bytemuck_derive v1.0.1 [INFO] [stderr] Checking bytemuck v1.8.0 [INFO] [stderr] Checking phantom-filesystem-drivers v0.1.0 (/opt/rustwide/workdir/phantom-filesystem-drivers) [INFO] [stdout] warning: unexpected `cfg` condition value: `clever` [INFO] [stdout] --> phantomos-init/src/lib.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[cfg(target_arch = "clever")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_arch` are: `aarch64`, `arm`, `arm64ec`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`, and `xtensa` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> phantomos-init/src/acpi.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::{self, Debug, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `acpi::RsdpDescriptor` [INFO] [stdout] --> phantomos-init/src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use acpi::RsdpDescriptor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::pin::Pin` [INFO] [stdout] --> phantomos-init/src/lib.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | use core::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InterruptBehavior::*` [INFO] [stdout] --> phantomos-init/src/lib.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | use InterruptBehavior::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> phantomos-init/src/lib.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | /// SAFETY: IDT created above is known to be valid [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 316 | / unsafe { [INFO] [stdout] 317 | | asm!("lidt [{0}]", in(reg) (&idtr)); [INFO] [stdout] 318 | | } [INFO] [stdout] | |_________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unwinding panics are not supported without std [INFO] [stdout] | [INFO] [stdout] = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding [INFO] [stdout] = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `clever` [INFO] [stdout] --> phantomos-init/src/lib.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[cfg(target_arch = "clever")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_arch` are: `aarch64`, `arm`, `arm64ec`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`, and `xtensa` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> phantomos-init/src/acpi.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::{self, Debug, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `acpi::RsdpDescriptor` [INFO] [stdout] --> phantomos-init/src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use acpi::RsdpDescriptor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::pin::Pin` [INFO] [stdout] --> phantomos-init/src/lib.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | use core::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InterruptBehavior::*` [INFO] [stdout] --> phantomos-init/src/lib.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | use InterruptBehavior::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> phantomos-init/src/lib.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | /// SAFETY: IDT created above is known to be valid [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 316 | / unsafe { [INFO] [stdout] 317 | | asm!("lidt [{0}]", in(reg) (&idtr)); [INFO] [stdout] 318 | | } [INFO] [stdout] | |_________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> phantomos-init/src/lib.rs:442:1 [INFO] [stdout] | [INFO] [stdout] 442 | / fn handle_panic(info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] 443 | | if let Some(s) = info.message() { [INFO] [stdout] 444 | | writeln!(term(), "panic @ {}: {:?}", info.location().unwrap(), s).unwrap_or(()); [INFO] [stdout] 445 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 448 | | loop {} [INFO] [stdout] 449 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e0ee872a6f64065a.rlib [INFO] [stdout] = note: second definition in the local crate (`phantomos_init`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stdout] warning: the feature `default_alloc_error_handler` has been stable since 1.68.0 and no longer requires an attribute to enable [INFO] [stdout] --> phantomos-init/src/lib.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | #![feature(default_alloc_error_handler)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_ptr_offset` has been stable since 1.61.0 and no longer requires an attribute to enable [INFO] [stdout] --> phantomos-init/src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_ptr_offset)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `core_ffi_c` has been stable since 1.64.0 and no longer requires an attribute to enable [INFO] [stdout] --> phantomos-init/src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(core_ffi_c)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `once_cell` has been stable since 1.70.0 and no longer requires an attribute to enable [INFO] [stdout] --> phantomos-init/src/lib.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(once_cell)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `panic_info_message` has been stable since 1.81.0 and no longer requires an attribute to enable [INFO] [stdout] --> phantomos-init/src/lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(panic_info_message)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `phantomos-init` (lib test) due to 2 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> phantomos-init/src/util.rs:26:27 [INFO] [stdout] | [INFO] [stdout] 26 | core::arch::asm!("out {0}, {1}", in(reg) port, in(reg_byte) val); [INFO] [stdout] | ^^^ ---- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:x}` to have the register formatted as `ax` (for 16-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] = note: `#[warn(asm_sub_register)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> phantomos-init/src/util.rs:33:27 [INFO] [stdout] | [INFO] [stdout] 33 | core::arch::asm!("out {0}, {1}", in(reg) port, in(reg) val); [INFO] [stdout] | ^^^ ---- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:x}` to have the register formatted as `ax` (for 16-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> phantomos-init/src/util.rs:33:32 [INFO] [stdout] | [INFO] [stdout] 33 | core::arch::asm!("out {0}, {1}", in(reg) port, in(reg) val); [INFO] [stdout] | ^^^ --- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{1:x}` to have the register formatted as `ax` (for 16-bit values) [INFO] [stdout] = help: or use `{1:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> phantomos-init/src/util.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | core::arch::asm!("out {0}, {1}", in(reg) port, in(reg) val); [INFO] [stdout] | ^^^ ---- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:x}` to have the register formatted as `ax` (for 16-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> phantomos-init/src/util.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | core::arch::asm!("out {0}, {1}", in(reg) port, in(reg) val); [INFO] [stdout] | ^^^ --- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{1:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{1:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> phantomos-init/src/util.rs:48:26 [INFO] [stdout] | [INFO] [stdout] 48 | core::arch::asm!("in {0}, {1}", in(reg) port, out(reg_byte) result); [INFO] [stdout] | ^^^ ---- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:x}` to have the register formatted as `ax` (for 16-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> phantomos-init/src/util.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | core::arch::asm!("in {0}, {1}", in(reg) port, out(reg) result); [INFO] [stdout] | ^^^ ---- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:x}` to have the register formatted as `ax` (for 16-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> phantomos-init/src/util.rs:57:31 [INFO] [stdout] | [INFO] [stdout] 57 | core::arch::asm!("in {0}, {1}", in(reg) port, out(reg) result); [INFO] [stdout] | ^^^ ------ for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{1:x}` to have the register formatted as `ax` (for 16-bit values) [INFO] [stdout] = help: or use `{1:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> phantomos-init/src/util.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | core::arch::asm!("in {0}, {1}", in(reg) port, out(reg) result); [INFO] [stdout] | ^^^ ---- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:x}` to have the register formatted as `ax` (for 16-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> phantomos-init/src/util.rs:66:31 [INFO] [stdout] | [INFO] [stdout] 66 | core::arch::asm!("in {0}, {1}", in(reg) port, out(reg) result); [INFO] [stdout] | ^^^ ------ for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{1:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{1:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> phantomos-init/src/lib.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 443 | if let Some(s) = info.message() { [INFO] [stdout] | ^^^^^^^ -------------- this expression has type `PanicMessage<'_>` [INFO] [stdout] | | [INFO] [stdout] | expected `PanicMessage<'_>`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `PanicMessage<'_>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> phantom-filesystem-drivers/src/phantomfs.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | drop(desc); // ensure we don't use it again [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut RootFSDescriptor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 285 - drop(desc); // ensure we don't use it again [INFO] [stdout] 285 + let _ = desc; // ensure we don't use it again [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> phantom-filesystem-drivers/src/phantomfs.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | drop(desc); // ensure we don't use it again [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut RootFSDescriptor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 285 - drop(desc); // ensure we don't use it again [INFO] [stdout] 285 + let _ = desc; // ensure we don't use it again [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/acpi.rs:95:38 [INFO] [stdout] | [INFO] [stdout] 95 | let raw: &'static XsdtRaw = &*(loc as *const XsdtRaw); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> phantomos-init/src/acpi.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub unsafe fn load(loc: *const u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> phantomos-init/src/lib.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | #![warn(unsafe_op_in_unsafe_fn)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/acpi.rs:97:24 [INFO] [stdout] | [INFO] [stdout] 97 | let sdt_list = core::slice::from_raw_parts( [INFO] [stdout] | ________________________^ [INFO] [stdout] 98 | | (&raw.sdt_list as *const _ as *const AcpiSdtPointer) [INFO] [stdout] 99 | | .to_virtual() [INFO] [stdout] 100 | | .unwrap(), [INFO] [stdout] 101 | | (header.length as usize - core::mem::size_of::()) / 8, [INFO] [stdout] 102 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:66:11 [INFO] [stdout] | [INFO] [stdout] 66 | while (*dynamic).d_tag != 0 { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> phantomos-init/src/dynloader.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe extern "C" fn ldresolve(relno: u64, dynoff: usize) -> *mut core::ffi::c_void { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | if (*dynamic).d_tag == 23 { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | reltab = (*dynamic).d_un as *const Elf64Rela; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 69 | } else if (*dynamic).d_tag == 6 { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | symtab = (*dynamic).d_un as *const Elf64Sym; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 71 | } else if (*dynamic).d_tag == 5 { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:72:22 [INFO] [stdout] | [INFO] [stdout] 72 | strtab = (*dynamic).d_un as *const u8; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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 `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | dynamic = dynamic.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 76 | let rel = reltab.add(relno as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 78 | let sym = symtab.add(((*rel).r_info >> 32) as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:78:27 [INFO] [stdout] | [INFO] [stdout] 78 | let sym = symtab.add(((*rel).r_info >> 32) as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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 `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | let name = strtab.add((*sym).st_name as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:80:27 [INFO] [stdout] | [INFO] [stdout] 80 | let name = strtab.add((*sym).st_name as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:85:11 [INFO] [stdout] | [INFO] [stdout] 85 | while (*n) != 0 { [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:86:52 [INFO] [stdout] | [INFO] [stdout] 86 | hash = (hash.wrapping_shl(4)).wrapping_add((*n) as usize); [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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 `core::ptr::const_ptr::::offset` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | n = n.offset(1); [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | while (*dynamic).d_tag != 0 { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | if (*dynamic).d_tag == 6 { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | symtab = (*dynamic).d_un as *const Elf64Sym; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:110:23 [INFO] [stdout] | [INFO] [stdout] 110 | } else if (*dynamic).d_tag == 5 { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:111:26 [INFO] [stdout] | [INFO] [stdout] 111 | strtab = (*dynamic).d_un as *const u8; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:112:23 [INFO] [stdout] | [INFO] [stdout] 112 | } else if (*dynamic).d_tag == 4 { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:113:24 [INFO] [stdout] | [INFO] [stdout] 113 | htab = (*dynamic).d_un as *const u32; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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 `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:115:23 [INFO] [stdout] | [INFO] [stdout] 115 | dynamic = dynamic.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:118:23 [INFO] [stdout] | [INFO] [stdout] 118 | let nbucket = (*htab) as usize; [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:120:19 [INFO] [stdout] | [INFO] [stdout] 120 | let idx = *htab.add((hash % nbucket).wrapping_add(2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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 `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:120:20 [INFO] [stdout] | [INFO] [stdout] 120 | let idx = *htab.add((hash % nbucket).wrapping_add(2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:121:24 [INFO] [stdout] | [INFO] [stdout] 121 | let mut cptr = htab.add(nbucket.wrapping_add(idx as usize).wrapping_add(2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | 'b: while (*cptr) != 0 { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:123:23 [INFO] [stdout] | [INFO] [stdout] 123 | let idx = *cptr; [INFO] [stdout] | ^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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 `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:124:23 [INFO] [stdout] | [INFO] [stdout] 124 | let sym = symtab.add(idx as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:125:29 [INFO] [stdout] | [INFO] [stdout] 125 | let mut sname = strtab.add((*sym).st_name as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:125:40 [INFO] [stdout] | [INFO] [stdout] 125 | let mut sname = strtab.add((*sym).st_name as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | while (*n) != 0 { [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:128:20 [INFO] [stdout] | [INFO] [stdout] 128 | if (*n) != (*sname) { [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:128:28 [INFO] [stdout] | [INFO] [stdout] 128 | if (*n) != (*sname) { [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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 `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:129:28 [INFO] [stdout] | [INFO] [stdout] 129 | cptr = cptr.add(1); [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | n = n.add(1); [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:133:25 [INFO] [stdout] | [INFO] [stdout] 133 | sname = sname.add(1); [INFO] [stdout] | ^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/dynloader.rs:137:31 [INFO] [stdout] | [INFO] [stdout] 137 | .wrapping_add((*sym).st_value as usize) [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:138:31 [INFO] [stdout] | [INFO] [stdout] 138 | .wrapping_add((*rel).r_added as u64 as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:151:30 [INFO] [stdout] | [INFO] [stdout] 151 | let ent = (base as u64 + (*rel).r_offset) as *mut *mut core::ffi::c_void; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/dynloader.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | *ent = val; [INFO] [stdout] | ^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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: unused variable: `mem_map_iter` [INFO] [stdout] --> phantomos-init/src/util.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mem_map_iter = MEMORY_MAP.get().unwrap().iter(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mem_map_iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of inline assembly is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/util.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | core::arch::asm!("out {0}, {1}", in(reg) port, in(reg_byte) val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of inline assembly [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: inline assembly is entirely unchecked and can cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> phantomos-init/src/util.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub unsafe fn outb(port: u16, val: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of inline assembly is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/util.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | core::arch::asm!("out {0}, {1}", in(reg) port, in(reg) val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of inline assembly [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: inline assembly is entirely unchecked and can cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> phantomos-init/src/util.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe fn outw(port: u16, val: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of inline assembly is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/util.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | core::arch::asm!("out {0}, {1}", in(reg) port, in(reg) val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of inline assembly [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: inline assembly is entirely unchecked and can cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> phantomos-init/src/util.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | pub unsafe fn outl(port: u16, val: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of inline assembly is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/util.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | core::arch::asm!("in {0}, {1}", in(reg) port, out(reg_byte) result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of inline assembly [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: inline assembly is entirely unchecked and can cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> phantomos-init/src/util.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | pub unsafe fn inb(port: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of inline assembly is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/util.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | core::arch::asm!("in {0}, {1}", in(reg) port, out(reg) result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of inline assembly [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: inline assembly is entirely unchecked and can cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> phantomos-init/src/util.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | pub unsafe fn inw(port: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of inline assembly is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/util.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | core::arch::asm!("in {0}, {1}", in(reg) port, out(reg) result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of inline assembly [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: inline assembly is entirely unchecked and can cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> phantomos-init/src/util.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | pub unsafe fn inl(port: u16) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of inline assembly is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/lib.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | / asm!("lgdt [{0}]", [INFO] [stdout] 203 | | "mov ax, 0x30", [INFO] [stdout] 204 | | "mov ds, ax", [INFO] [stdout] 205 | | "mov ss, ax", [INFO] [stdout] ... | [INFO] [stdout] 217 | | "2: ", [INFO] [stdout] 218 | | in(reg) &gdtr, out("rax")_); [INFO] [stdout] | |___________________________________^ use of inline assembly [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: inline assembly is entirely unchecked and can cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> phantomos-init/src/lib.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | pub unsafe fn setup_gdt() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `idt_setup::register_idt` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/lib.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 323 | idt_setup::register_idt(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> phantomos-init/src/lib.rs:322:1 [INFO] [stdout] | [INFO] [stdout] 322 | unsafe fn register_idt() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/lib.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 330 | let stivale_data = &*stivale_data; [INFO] [stdout] | ^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> phantomos-init/src/lib.rs:329:1 [INFO] [stdout] | [INFO] [stdout] 329 | unsafe extern "C" fn main(stivale_data: *const StivaleStruct) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/lib.rs:331:5 [INFO] [stdout] | [INFO] [stdout] 331 | TERMINAL.write(TerminalWriter::new( [INFO] [stdout] | ^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/lib.rs:348:15 [INFO] [stdout] | [INFO] [stdout] 348 | while (*dynamic).d_tag != 0 { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/lib.rs:349:16 [INFO] [stdout] | [INFO] [stdout] 349 | if (*dynamic).d_tag == 23 { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/lib.rs:350:26 [INFO] [stdout] | [INFO] [stdout] 350 | reltab = (*dynamic).d_un as *const Elf64Rela; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/lib.rs:351:23 [INFO] [stdout] | [INFO] [stdout] 351 | } else if (*dynamic).d_tag == 2 { [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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] --> phantomos-init/src/lib.rs:352:27 [INFO] [stdout] | [INFO] [stdout] 352 | relsize = (*dynamic).d_un; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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 `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/lib.rs:354:23 [INFO] [stdout] | [INFO] [stdout] 354 | dynamic = dynamic.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/lib.rs:359:23 [INFO] [stdout] | [INFO] [stdout] 359 | let rel = reltab.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/lib.rs:360:17 [INFO] [stdout] | [INFO] [stdout] 360 | if ((*rel).r_info) & 0xffffff == 7 { [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [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 `dynloader::ldresolve` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/lib.rs:362:17 [INFO] [stdout] | [INFO] [stdout] 362 | dynloader::ldresolve(i as u64, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `gdt_setup::setup_gdt` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/lib.rs:370:5 [INFO] [stdout] | [INFO] [stdout] 370 | gdt_setup::setup_gdt(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `register_idt` is unsafe and requires unsafe block [INFO] [stdout] --> phantomos-init/src/lib.rs:374:5 [INFO] [stdout] | [INFO] [stdout] 374 | register_idt(); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 88 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `phantomos-init` (lib) due to 3 previous errors; 88 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0aa12bb992ddc666c2229aed8e442a60e7ea0ee1749629c4ecc929be0818bfa6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0aa12bb992ddc666c2229aed8e442a60e7ea0ee1749629c4ecc929be0818bfa6", kill_on_drop: false }` [INFO] [stdout] 0aa12bb992ddc666c2229aed8e442a60e7ea0ee1749629c4ecc929be0818bfa6