[INFO] cloning repository https://github.com/Misakait/charlotteos [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Misakait/charlotteos" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMisakait%2Fcharlotteos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMisakait%2Fcharlotteos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d01bf200064b348e51986449a0812e012508565d [INFO] checking Misakait/charlotteos against try#987a165cfab916796a8315782b83ac460a651ce2 for pr-145262 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMisakait%2Fcharlotteos" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-6-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/Misakait/charlotteos [INFO] finished tweaking git repo https://github.com/Misakait/charlotteos [INFO] tweaked toml for git repo https://github.com/Misakait/charlotteos written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Misakait/charlotteos on toolchain 987a165cfab916796a8315782b83ac460a651ce2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Misakait/charlotteos 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" "+987a165cfab916796a8315782b83ac460a651ce2" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bbd8329ac8360836ccb317f2534131520b257e2af7c790214eb3ef3381b4f599 [INFO] running `Command { std: "docker" "start" "-a" "bbd8329ac8360836ccb317f2534131520b257e2af7c790214eb3ef3381b4f599", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bbd8329ac8360836ccb317f2534131520b257e2af7c790214eb3ef3381b4f599", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbd8329ac8360836ccb317f2534131520b257e2af7c790214eb3ef3381b4f599", kill_on_drop: false }` [INFO] [stdout] bbd8329ac8360836ccb317f2534131520b257e2af7c790214eb3ef3381b4f599 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] abd746c3704f6cae83f36ff9a01d6fd2cd67659a14861cd3ebf8227383f108dc [INFO] running `Command { std: "docker" "start" "-a" "abd746c3704f6cae83f36ff9a01d6fd2cd67659a14861cd3ebf8227383f108dc", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking spin v0.10.0 [INFO] [stderr] Checking charlotte_os v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::driver::Uart` [INFO] [stdout] --> src/console/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::driver::Uart; // 引入统一的 Uart 类型 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HEAP_ALLOCATOR` [INFO] [stdout] --> src/mm/buddy.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::mm::{HEAP_ALLOCATOR, PAGE_SIZE}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::println` [INFO] [stdout] --> src/mm/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::println; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::console::_print` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::console::_print; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::driver::Uart` [INFO] [stdout] --> src/console/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::driver::Uart; // 引入统一的 Uart 类型 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LockedAllocator` [INFO] [stdout] --> src/main.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::mm::{init_heap, LockedAllocator}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HEAP_ALLOCATOR` [INFO] [stdout] --> src/mm/buddy.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::mm::{HEAP_ALLOCATOR, PAGE_SIZE}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::println` [INFO] [stdout] --> src/mm/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::println; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/lang_items.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / fn panic(info: &PanicInfo) -> ! { [INFO] [stdout] 10 | | println!("{}", info); [INFO] [stdout] 11 | | let shutdown_cmd: u32 = (STATUS_CODE << 16) | (FINISHER_FAIL as u32); [INFO] [stdout] 12 | | unsafe{ [INFO] [stdout] ... | [INFO] [stdout] 15 | | loop{} [INFO] [stdout] 16 | | } [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/987a165cfab916796a8315782b83ac460a651ce2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9fbdd90241d2d923.rlib [INFO] [stdout] = note: second definition in the local crate (`charlotte_os`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::console::_print` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::console::_print; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LockedAllocator` [INFO] [stdout] --> src/main.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::mm::{init_heap, LockedAllocator}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [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] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `charlotte_os` (bin "charlotte_os" test) due to 1 previous error; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/console/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/mm/buddy.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn alloc(&mut self, layout: Layout) -> Option> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/mm/buddy.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/mm/buddy.rs:78:49 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mm::buddy::BuddySystemAllocator::init` is unsafe and requires unsafe block [INFO] [stdout] --> src/mm/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | self.0.lock().init(heap_start, heap_end); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mm/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub unsafe fn init(&self, heap_start: usize, heap_end: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/mm/mod.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | self.0.lock().dealloc(NonNull::new_unchecked(ptr), layout); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mm/mod.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `charlotte_os` (bin "charlotte_os") due to 1 previous error; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "abd746c3704f6cae83f36ff9a01d6fd2cd67659a14861cd3ebf8227383f108dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abd746c3704f6cae83f36ff9a01d6fd2cd67659a14861cd3ebf8227383f108dc", kill_on_drop: false }` [INFO] [stdout] abd746c3704f6cae83f36ff9a01d6fd2cd67659a14861cd3ebf8227383f108dc