[INFO] cloning repository https://github.com/ziita1111/uefi-bootloader [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ziita1111/uefi-bootloader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fziita1111%2Fuefi-bootloader", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fziita1111%2Fuefi-bootloader'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2c027fd1d3f3a63c9b88f19a71335bacafc8a533 [INFO] checking ziita1111/uefi-bootloader against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fziita1111%2Fuefi-bootloader" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ziita1111/uefi-bootloader on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ziita1111/uefi-bootloader [INFO] finished tweaking git repo https://github.com/ziita1111/uefi-bootloader [INFO] tweaked toml for git repo https://github.com/ziita1111/uefi-bootloader written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/ziita1111/uefi-bootloader already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ea640fed17bc0ecd7b0a796bce2b0f221195641d540003cb6292b477345fb72e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ea640fed17bc0ecd7b0a796bce2b0f221195641d540003cb6292b477345fb72e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea640fed17bc0ecd7b0a796bce2b0f221195641d540003cb6292b477345fb72e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea640fed17bc0ecd7b0a796bce2b0f221195641d540003cb6292b477345fb72e", kill_on_drop: false }` [INFO] [stdout] ea640fed17bc0ecd7b0a796bce2b0f221195641d540003cb6292b477345fb72e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 90c10daee3b37d602dca34b4e6d629feba751b49c57522bbf8e646c9c1a2872b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "90c10daee3b37d602dca34b4e6d629feba751b49c57522bbf8e646c9c1a2872b", kill_on_drop: false }` [INFO] [stderr] Checking uefi-bootloader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/console.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | pub extern "C" fn efi_print(&self, s: &str) -> EFI_STATUS{ [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/console.rs:25:46 [INFO] [stdout] | [INFO] [stdout] 25 | pub extern "C" fn efi_print_u8(&self, s: &[u8]) -> EFI_STATUS { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u16]`, which is not FFI-safe [INFO] [stdout] --> src/console.rs:38:47 [INFO] [stdout] | [INFO] [stdout] 38 | pub extern "C" fn efi_print_u16(&self, s: &[u16]) -> EFI_STATUS { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/console.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | pub extern "C" fn efi_print(&self, s: &str) -> EFI_STATUS{ [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/console.rs:25:46 [INFO] [stdout] | [INFO] [stdout] 25 | pub extern "C" fn efi_print_u8(&self, s: &[u8]) -> EFI_STATUS { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u16]`, which is not FFI-safe [INFO] [stdout] --> src/console.rs:38:47 [INFO] [stdout] | [INFO] [stdout] 38 | pub extern "C" fn efi_print_u16(&self, s: &[u16]) -> EFI_STATUS { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Result`, which is not FFI-safe [INFO] [stdout] --> src/mm.rs:6:61 [INFO] [stdout] | [INFO] [stdout] 6 | alloctype: EFI_ALLOCATE_TYPE, memtype: EFI_MEMORY_TYPE) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Result`, which is not FFI-safe [INFO] [stdout] --> src/mm.rs:16:55 [INFO] [stdout] | [INFO] [stdout] 16 | extern "C" fn efi_allocate_any_pages(pages: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Result<(), ()>`, which is not FFI-safe [INFO] [stdout] --> src/mm.rs:26:81 [INFO] [stdout] | [INFO] [stdout] 26 | mut map_key: &mut usize, mut desc_size: &mut usize, mut desc_ver: &mut u32) -> Result<(),()> { [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/util.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | pub extern "C" fn str_to_u16(s: &str) -> [u16;1000] { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u16; 1000]`, which is not FFI-safe [INFO] [stdout] --> src/util.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | pub extern "C" fn str_to_u16(s: &str) -> [u16;1000] { [INFO] [stdout] | ^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider passing a pointer to the array [INFO] [stdout] = note: passing raw arrays by value is not FFI-safe [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/util.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | pub extern "C" fn print_u8(s: &[u8]) { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u16]`, which is not FFI-safe [INFO] [stdout] --> src/util.rs:19:32 [INFO] [stdout] | [INFO] [stdout] 19 | pub extern "C" fn print_u16(s: &[u16]) { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Result`, which is not FFI-safe [INFO] [stdout] --> src/mm.rs:6:61 [INFO] [stdout] | [INFO] [stdout] 6 | alloctype: EFI_ALLOCATE_TYPE, memtype: EFI_MEMORY_TYPE) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Result`, which is not FFI-safe [INFO] [stdout] --> src/mm.rs:16:55 [INFO] [stdout] | [INFO] [stdout] 16 | extern "C" fn efi_allocate_any_pages(pages: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Result<(), ()>`, which is not FFI-safe [INFO] [stdout] --> src/mm.rs:26:81 [INFO] [stdout] | [INFO] [stdout] 26 | mut map_key: &mut usize, mut desc_size: &mut usize, mut desc_ver: &mut u32) -> Result<(),()> { [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/util.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | pub extern "C" fn str_to_u16(s: &str) -> [u16;1000] { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u16; 1000]`, which is not FFI-safe [INFO] [stdout] --> src/util.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | pub extern "C" fn str_to_u16(s: &str) -> [u16;1000] { [INFO] [stdout] | ^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider passing a pointer to the array [INFO] [stdout] = note: passing raw arrays by value is not FFI-safe [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/util.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | pub extern "C" fn print_u8(s: &[u8]) { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u16]`, which is not FFI-safe [INFO] [stdout] --> src/util.rs:19:32 [INFO] [stdout] | [INFO] [stdout] 19 | pub extern "C" fn print_u16(s: &[u16]) { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use core::ptr; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: language item required, but not found: `eh_personality` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:26:2 [INFO] [stdout] | [INFO] [stdout] 23 | / loop{ [INFO] [stdout] 24 | | [INFO] [stdout] 25 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 26 | EFI_STATUS::SUCCESS [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `uefi-bootloader` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `core::ptr` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use core::ptr; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/main.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | fn panic(_panic: &PanicInfo<'_>) -> ! { [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/8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e3026a7ea720d3a3.rlib [INFO] [stdout] = note: second definition in the local crate (`uefi_bootloader`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:26:2 [INFO] [stdout] | [INFO] [stdout] 23 | / loop{ [INFO] [stdout] 24 | | [INFO] [stdout] 25 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 26 | EFI_STATUS::SUCCESS [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "90c10daee3b37d602dca34b4e6d629feba751b49c57522bbf8e646c9c1a2872b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90c10daee3b37d602dca34b4e6d629feba751b49c57522bbf8e646c9c1a2872b", kill_on_drop: false }` [INFO] [stdout] 90c10daee3b37d602dca34b4e6d629feba751b49c57522bbf8e646c9c1a2872b