[INFO] cloning repository https://github.com/chlorodose/chos [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chlorodose/chos" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchlorodose%2Fchos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchlorodose%2Fchos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1308d5f307e2ee65f1e6b39041b7968a6290f5d7 [INFO] checking chlorodose/chos against try#1383df06117fd218068d1f39fd5326256dd4a348 for pr-145181 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchlorodose%2Fchos" "/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/chlorodose/chos [INFO] finished tweaking git repo https://github.com/chlorodose/chos [INFO] tweaked toml for git repo https://github.com/chlorodose/chos written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chlorodose/chos on toolchain 1383df06117fd218068d1f39fd5326256dd4a348 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chlorodose/chos 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" "+1383df06117fd218068d1f39fd5326256dd4a348" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded limine v0.5.0 [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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 970dd2762293d8a31737efbd0f4f1a9441ceda6bb5939371a52f298a5be3e280 [INFO] running `Command { std: "docker" "start" "-a" "970dd2762293d8a31737efbd0f4f1a9441ceda6bb5939371a52f298a5be3e280", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "970dd2762293d8a31737efbd0f4f1a9441ceda6bb5939371a52f298a5be3e280", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "970dd2762293d8a31737efbd0f4f1a9441ceda6bb5939371a52f298a5be3e280", kill_on_drop: false }` [INFO] [stdout] 970dd2762293d8a31737efbd0f4f1a9441ceda6bb5939371a52f298a5be3e280 [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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9c7584545e5930b2c2fdec4f2cdd0f8943740d29c6e416f9fa682997ab82cbd [INFO] running `Command { std: "docker" "start" "-a" "c9c7584545e5930b2c2fdec4f2cdd0f8943740d29c6e416f9fa682997ab82cbd", kill_on_drop: false }` [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking kernel v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `strict_overflow_ops` has been stable since 1.91.0-nightly and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | strict_overflow_ops [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `strict_overflow_ops` has been stable since 1.91.0-nightly and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | strict_overflow_ops [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> src/arch/riscv64/mod.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | sfence.vma {asid}, x0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | asid = in(reg) addr_space, [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] = 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] --> src/arch/riscv64/mod.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | sfence.vma {asid}, x0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | asid = in(reg) addr_space, [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] = note: `#[warn(asm_sub_register)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root` [INFO] [stdout] --> src/page.rs:189:17 [INFO] [stdout] | [INFO] [stdout] 189 | let mut root = self.phy_accessor.access_phy_page(self.root_ppn); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/page.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | let mut root = self.phy_accessor.access_phy_page(self.root_ppn); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Arch` is never constructed [INFO] [stdout] --> src/arch/riscv64/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Arch; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASE_VALID` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:177:7 [INFO] [stdout] | [INFO] [stdout] 177 | const BASE_VALID: usize = 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPN_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:179:7 [INFO] [stdout] | [INFO] [stdout] 179 | const PPN_OFFSET: usize = 10; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPN_LEN` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | const PPN_LEN: usize = 50; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RESERVED_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:181:7 [INFO] [stdout] | [INFO] [stdout] 181 | const RESERVED_OFFSET: usize = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GLOBAL_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:182:7 [INFO] [stdout] | [INFO] [stdout] 182 | const GLOBAL_OFFSET: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:183:7 [INFO] [stdout] | [INFO] [stdout] 183 | const USER_OFFSET: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ACCESS_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:184:7 [INFO] [stdout] | [INFO] [stdout] 184 | const ACCESS_OFFSET: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIRTY_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:185:7 [INFO] [stdout] | [INFO] [stdout] 185 | const DIRTY_OFFSET: usize = 7; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CACHE_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:186:7 [INFO] [stdout] | [INFO] [stdout] 186 | const CACHE_OFFSET: usize = 61; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CACHE_LEN` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:187:7 [INFO] [stdout] | [INFO] [stdout] 187 | const CACHE_LEN: usize = 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRIVILEGE_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:188:7 [INFO] [stdout] | [INFO] [stdout] 188 | const PRIVILEGE_OFFSET: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRIVILEGE_LEN` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:189:7 [INFO] [stdout] | [INFO] [stdout] 189 | const PRIVILEGE_LEN: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `privilege_to_number` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:191:10 [INFO] [stdout] | [INFO] [stdout] 191 | const fn privilege_to_number(p: PagePrivilege) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_to_privilege` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn number_to_privilege(num: usize) -> PagePrivilege { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_to_cache` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn number_to_cache(num: usize) -> PageCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cache_to_number` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:218:10 [INFO] [stdout] | [INFO] [stdout] 218 | const fn cache_to_number(c: PageCache) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `len_to_mask` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:225:10 [INFO] [stdout] | [INFO] [stdout] 225 | const fn len_to_mask(len: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop_phy` is never used [INFO] [stdout] --> src/page.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | pub(crate) unsafe fn drop_phy(guard: &mut impl PhysicalPageAccessGuard) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `allocator` is never read [INFO] [stdout] --> src/page.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct PageTree { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 87 | allocator: A, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PageTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `size_to_len` is never used [INFO] [stdout] --> src/page.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn size_to_len(size: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: avoid using labels containing only the digits `0` and `1` in inline assembly [INFO] [stdout] --> src/arch/riscv64/mod.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | j 1f; [INFO] [stdout] | _______________________^ [INFO] [stdout] 62 | | .align 12 // Ensure instructions do not cross a page boundary [INFO] [stdout] 63 | | 1: [INFO] [stdout] | |_____________________^ use a different label that doesn't start with `0` or `1` [INFO] [stdout] | [INFO] [stdout] = help: start numbering with `2` instead [INFO] [stdout] = note: an LLVM bug makes these labels ambiguous with a binary literal number on x86 [INFO] [stdout] = note: see for more information [INFO] [stdout] = note: `#[deny(binary_asm_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: avoid using labels containing only the digits `0` and `1` in inline assembly [INFO] [stdout] --> src/arch/riscv64/mod.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | j 1f; [INFO] [stdout] | _______________________^ [INFO] [stdout] 89 | | .align 11 // Ensure instructions do not cross a page boundary [INFO] [stdout] 90 | | 1: [INFO] [stdout] | |_____________________^ use a different label that doesn't start with `0` or `1` [INFO] [stdout] | [INFO] [stdout] = help: start numbering with `2` instead [INFO] [stdout] = note: an LLVM bug makes these labels ambiguous with a binary literal number on x86 [INFO] [stdout] = note: see for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `kernel` (lib test) due to 2 previous errors; 25 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `root` [INFO] [stdout] --> src/page.rs:189:17 [INFO] [stdout] | [INFO] [stdout] 189 | let mut root = self.phy_accessor.access_phy_page(self.root_ppn); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/page.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | let mut root = self.phy_accessor.access_phy_page(self.root_ppn); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Arch` is never constructed [INFO] [stdout] --> src/arch/riscv64/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Arch; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASE_VALID` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:177:7 [INFO] [stdout] | [INFO] [stdout] 177 | const BASE_VALID: usize = 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPN_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:179:7 [INFO] [stdout] | [INFO] [stdout] 179 | const PPN_OFFSET: usize = 10; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPN_LEN` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | const PPN_LEN: usize = 50; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RESERVED_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:181:7 [INFO] [stdout] | [INFO] [stdout] 181 | const RESERVED_OFFSET: usize = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GLOBAL_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:182:7 [INFO] [stdout] | [INFO] [stdout] 182 | const GLOBAL_OFFSET: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:183:7 [INFO] [stdout] | [INFO] [stdout] 183 | const USER_OFFSET: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ACCESS_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:184:7 [INFO] [stdout] | [INFO] [stdout] 184 | const ACCESS_OFFSET: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIRTY_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:185:7 [INFO] [stdout] | [INFO] [stdout] 185 | const DIRTY_OFFSET: usize = 7; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CACHE_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:186:7 [INFO] [stdout] | [INFO] [stdout] 186 | const CACHE_OFFSET: usize = 61; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CACHE_LEN` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:187:7 [INFO] [stdout] | [INFO] [stdout] 187 | const CACHE_LEN: usize = 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRIVILEGE_OFFSET` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:188:7 [INFO] [stdout] | [INFO] [stdout] 188 | const PRIVILEGE_OFFSET: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRIVILEGE_LEN` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:189:7 [INFO] [stdout] | [INFO] [stdout] 189 | const PRIVILEGE_LEN: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `privilege_to_number` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:191:10 [INFO] [stdout] | [INFO] [stdout] 191 | const fn privilege_to_number(p: PagePrivilege) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_to_privilege` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn number_to_privilege(num: usize) -> PagePrivilege { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_to_cache` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn number_to_cache(num: usize) -> PageCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cache_to_number` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:218:10 [INFO] [stdout] | [INFO] [stdout] 218 | const fn cache_to_number(c: PageCache) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `len_to_mask` is never used [INFO] [stdout] --> src/arch/riscv64/mod.rs:225:10 [INFO] [stdout] | [INFO] [stdout] 225 | const fn len_to_mask(len: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drop_phy` is never used [INFO] [stdout] --> src/page.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | pub(crate) unsafe fn drop_phy(guard: &mut impl PhysicalPageAccessGuard) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `allocator` is never read [INFO] [stdout] --> src/page.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct PageTree { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 87 | allocator: A, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PageTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `size_to_len` is never used [INFO] [stdout] --> src/page.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn size_to_len(size: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: avoid using labels containing only the digits `0` and `1` in inline assembly [INFO] [stdout] --> src/arch/riscv64/mod.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | j 1f; [INFO] [stdout] | _______________________^ [INFO] [stdout] 62 | | .align 12 // Ensure instructions do not cross a page boundary [INFO] [stdout] 63 | | 1: [INFO] [stdout] | |_____________________^ use a different label that doesn't start with `0` or `1` [INFO] [stdout] | [INFO] [stdout] = help: start numbering with `2` instead [INFO] [stdout] = note: an LLVM bug makes these labels ambiguous with a binary literal number on x86 [INFO] [stdout] = note: see for more information [INFO] [stdout] = note: `#[deny(binary_asm_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: avoid using labels containing only the digits `0` and `1` in inline assembly [INFO] [stdout] --> src/arch/riscv64/mod.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | j 1f; [INFO] [stdout] | _______________________^ [INFO] [stdout] 89 | | .align 11 // Ensure instructions do not cross a page boundary [INFO] [stdout] 90 | | 1: [INFO] [stdout] | |_____________________^ use a different label that doesn't start with `0` or `1` [INFO] [stdout] | [INFO] [stdout] = help: start numbering with `2` instead [INFO] [stdout] = note: an LLVM bug makes these labels ambiguous with a binary literal number on x86 [INFO] [stdout] = note: see for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `kernel` (lib) due to 2 previous errors; 25 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c9c7584545e5930b2c2fdec4f2cdd0f8943740d29c6e416f9fa682997ab82cbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9c7584545e5930b2c2fdec4f2cdd0f8943740d29c6e416f9fa682997ab82cbd", kill_on_drop: false }` [INFO] [stdout] c9c7584545e5930b2c2fdec4f2cdd0f8943740d29c6e416f9fa682997ab82cbd