[INFO] cloning repository https://github.com/carlmango11/carlos [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/carlmango11/carlos" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlmango11%2Fcarlos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlmango11%2Fcarlos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3de086c83465a766d2ba5bac93d802003f929e8a [INFO] checking carlmango11/carlos against try#579169d0e78824dc60934e5eb74cd3841f2b33e8 for pr-149328 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlmango11%2Fcarlos" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/carlmango11/carlos [INFO] finished tweaking git repo https://github.com/carlmango11/carlos [INFO] tweaked toml for git repo https://github.com/carlmango11/carlos written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/carlmango11/carlos on toolchain 579169d0e78824dc60934e5eb74cd3841f2b33e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+579169d0e78824dc60934e5eb74cd3841f2b33e8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/carlmango11/carlos 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" "+579169d0e78824dc60934e5eb74cd3841f2b33e8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded linked_list_allocator v0.10.5 [INFO] [stderr] Downloaded spinning_top v0.2.5 [INFO] [stderr] Downloaded raw-cpuid v10.7.0 [INFO] [stderr] Downloaded elf v0.8.0 [INFO] [stderr] Downloaded x86 v0.52.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+579169d0e78824dc60934e5eb74cd3841f2b33e8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aab2963b1c31c2718d65f2dd7b5910fbed14395eca27a262b811d4cde1c74041 [INFO] running `Command { std: "docker" "start" "-a" "aab2963b1c31c2718d65f2dd7b5910fbed14395eca27a262b811d4cde1c74041", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aab2963b1c31c2718d65f2dd7b5910fbed14395eca27a262b811d4cde1c74041", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aab2963b1c31c2718d65f2dd7b5910fbed14395eca27a262b811d4cde1c74041", kill_on_drop: false }` [INFO] [stdout] aab2963b1c31c2718d65f2dd7b5910fbed14395eca27a262b811d4cde1c74041 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+579169d0e78824dc60934e5eb74cd3841f2b33e8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88e7a7e4cc11e9555e4c97f774909166a38e80e8903bfcf578ccc3bfe99b6756 [INFO] running `Command { std: "docker" "start" "-a" "88e7a7e4cc11e9555e4c97f774909166a38e80e8903bfcf578ccc3bfe99b6756", kill_on_drop: false }` [INFO] [stderr] Compiling x86 v0.52.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking bit_field v0.10.3 [INFO] [stderr] Checking elf v0.8.0 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Checking spinning_top v0.2.5 [INFO] [stderr] Checking linked_list_allocator v0.10.5 [INFO] [stderr] Checking carlos v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/rust/paging.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use alloc::boxed::Box; [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 imports: `Display` and `Formatter` [INFO] [stdout] --> src/rust/paging.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use core::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/rust/lib.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 86 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 87 | [INFO] [stdout] 88 | let mem_info = unsafe { mem::read_mb_entries() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rust/mem.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | let mbi = &*(multiboot_info as *const MultibootInfo); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [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] --> src/rust/mem.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | pub unsafe fn read_mb_entries() -> Vec<&'static MultibootMemEntry> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [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]: use of mutable static is unsafe and requires unsafe block [INFO] [stdout] --> src/rust/mem.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | let mbi = &*(multiboot_info as *const MultibootInfo); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block [INFO] [stdout] --> src/rust/mem.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | let mut current = multiboot_info + core::mem::size_of::(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rust/mem.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | let tag = &*(current as *const MultibootMemTag); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [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: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mem::to_entry` is unsafe and requires unsafe block [INFO] [stdout] --> src/rust/mem.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | let x = to_entry(tag); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/rust/mem.rs:87:22 [INFO] [stdout] | [INFO] [stdout] 87 | let entry = &*((tag as *const _ as *const u8).add(current) as *const MultibootMemEntry); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [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] --> src/rust/mem.rs:79:1 [INFO] [stdout] | [INFO] [stdout] 79 | unsafe fn to_entry(tag: &MultibootMemTag) -> Vec<&MultibootMemEntry> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [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] --> src/rust/mem.rs:87:24 [INFO] [stdout] | [INFO] [stdout] 87 | let entry = &*((tag as *const _ as *const u8).add(current) as *const MultibootMemEntry); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/rust/mem.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let mut i = 4; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/rust/mem.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | i += 1; [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] warning[E0133]: use of extern static is unsafe and requires unsafe block [INFO] [stdout] --> src/rust/lib.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | let start = &heap_start as *const u8 as usize; [INFO] [stdout] | ^^^^^^^^^^ use of extern static [INFO] [stdout] | [INFO] [stdout] = note: extern statics are not controlled by the Rust type system: invalid data, 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/rust/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | unsafe fn init_heap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of extern static is unsafe and requires unsafe block [INFO] [stdout] --> src/rust/lib.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | let end = &heap_end as *const u8 as usize; [INFO] [stdout] | ^^^^^^^^ use of extern static [INFO] [stdout] | [INFO] [stdout] = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `linked_list_allocator::Heap::init` is unsafe and requires unsafe block [INFO] [stdout] --> src/rust/lib.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | HEAP.lock().init(start_mut, size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `page_tables` and `elf` are never read [INFO] [stdout] --> src/rust/lib.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 69 | struct Process { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 70 | page_tables: PageTable, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 71 | elf: ElfBytes<'static, LittleEndian>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PageEntry` is never constructed [INFO] [stdout] --> src/rust/mem.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct PageEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_page_directory` is never used [INFO] [stdout] --> src/rust/mem.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn create_page_directory() -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/rust/paging.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use alloc::boxed::Box; [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 imports: `Display` and `Formatter` [INFO] [stdout] --> src/rust/paging.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use core::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/rust/lib.rs:165:1 [INFO] [stdout] | [INFO] [stdout] 165 | / fn panic(_info: &PanicInfo) -> ! { [INFO] [stdout] 166 | | let m = format!("panic: {}", _info); [INFO] [stdout] 167 | | write_str(0, 0xfc00, m.as_str()); [INFO] [stdout] 168 | | loop {} [INFO] [stdout] 169 | | } [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/579169d0e78824dc60934e5eb74cd3841f2b33e8/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-957b1fe07cf96b13.rmeta [INFO] [stdout] = note: second definition in the local crate (`carlos`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `carlos` (lib test) due to 1 previous error; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "88e7a7e4cc11e9555e4c97f774909166a38e80e8903bfcf578ccc3bfe99b6756", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88e7a7e4cc11e9555e4c97f774909166a38e80e8903bfcf578ccc3bfe99b6756", kill_on_drop: false }` [INFO] [stdout] 88e7a7e4cc11e9555e4c97f774909166a38e80e8903bfcf578ccc3bfe99b6756