[INFO] cloning repository https://github.com/ouyangyipeng/YSOS-oyyp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ouyangyipeng/YSOS-oyyp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fouyangyipeng%2FYSOS-oyyp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fouyangyipeng%2FYSOS-oyyp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aafdb47875942a9385fd4787905093672b54bad2 [INFO] building ouyangyipeng/YSOS-oyyp against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fouyangyipeng%2FYSOS-oyyp" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/ouyangyipeng/YSOS-oyyp [INFO] finished tweaking git repo https://github.com/ouyangyipeng/YSOS-oyyp [INFO] tweaked toml for git repo https://github.com/ouyangyipeng/YSOS-oyyp written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ouyangyipeng/YSOS-oyyp on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ouyangyipeng/YSOS-oyyp 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-complex v0.3.1 [INFO] [stderr] Downloaded mu_uefi_runtime_services v2.0.0 [INFO] [stderr] Downloaded ptr_meta_derive v0.3.0 [INFO] [stderr] Downloaded ptr_meta v0.3.0 [INFO] [stderr] Downloaded uguid v2.2.1 [INFO] [stderr] Downloaded volatile v0.6.1 [INFO] [stderr] Downloaded num v0.3.1 [INFO] [stderr] Downloaded embedded-time v0.12.1 [INFO] [stderr] Downloaded uefi-raw v0.10.0 [INFO] [stderr] Downloaded x86_64 v0.15.2 [INFO] [stderr] Downloaded raw-cpuid v10.7.0 [INFO] [stderr] Downloaded spinning_top v0.2.5 [INFO] [stderr] Downloaded uefi-macros v0.18.1 [INFO] [stderr] Downloaded ucs2 v0.3.3 [INFO] [stderr] Downloaded xmas-elf v0.10.0 [INFO] [stderr] Downloaded uefi v0.34.1 [INFO] [stderr] Downloaded hex-literal v1.0.0 [INFO] [stderr] Downloaded spin v0.10.0 [INFO] [stderr] Downloaded volatile v0.4.6 [INFO] [stderr] Downloaded zero v0.1.3 [INFO] [stderr] Downloaded x86 v0.52.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f8f1cae6576fd62160316ccb27817162a848d4e5337ad66cf53de25e1ca9e8be [INFO] running `Command { std: "docker" "start" "-a" "f8f1cae6576fd62160316ccb27817162a848d4e5337ad66cf53de25e1ca9e8be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f8f1cae6576fd62160316ccb27817162a848d4e5337ad66cf53de25e1ca9e8be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8f1cae6576fd62160316ccb27817162a848d4e5337ad66cf53de25e1ca9e8be", kill_on_drop: false }` [INFO] [stdout] f8f1cae6576fd62160316ccb27817162a848d4e5337ad66cf53de25e1ca9e8be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 73d6943bdfd1d3d009b5c74cb37dcb56e9538bd5998d375dd86a1341ad688106 [INFO] running `Command { std: "docker" "start" "-a" "73d6943bdfd1d3d009b5c74cb37dcb56e9538bd5998d375dd86a1341ad688106", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling volatile v0.4.6 [INFO] [stderr] Compiling uguid v2.2.1 [INFO] [stderr] Compiling zero v0.1.3 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling ucs2 v0.3.3 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling x86 v0.52.0 [INFO] [stderr] Compiling spinning_top v0.2.5 [INFO] [stderr] Compiling spin v0.10.0 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling xmas-elf v0.10.0 [INFO] [stderr] Compiling linked_list_allocator v0.10.5 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling raw-cpuid v10.7.0 [INFO] [stderr] Compiling hex-literal v1.0.0 [INFO] [stderr] Compiling uefi-raw v0.10.0 [INFO] [stderr] Compiling r-efi v5.2.0 [INFO] [stderr] Compiling volatile v0.6.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling mu_uefi_runtime_services v2.0.0 [INFO] [stderr] Compiling x86_64 v0.15.2 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.3.1 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num v0.3.1 [INFO] [stderr] Compiling embedded-time v0.12.1 [INFO] [stderr] Compiling ysos_elf v0.4.0 (/opt/rustwide/workdir/pkg/elf) [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Compiling ptr_meta_derive v0.3.0 [INFO] [stderr] Compiling uefi-macros v0.18.1 [INFO] [stderr] Compiling ptr_meta v0.3.0 [INFO] [stderr] Compiling num_enum v0.7.3 [INFO] [stderr] Compiling uefi v0.34.1 [INFO] [stderr] Compiling ysos_syscall v0.4.0 (/opt/rustwide/workdir/pkg/syscall) [INFO] [stderr] Compiling ysos_storage v0.4.0 (/opt/rustwide/workdir/pkg/storage) [INFO] [stderr] Compiling yslib v0.4.0 (/opt/rustwide/workdir/pkg/lib) [INFO] [stdout] error: cannot define multiple global allocators [INFO] [stdout] --> pkg/lib/src/allocator/kernel.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[global_allocator] [INFO] [stdout] | ------------------- in this attribute macro expansion [INFO] [stdout] 13 | static ALLOCATOR: KernelAllocator = KernelAllocator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot define a new global allocator [INFO] [stdout] | [INFO] [stdout] ::: pkg/lib/src/allocator/brk.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | static ALLOCATOR: LockedHeap = LockedHeap::empty(); [INFO] [stdout] | --------------------------------------------------- previous global allocator defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot define multiple allocation error handlers [INFO] [stdout] --> pkg/lib/src/allocator/kernel.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 16 | #[alloc_error_handler] [INFO] [stdout] | ---------------------- in this attribute macro expansion [INFO] [stdout] 17 | / fn alloc_error_handler(layout: alloc::alloc::Layout) -> ! { [INFO] [stdout] 18 | | panic!("Allocation error: {:?}", layout) [INFO] [stdout] 19 | | } [INFO] [stdout] | |_^ cannot define a new allocation error handler [INFO] [stdout] | [INFO] [stdout] ::: pkg/lib/src/allocator/brk.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | / fn alloc_error_handler(layout: alloc::alloc::Layout) -> ! { [INFO] [stdout] 24 | | panic!("Allocation error: {:?}", layout) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_- previous allocation error handler defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> pkg/lib/src/syscall.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | NaiveDateTime::from_timestamp(time / BILLION, (time % BILLION) as u32) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> pkg/lib/src/syscall.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 49 | let utc_dt = NaiveDateTime::from_timestamp(time / BILLION, (time % BILLION) as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> pkg/lib/src/syscall.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | DateTime::from_utc(utc_dt, beijing_offset) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `yslib` (lib) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `start_len` [INFO] [stdout] --> pkg/storage/src/common/io.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let mut start_len = buf.len(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 11 | let mut _start_len = buf.len(); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `BLOCK_SIZE` [INFO] [stdout] | [INFO] [stdout] 11 - let mut start_len = buf.len(); [INFO] [stdout] 11 + let mut fs::fat16::BLOCK_SIZE = buf.len(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pkg/storage/src/common/io.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut start_len = buf.len(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> pkg/storage/src/common/io.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | fn write_all(&mut self, mut buf: &[u8]) -> FsResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pkg/storage/src/common/io.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | fn write_all(&mut self, mut buf: &[u8]) -> FsResult { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> pkg/storage/src/fs/fat16/file.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 66 | sec_per_clus=> { [INFO] [stdout] | ------------ matches any value [INFO] [stdout] ... [INFO] [stdout] 70 | _ => sector_num + 1, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: there is a binding of the same name; if you meant to pattern match against the value of that binding, that is a feature of constants that is not available for `let` bindings [INFO] [stdout] --> pkg/storage/src/fs/fat16/file.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let sec_per_clus = self.handle.bpb.sectors_per_cluster(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sec_per_clus` [INFO] [stdout] --> pkg/storage/src/fs/fat16/file.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let sec_per_clus = self.handle.bpb.sectors_per_cluster(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sec_per_clus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sec_per_clus` [INFO] [stdout] --> pkg/storage/src/fs/fat16/file.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | sec_per_clus=> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 66 | _sec_per_clus=> { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `BLOCK_SIZE` [INFO] [stdout] | [INFO] [stdout] 66 - sec_per_clus=> { [INFO] [stdout] 66 + fs::fat16::BLOCK_SIZE=> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pkg/storage/src/fs/fat16/file.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut current_offset = self.handle.cluster_to_sector(&self.current_cluster) + sector_num; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> pkg/storage/src/fs/fat16/file.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 80 | fn seek(&mut self, pos: SeekFrom) -> FsResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> pkg/storage/src/fs/fat16/impls.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut block: Block<512> = Block::default(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entries_per_sector` [INFO] [stdout] --> pkg/storage/src/fs/fat16/impls.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | let entries_per_sector = BLOCK_SIZE / DirEntry::LEN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 176 | let _entries_per_sector = BLOCK_SIZE / DirEntry::LEN; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `BLOCK_SIZE` [INFO] [stdout] | [INFO] [stdout] 176 - let entries_per_sector = BLOCK_SIZE / DirEntry::LEN; [INFO] [stdout] 176 + let fs::fat16::BLOCK_SIZE = BLOCK_SIZE / DirEntry::LEN; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pkg/storage/src/fs/fat16/impls.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let mut block: Block<512> = Block::default(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `core::result::Result` that must be used [INFO] [stdout] --> pkg/storage/src/fs/fat16/impls.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | self.inner.read_block(sector, &mut block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = self.inner.read_block(sector, &mut block); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "73d6943bdfd1d3d009b5c74cb37dcb56e9538bd5998d375dd86a1341ad688106", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73d6943bdfd1d3d009b5c74cb37dcb56e9538bd5998d375dd86a1341ad688106", kill_on_drop: false }` [INFO] [stdout] 73d6943bdfd1d3d009b5c74cb37dcb56e9538bd5998d375dd86a1341ad688106