[INFO] cloning repository https://github.com/pitiK3U/rust-kernel [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pitiK3U/rust-kernel" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FpitiK3U%2Frust-kernel", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FpitiK3U%2Frust-kernel'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cd70972d0854eb3fe2eebe8ea11bc13607bf619a [INFO] checking pitiK3U/rust-kernel against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FpitiK3U%2Frust-kernel" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pitiK3U/rust-kernel on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-7-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/pitiK3U/rust-kernel [INFO] finished tweaking git repo https://github.com/pitiK3U/rust-kernel [INFO] tweaked toml for git repo https://github.com/pitiK3U/rust-kernel written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/pitiK3U/rust-kernel 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `edition2021` has been stabilized in the 1.56 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-edition-field for more information about using this feature. [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d1c132038a9f348cf358d3967147a21647376c350c6b848b93568a18e7945526 [INFO] running `Command { std: "docker" "start" "-a" "d1c132038a9f348cf358d3967147a21647376c350c6b848b93568a18e7945526", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d1c132038a9f348cf358d3967147a21647376c350c6b848b93568a18e7945526", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1c132038a9f348cf358d3967147a21647376c350c6b848b93568a18e7945526", kill_on_drop: false }` [INFO] [stdout] d1c132038a9f348cf358d3967147a21647376c350c6b848b93568a18e7945526 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6523cf18b2571cbbb35a8940c5842e264154603acfd7e4b41289d0ec4cc412e5 [INFO] running `Command { std: "docker" "start" "-a" "6523cf18b2571cbbb35a8940c5842e264154603acfd7e4b41289d0ec4cc412e5", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `edition2021` has been stabilized in the 1.56 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-edition-field for more information about using this feature. [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking bit_field v0.10.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking rkernel v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `lang_items` is internal to the compiler or standard library [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(lang_items)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `lang_items` is internal to the compiler or standard library [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(lang_items)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `singleton::*` [INFO] [stdout] --> src/essentials/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use singleton::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `singleton::*` [INFO] [stdout] --> src/essentials/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use singleton::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_raw_ptr_deref` has been stable since 1.58.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_raw_ptr_deref)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_raw_ptr_deref` has been stable since 1.58.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_raw_ptr_deref)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interrupts.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut idt = InterruptDescriptorTable::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/interrupts.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut idt = InterruptDescriptorTable::new(); [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: static `HELLO` is never used [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | static HELLO: &str = "Hello\tWöorld\n"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_background_color`, `set_foreground_color`, and `clear` are never used [INFO] [stdout] --> src/monitor.rs:142:16 [INFO] [stdout] | [INFO] [stdout] 139 | impl Monitor { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn set_background_color(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn set_foreground_color(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Singleton` is never constructed [INFO] [stdout] --> src/essentials/singleton.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Singleton { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `take` and `give` are never used [INFO] [stdout] --> src/essentials/singleton.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Singleton { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn take(&mut self) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn give(&mut self, inner: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unlock` is never used [INFO] [stdout] --> src/essentials/mutex.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Mutex { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn unlock(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `HandlerFunc` is never used [INFO] [stdout] --> src/interrupts.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type HandlerFunc = extern "C" fn() -> !; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Gdt` and `Ldt` are never constructed [INFO] [stdout] --> src/interrupts.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TableIndex { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 9 | /// Global Descriptor Table [INFO] [stdout] 10 | Gdt = 0, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | /// Local Descriptor Table [INFO] [stdout] 12 | Ldt = 1, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Selector(u16); [INFO] [stdout] | -------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Selector` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_rpl`, `set_table_index`, and `set_index` are never used [INFO] [stdout] --> src/interrupts.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Selector { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn set_rpl(mut self, rpl: u8) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn set_table_index(mut self, table_index: TableIndex) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn set_index(mut self, index: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_code_segment` is never used [INFO] [stdout] --> src/interrupts.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_code_segment() -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:78:41 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct InterruptDescriptorTable([Entry; 16]); [INFO] [stdout] | ------------------------ ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_handler` is never used [INFO] [stdout] --> src/interrupts.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl InterruptDescriptorTable { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | fn set_handler(&mut self, entry_index: u8, handler: HandlerFunc) -> &mut TypeAttribute { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/interrupts.rs:128:16 [INFO] [stdout] | [INFO] [stdout] 127 | impl Entry { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 128 | pub fn new(selector: Selector, handler: HandlerFunc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GateType` is never used [INFO] [stdout] --> src/interrupts.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 151 | enum GateType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DescriptorPrivilageLevel` is never used [INFO] [stdout] --> src/interrupts.rs:165:10 [INFO] [stdout] | [INFO] [stdout] 165 | enum DescriptorPrivilageLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:174:26 [INFO] [stdout] | [INFO] [stdout] 174 | struct TypeAttribute(u8); [INFO] [stdout] | ------------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `TypeAttribute` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_present`, `set_descriptor_privilage_level`, and `set_gate` are never used [INFO] [stdout] --> src/interrupts.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 176 | impl TypeAttribute { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | fn set_present(&mut self, present: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn set_descriptor_privilage_level(&mut self, dpl: DescriptorPrivilageLevel) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | fn set_gate(&mut self, gate: GateType) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/port.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Port { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn write(&self, value: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Success` and `Failed` are never constructed [INFO] [stdout] --> src/test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum QemuExitCode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 6 | Success = 0x10, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Failed = 0x11, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QemuExitCode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_qemu` is never used [INFO] [stdout] --> src/test.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn exit_qemu(exit_code: QemuExitCode) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a macro [INFO] [stdout] --> src/monitor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | macro_rules! print { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a macro [INFO] [stdout] --> src/monitor.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | macro_rules! println { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `IDT` should have a snake case name [INFO] [stdout] --> src/interrupts.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub mod IDT { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `idt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `HELLO` is never used [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | static HELLO: &str = "Hello\tWöorld\n"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_background_color`, `set_foreground_color`, and `clear` are never used [INFO] [stdout] --> src/monitor.rs:142:16 [INFO] [stdout] | [INFO] [stdout] 139 | impl Monitor { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn set_background_color(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn set_foreground_color(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Singleton` is never constructed [INFO] [stdout] --> src/essentials/singleton.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Singleton { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `take` and `give` are never used [INFO] [stdout] --> src/essentials/singleton.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Singleton { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn take(&mut self) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn give(&mut self, inner: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unlock` is never used [INFO] [stdout] --> src/essentials/mutex.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Mutex { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn unlock(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `HandlerFunc` is never used [INFO] [stdout] --> src/interrupts.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type HandlerFunc = extern "C" fn() -> !; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Gdt` and `Ldt` are never constructed [INFO] [stdout] --> src/interrupts.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TableIndex { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 9 | /// Global Descriptor Table [INFO] [stdout] 10 | Gdt = 0, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | /// Local Descriptor Table [INFO] [stdout] 12 | Ldt = 1, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Selector(u16); [INFO] [stdout] | -------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Selector` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_rpl`, `set_table_index`, and `set_index` are never used [INFO] [stdout] --> src/interrupts.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Selector { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn set_rpl(mut self, rpl: u8) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn set_table_index(mut self, table_index: TableIndex) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn set_index(mut self, index: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_code_segment` is never used [INFO] [stdout] --> src/interrupts.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_code_segment() -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:78:41 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct InterruptDescriptorTable([Entry; 16]); [INFO] [stdout] | ------------------------ ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_handler` is never used [INFO] [stdout] --> src/interrupts.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl InterruptDescriptorTable { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | fn set_handler(&mut self, entry_index: u8, handler: HandlerFunc) -> &mut TypeAttribute { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/interrupts.rs:128:16 [INFO] [stdout] | [INFO] [stdout] 127 | impl Entry { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 128 | pub fn new(selector: Selector, handler: HandlerFunc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GateType` is never used [INFO] [stdout] --> src/interrupts.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 151 | enum GateType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DescriptorPrivilageLevel` is never used [INFO] [stdout] --> src/interrupts.rs:165:10 [INFO] [stdout] | [INFO] [stdout] 165 | enum DescriptorPrivilageLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:174:26 [INFO] [stdout] | [INFO] [stdout] 174 | struct TypeAttribute(u8); [INFO] [stdout] | ------------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `TypeAttribute` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_present`, `set_descriptor_privilage_level`, and `set_gate` are never used [INFO] [stdout] --> src/interrupts.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 176 | impl TypeAttribute { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | fn set_present(&mut self, present: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn set_descriptor_privilage_level(&mut self, dpl: DescriptorPrivilageLevel) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | fn set_gate(&mut self, gate: GateType) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Success` is never constructed [INFO] [stdout] --> src/test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum QemuExitCode { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 6 | Success = 0x10, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QemuExitCode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `IDT` should have a snake case name [INFO] [stdout] --> src/interrupts.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub mod IDT { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `idt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "6523cf18b2571cbbb35a8940c5842e264154603acfd7e4b41289d0ec4cc412e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6523cf18b2571cbbb35a8940c5842e264154603acfd7e4b41289d0ec4cc412e5", kill_on_drop: false }` [INFO] [stdout] 6523cf18b2571cbbb35a8940c5842e264154603acfd7e4b41289d0ec4cc412e5 [INFO] checking pitiK3U/rust-kernel against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FpitiK3U%2Frust-kernel" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pitiK3U/rust-kernel on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-7-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/pitiK3U/rust-kernel [INFO] finished tweaking git repo https://github.com/pitiK3U/rust-kernel [INFO] tweaked toml for git repo https://github.com/pitiK3U/rust-kernel written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/pitiK3U/rust-kernel 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `edition2021` has been stabilized in the 1.56 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-edition-field for more information about using this feature. [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1c4789753f5fb831a966a45e8e12c9da38fb270a17637f3d63c07e5f0a89fa52 [INFO] running `Command { std: "docker" "start" "-a" "1c4789753f5fb831a966a45e8e12c9da38fb270a17637f3d63c07e5f0a89fa52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1c4789753f5fb831a966a45e8e12c9da38fb270a17637f3d63c07e5f0a89fa52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c4789753f5fb831a966a45e8e12c9da38fb270a17637f3d63c07e5f0a89fa52", kill_on_drop: false }` [INFO] [stdout] 1c4789753f5fb831a966a45e8e12c9da38fb270a17637f3d63c07e5f0a89fa52 [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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3fee2a25b265e4db3110608b46cb5376eafa4270e408a76c96a0820e611012f0 [INFO] running `Command { std: "docker" "start" "-a" "3fee2a25b265e4db3110608b46cb5376eafa4270e408a76c96a0820e611012f0", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `edition2021` has been stabilized in the 1.56 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-edition-field for more information about using this feature. [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking bit_field v0.10.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking rkernel v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `lang_items` is internal to the compiler or standard library [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(lang_items)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `lang_items` is internal to the compiler or standard library [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(lang_items)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `singleton::*` [INFO] [stdout] --> src/essentials/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use singleton::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `singleton::*` [INFO] [stdout] --> src/essentials/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use singleton::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_raw_ptr_deref` has been stable since 1.58.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_raw_ptr_deref)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_raw_ptr_deref` has been stable since 1.58.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_raw_ptr_deref)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interrupts.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut idt = InterruptDescriptorTable::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/interrupts.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut idt = InterruptDescriptorTable::new(); [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: static `HELLO` is never used [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | static HELLO: &str = "Hello\tWöorld\n"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_background_color`, `set_foreground_color`, and `clear` are never used [INFO] [stdout] --> src/monitor.rs:142:16 [INFO] [stdout] | [INFO] [stdout] 139 | impl Monitor { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn set_background_color(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn set_foreground_color(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Singleton` is never constructed [INFO] [stdout] --> src/essentials/singleton.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Singleton { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `take` and `give` are never used [INFO] [stdout] --> src/essentials/singleton.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Singleton { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn take(&mut self) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn give(&mut self, inner: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unlock` is never used [INFO] [stdout] --> src/essentials/mutex.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Mutex { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn unlock(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `HandlerFunc` is never used [INFO] [stdout] --> src/interrupts.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type HandlerFunc = extern "C" fn() -> !; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Gdt` and `Ldt` are never constructed [INFO] [stdout] --> src/interrupts.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TableIndex { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 9 | /// Global Descriptor Table [INFO] [stdout] 10 | Gdt = 0, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | /// Local Descriptor Table [INFO] [stdout] 12 | Ldt = 1, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Selector(u16); [INFO] [stdout] | -------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Selector` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_rpl`, `set_table_index`, and `set_index` are never used [INFO] [stdout] --> src/interrupts.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Selector { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn set_rpl(mut self, rpl: u8) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn set_table_index(mut self, table_index: TableIndex) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn set_index(mut self, index: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_code_segment` is never used [INFO] [stdout] --> src/interrupts.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_code_segment() -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:78:41 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct InterruptDescriptorTable([Entry; 16]); [INFO] [stdout] | ------------------------ ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_handler` is never used [INFO] [stdout] --> src/interrupts.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl InterruptDescriptorTable { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | fn set_handler(&mut self, entry_index: u8, handler: HandlerFunc) -> &mut TypeAttribute { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/interrupts.rs:128:16 [INFO] [stdout] | [INFO] [stdout] 127 | impl Entry { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 128 | pub fn new(selector: Selector, handler: HandlerFunc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GateType` is never used [INFO] [stdout] --> src/interrupts.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 151 | enum GateType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DescriptorPrivilageLevel` is never used [INFO] [stdout] --> src/interrupts.rs:165:10 [INFO] [stdout] | [INFO] [stdout] 165 | enum DescriptorPrivilageLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:174:26 [INFO] [stdout] | [INFO] [stdout] 174 | struct TypeAttribute(u8); [INFO] [stdout] | ------------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `TypeAttribute` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_present`, `set_descriptor_privilage_level`, and `set_gate` are never used [INFO] [stdout] --> src/interrupts.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 176 | impl TypeAttribute { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | fn set_present(&mut self, present: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn set_descriptor_privilage_level(&mut self, dpl: DescriptorPrivilageLevel) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | fn set_gate(&mut self, gate: GateType) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/port.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Port { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn write(&self, value: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Success` and `Failed` are never constructed [INFO] [stdout] --> src/test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum QemuExitCode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 6 | Success = 0x10, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Failed = 0x11, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QemuExitCode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_qemu` is never used [INFO] [stdout] --> src/test.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn exit_qemu(exit_code: QemuExitCode) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a macro [INFO] [stdout] --> src/monitor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | macro_rules! print { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a macro [INFO] [stdout] --> src/monitor.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | macro_rules! println { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/essentials/mutex.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 20 | pub const fn new(inner: T) -> Self { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 21 | Self { [INFO] [stdout] 22 | inner: UnsafeCell::new(inner), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `IDT` should have a snake case name [INFO] [stdout] --> src/interrupts.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub mod IDT { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `idt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `HELLO` is never used [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | static HELLO: &str = "Hello\tWöorld\n"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_background_color`, `set_foreground_color`, and `clear` are never used [INFO] [stdout] --> src/monitor.rs:142:16 [INFO] [stdout] | [INFO] [stdout] 139 | impl Monitor { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn set_background_color(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn set_foreground_color(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Singleton` is never constructed [INFO] [stdout] --> src/essentials/singleton.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Singleton { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `take` and `give` are never used [INFO] [stdout] --> src/essentials/singleton.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Singleton { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn take(&mut self) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn give(&mut self, inner: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unlock` is never used [INFO] [stdout] --> src/essentials/mutex.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Mutex { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn unlock(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `HandlerFunc` is never used [INFO] [stdout] --> src/interrupts.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type HandlerFunc = extern "C" fn() -> !; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Gdt` and `Ldt` are never constructed [INFO] [stdout] --> src/interrupts.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TableIndex { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 9 | /// Global Descriptor Table [INFO] [stdout] 10 | Gdt = 0, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | /// Local Descriptor Table [INFO] [stdout] 12 | Ldt = 1, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Selector(u16); [INFO] [stdout] | -------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Selector` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_rpl`, `set_table_index`, and `set_index` are never used [INFO] [stdout] --> src/interrupts.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Selector { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn set_rpl(mut self, rpl: u8) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn set_table_index(mut self, table_index: TableIndex) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn set_index(mut self, index: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_code_segment` is never used [INFO] [stdout] --> src/interrupts.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_code_segment() -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:78:41 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct InterruptDescriptorTable([Entry; 16]); [INFO] [stdout] | ------------------------ ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_handler` is never used [INFO] [stdout] --> src/interrupts.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl InterruptDescriptorTable { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | fn set_handler(&mut self, entry_index: u8, handler: HandlerFunc) -> &mut TypeAttribute { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/interrupts.rs:128:16 [INFO] [stdout] | [INFO] [stdout] 127 | impl Entry { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 128 | pub fn new(selector: Selector, handler: HandlerFunc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GateType` is never used [INFO] [stdout] --> src/interrupts.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 151 | enum GateType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DescriptorPrivilageLevel` is never used [INFO] [stdout] --> src/interrupts.rs:165:10 [INFO] [stdout] | [INFO] [stdout] 165 | enum DescriptorPrivilageLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/interrupts.rs:174:26 [INFO] [stdout] | [INFO] [stdout] 174 | struct TypeAttribute(u8); [INFO] [stdout] | ------------- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `TypeAttribute` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_present`, `set_descriptor_privilage_level`, and `set_gate` are never used [INFO] [stdout] --> src/interrupts.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 176 | impl TypeAttribute { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | fn set_present(&mut self, present: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn set_descriptor_privilage_level(&mut self, dpl: DescriptorPrivilageLevel) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | fn set_gate(&mut self, gate: GateType) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Success` is never constructed [INFO] [stdout] --> src/test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum QemuExitCode { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 6 | Success = 0x10, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QemuExitCode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/essentials/mutex.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 20 | pub const fn new(inner: T) -> Self { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 21 | Self { [INFO] [stdout] 22 | inner: UnsafeCell::new(inner), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `IDT` should have a snake case name [INFO] [stdout] --> src/interrupts.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub mod IDT { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `idt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rkernel` (bin "rkernel") due to 2 previous errors; 27 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rkernel` (bin "rkernel" test) due to 2 previous errors; 23 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3fee2a25b265e4db3110608b46cb5376eafa4270e408a76c96a0820e611012f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fee2a25b265e4db3110608b46cb5376eafa4270e408a76c96a0820e611012f0", kill_on_drop: false }` [INFO] [stdout] 3fee2a25b265e4db3110608b46cb5376eafa4270e408a76c96a0820e611012f0