[INFO] cloning repository https://github.com/scsmithr/submarine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/scsmithr/submarine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscsmithr%2Fsubmarine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscsmithr%2Fsubmarine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2f9cbbede175bac08fbabdbf1d57a78790052c30 [INFO] checking scsmithr/submarine against try#8c500c7cefd54fd11d57295f3771d576be9ee415 for pr-145113 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscsmithr%2Fsubmarine" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/scsmithr/submarine [INFO] finished tweaking git repo https://github.com/scsmithr/submarine [INFO] tweaked toml for git repo https://github.com/scsmithr/submarine written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/scsmithr/submarine on toolchain 8c500c7cefd54fd11d57295f3771d576be9ee415 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/scsmithr/submarine 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" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking scsmithr/submarine against try#8c500c7cefd54fd11d57295f3771d576be9ee415 for pr-145113 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fscsmithr%2Fsubmarine" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/scsmithr/submarine [INFO] finished tweaking git repo https://github.com/scsmithr/submarine [INFO] tweaked toml for git repo https://github.com/scsmithr/submarine written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/scsmithr/submarine on toolchain 8c500c7cefd54fd11d57295f3771d576be9ee415 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/scsmithr/submarine 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" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded kvm-bindings v0.1.1 [INFO] [stderr] Downloaded kvm-ioctls v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4fe8b1053ff14db5b890a913f410d6276bd53b73433b82f2385495bf98a6e49e [INFO] running `Command { std: "docker" "start" "-a" "4fe8b1053ff14db5b890a913f410d6276bd53b73433b82f2385495bf98a6e49e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4fe8b1053ff14db5b890a913f410d6276bd53b73433b82f2385495bf98a6e49e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fe8b1053ff14db5b890a913f410d6276bd53b73433b82f2385495bf98a6e49e", kill_on_drop: false }` [INFO] [stdout] 4fe8b1053ff14db5b890a913f410d6276bd53b73433b82f2385495bf98a6e49e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec49dd29149331b16bf1533a8db91a02adab1c1a78cd2836b57a28a8056b6154 [INFO] running `Command { std: "docker" "start" "-a" "ec49dd29149331b16bf1533a8db91a02adab1c1a78cd2836b57a28a8056b6154", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling regex v1.1.7 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking utf8-ranges v1.0.3 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Checking termcolor v1.0.5 [INFO] [stderr] Checking kvm-bindings v0.1.1 [INFO] [stderr] Checking boot_gen v0.1.0 (/opt/rustwide/workdir/boot_gen) [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking humantime v1.2.0 [INFO] [stderr] Checking regex-syntax v0.6.7 [INFO] [stderr] Checking aho-corasick v0.7.3 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking kvm-ioctls v0.1.0 [INFO] [stderr] Checking env_logger v0.6.1 [INFO] [stderr] Checking submarine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: couldn't read `/boot/vmlinuz-linux`: No such file or directory (os error 2) [INFO] [stdout] --> src/loader/mod.rs:131:30 [INFO] [stdout] | [INFO] [stdout] 131 | bs.extend_from_slice(include_bytes!("/boot/vmlinuz-linux")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `/boot/vmlinuz-linux`: No such file or directory (os error 2) [INFO] [stdout] --> src/main.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | img.extend_from_slice(include_bytes!("/boot/vmlinuz-linux")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `/boot/vmlinuz-linux`: No such file or directory (os error 2) [INFO] [stdout] --> src/main.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | img.extend_from_slice(include_bytes!("/boot/vmlinuz-linux")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Addressable` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use memory::{Addressable, Region}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/device/mod.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error as MemError` and `Result as MemResult` [INFO] [stdout] --> src/device/mod.rs:101:25 [INFO] [stdout] | [INFO] [stdout] 101 | use crate::memory::{Error as MemError, Result as MemResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `Write` [INFO] [stdout] --> src/device/mod.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 102 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Addressable` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use memory::{Addressable, Region}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/device/mod.rs:48:40 [INFO] [stdout] | [INFO] [stdout] 48 | devices: BTreeMap>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 48 | devices: BTreeMap>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/device/mod.rs:48:40 [INFO] [stdout] | [INFO] [stdout] 48 | devices: BTreeMap>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 48 | devices: BTreeMap>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/loader/mod.rs:81:38 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn configure_gdt_table(mem: &mut Memory, sregs: &mut kvm_sregs) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 81 | pub fn configure_gdt_table(mem: &mut dyn Memory, sregs: &mut kvm_sregs) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/loader/mod.rs:109:30 [INFO] [stdout] | [INFO] [stdout] 109 | fn write_gdt_entry(mem: &mut Memory, entry: &gdt::Entry, addr: MemoryAddr) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 109 | fn write_gdt_entry(mem: &mut dyn Memory, entry: &gdt::Entry, addr: MemoryAddr) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/loader/mod.rs:81:38 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn configure_gdt_table(mem: &mut Memory, sregs: &mut kvm_sregs) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 81 | pub fn configure_gdt_table(mem: &mut dyn Memory, sregs: &mut kvm_sregs) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/loader/mod.rs:109:30 [INFO] [stdout] | [INFO] [stdout] 109 | fn write_gdt_entry(mem: &mut Memory, entry: &gdt::Entry, addr: MemoryAddr) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 109 | fn write_gdt_entry(mem: &mut dyn Memory, entry: &gdt::Entry, addr: MemoryAddr) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/device/mod.rs:62:59 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn insert(&mut self, range: Range, dev: Arc>) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 62 | pub fn insert(&mut self, range: Range, dev: Arc>) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/device/mod.rs:87:79 [INFO] [stdout] | [INFO] [stdout] 87 | fn device_at_addr(&self, addr: &MemoryAddr) -> Option<(MemoryAddr, &Mutex)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 | fn device_at_addr(&self, addr: &MemoryAddr) -> Option<(MemoryAddr, &Mutex)> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/vm/mod.rs:189:19 [INFO] [stdout] | [INFO] [stdout] 189 | mem: &mut Memory, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 189 | mem: &mut dyn Memory, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/device/mod.rs:62:59 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn insert(&mut self, range: Range, dev: Arc>) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 62 | pub fn insert(&mut self, range: Range, dev: Arc>) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/device/mod.rs:87:79 [INFO] [stdout] | [INFO] [stdout] 87 | fn device_at_addr(&self, addr: &MemoryAddr) -> Option<(MemoryAddr, &Mutex)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 | fn device_at_addr(&self, addr: &MemoryAddr) -> Option<(MemoryAddr, &Mutex)> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/vm/mod.rs:189:19 [INFO] [stdout] | [INFO] [stdout] 189 | mem: &mut Memory, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 189 | mem: &mut dyn Memory, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/device/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Addressable` [INFO] [stdout] --> src/vm/mod.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::memory::{Addressable, Memory, MemoryAddr, Region}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> src/loader/mod.rs:69:36 [INFO] [stdout] | [INFO] [stdout] 69 | debug!("start: {}, count: {}", hdr.code32_start, kernel_size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this error originates in the macro `format_args` which comes from the expansion of the macro `debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 3 arguments were supplied [INFO] [stdout] --> src/vm/mod.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | Vcpu::new(&vm, mmio_bus, pio_bus).unwrap(); [INFO] [stdout] | ^^^^^^^^^ -------- ------- unexpected argument #3 of type `device::Bus` [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #2 of type `device::Bus` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/vm/mod.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn new(vm: &Vm) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 275 - Vcpu::new(&vm, mmio_bus, pio_bus).unwrap(); [INFO] [stdout] 275 + Vcpu::new(&vm).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/device/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Addressable` [INFO] [stdout] --> src/vm/mod.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::memory::{Addressable, Memory, MemoryAddr, Region}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/memory/memorymap.rs:32:34 [INFO] [stdout] | [INFO] [stdout] 32 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/memory/memorymap.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/memory/memorymap.rs:32:63 [INFO] [stdout] | [INFO] [stdout] 32 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/memory/memorymap.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | fn read(&self, mut buf: &mut [u8], addr: MemoryAddr) -> Result { [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: unused variable: `addr` [INFO] [stdout] --> src/memory/memorymap.rs:104:34 [INFO] [stdout] | [INFO] [stdout] 104 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/memory/memorymap.rs:104:52 [INFO] [stdout] | [INFO] [stdout] 104 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/memory/memorymap.rs:104:63 [INFO] [stdout] | [INFO] [stdout] 104 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kvm` [INFO] [stdout] --> src/vm/mod.rs:50:53 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn init_memory(&mut self, mem: &MemoryMmap, kvm: &KvmContext) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_kvm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> src/loader/mod.rs:69:36 [INFO] [stdout] | [INFO] [stdout] 69 | debug!("start: {}, count: {}", hdr.code32_start, kernel_size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] = note: this error originates in the macro `format_args` which comes from the expansion of the macro `debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vm` [INFO] [stdout] --> src/vm/mod.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | vm: &Vm, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_vm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/loader/mod.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut img = read_bzimage(); [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: unused variable: `addr` [INFO] [stdout] --> src/memory/memorymap.rs:32:34 [INFO] [stdout] | [INFO] [stdout] 32 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/memory/memorymap.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/memory/memorymap.rs:32:63 [INFO] [stdout] | [INFO] [stdout] 32 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/memory/memorymap.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | fn read(&self, mut buf: &mut [u8], addr: MemoryAddr) -> Result { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/memory/memorymap.rs:104:34 [INFO] [stdout] | [INFO] [stdout] 104 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/memory/memorymap.rs:104:52 [INFO] [stdout] | [INFO] [stdout] 104 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/memory/memorymap.rs:104:63 [INFO] [stdout] | [INFO] [stdout] 104 | fn write_to(&self, addr: MemoryAddr, f: &mut F, count: usize) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0793`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kvm` [INFO] [stdout] --> src/vm/mod.rs:50:53 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn init_memory(&mut self, mem: &MemoryMmap, kvm: &KvmContext) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_kvm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vm` [INFO] [stdout] --> src/vm/mod.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | vm: &Vm, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_vm` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `submarine` (bin "submarine") due to 2 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0061, E0793. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `submarine` (bin "submarine" test) due to 4 previous errors; 22 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ec49dd29149331b16bf1533a8db91a02adab1c1a78cd2836b57a28a8056b6154", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec49dd29149331b16bf1533a8db91a02adab1c1a78cd2836b57a28a8056b6154", kill_on_drop: false }` [INFO] [stdout] ec49dd29149331b16bf1533a8db91a02adab1c1a78cd2836b57a28a8056b6154