[INFO] cloning repository https://github.com/tw666/riscv-simulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tw666/riscv-simulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftw666%2Friscv-simulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftw666%2Friscv-simulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ff2fdc44581416322afeefe0a23afdf355e82ca5 [INFO] testing tw666/riscv-simulator against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftw666%2Friscv-simulator" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tw666/riscv-simulator on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tw666/riscv-simulator [INFO] finished tweaking git repo https://github.com/tw666/riscv-simulator [INFO] tweaked toml for git repo https://github.com/tw666/riscv-simulator written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/tw666/riscv-simulator already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded linkme v0.2.5 [INFO] [stderr] Downloaded linkme-impl v0.2.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6e404894c2c0652fa4ff6dddcdb2ac80d5894f8f45189531b8134db176924356 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6e404894c2c0652fa4ff6dddcdb2ac80d5894f8f45189531b8134db176924356", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e404894c2c0652fa4ff6dddcdb2ac80d5894f8f45189531b8134db176924356", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e404894c2c0652fa4ff6dddcdb2ac80d5894f8f45189531b8134db176924356", kill_on_drop: false }` [INFO] [stdout] 6e404894c2c0652fa4ff6dddcdb2ac80d5894f8f45189531b8134db176924356 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3fa46bc646d0e545e53e6dc5e5d206565fb3d5fdf73e13aefe877274f09cdce5 [INFO] running `Command { std: "docker" "start" "-a" "3fa46bc646d0e545e53e6dc5e5d206565fb3d5fdf73e13aefe877274f09cdce5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling syn v1.0.70 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling bit_field v0.10.1 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling lru v0.6.5 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling linkme-impl v0.2.5 [INFO] [stderr] Compiling linkme v0.2.5 [INFO] [stderr] Compiling macros v0.1.0 (/opt/rustwide/workdir/macros) [INFO] [stderr] Compiling proc_macros v0.1.0 (/opt/rustwide/workdir/proc_macros) [INFO] [stderr] Compiling riscv-emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics, const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: removed in favor of `#![feature(adt_const_params)]` and `#![feature(generic_const_exprs)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/main.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(const_generics, const_evaluatable_checked)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: renamed to `generic_const_exprs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/bus.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/bus.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/clint.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/clint.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | let bytes: [u8; T::SIZE] = bytes[bytes.len() - T::SIZE..] [INFO] [stdout] | ^^^^^^^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/clint.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/memory.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/memory.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/plic.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/plic.rs:119:15 [INFO] [stdout] | [INFO] [stdout] 119 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/uart.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/uart.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/virtio.rs:282:15 [INFO] [stdout] | [INFO] [stdout] 282 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/virtio.rs:315:25 [INFO] [stdout] | [INFO] [stdout] 315 | let bytes: [u8; T::SIZE] = bytes[bytes.len() - T::SIZE..] [INFO] [stdout] | ^^^^^^^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/virtio.rs:324:15 [INFO] [stdout] | [INFO] [stdout] 324 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/mod.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | [(); ::SIZE]: Sized; [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/mod.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | [(); ::SIZE]: Sized; [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/mod.rs:55:31 [INFO] [stdout] | [INFO] [stdout] 55 | fn from_bytes(bytes: [u8; Self::SIZE]) -> Self; [INFO] [stdout] | ^^^^^^^^^^ cannot perform const operation using `Self` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/device/mod.rs:56:31 [INFO] [stdout] | [INFO] [stdout] 56 | fn to_bytes(self) -> [u8; Self::SIZE]; [INFO] [stdout] | ^^^^^^^^^^ cannot perform const operation using `Self` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/mmu.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/mmu.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | [(); ::SIZE]: Sized, [INFO] [stdout] | ^ cannot perform const operation using `T` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/device/bus.rs:24:50 [INFO] [stdout] | [INFO] [stdout] 24 | CLINT_BASE..=CLINT_END => self.clint.read::(addr), [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `Clint` in the current scope [INFO] [stdout] --> src/device/bus.rs:24:50 [INFO] [stdout] | [INFO] [stdout] 24 | CLINT_BASE..=CLINT_END => self.clint.read::(addr), [INFO] [stdout] | ^^^^ method not found in `Clint` [INFO] [stdout] | [INFO] [stdout] ::: src/device/clint.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Clint { [INFO] [stdout] | ---------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `Plic` in the current scope [INFO] [stdout] --> src/device/bus.rs:25:47 [INFO] [stdout] | [INFO] [stdout] 25 | PLIC_BASE..=PLIC_END => self.plic.read::(addr), [INFO] [stdout] | ^^^^ method not found in `Plic` [INFO] [stdout] | [INFO] [stdout] ::: src/device/plic.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Plic { [INFO] [stdout] | --------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `Uart` in the current scope [INFO] [stdout] --> src/device/bus.rs:26:47 [INFO] [stdout] | [INFO] [stdout] 26 | UART_BASE..=UART_END => self.uart.read::(addr), [INFO] [stdout] | ^^^^ method not found in `Uart` [INFO] [stdout] | [INFO] [stdout] ::: src/device/uart.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Uart { [INFO] [stdout] | --------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `Virtio` in the current scope [INFO] [stdout] --> src/device/bus.rs:27:53 [INFO] [stdout] | [INFO] [stdout] 27 | VIRTIO_BASE..=VIRTIO_END => self.virtio.read::(addr), [INFO] [stdout] | ^^^^ method not found in `Virtio` [INFO] [stdout] | [INFO] [stdout] ::: src/device/virtio.rs:260:1 [INFO] [stdout] | [INFO] [stdout] 260 | pub struct Virtio { [INFO] [stdout] | ----------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `Memory` in the current scope [INFO] [stdout] --> src/device/bus.rs:28:49 [INFO] [stdout] | [INFO] [stdout] 28 | DRAM_BASE..=DRAM_END => self.memory.read::(addr), [INFO] [stdout] | ^^^^ method not found in `Memory` [INFO] [stdout] | [INFO] [stdout] ::: src/device/memory.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Memory { [INFO] [stdout] | ----------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/device/bus.rs:39:50 [INFO] [stdout] | [INFO] [stdout] 39 | CLINT_BASE..=CLINT_END => self.clint.write::(addr, value), [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write` found for struct `Clint` in the current scope [INFO] [stdout] --> src/device/bus.rs:39:50 [INFO] [stdout] | [INFO] [stdout] 39 | CLINT_BASE..=CLINT_END => self.clint.write::(addr, value), [INFO] [stdout] | ^^^^^ method not found in `Clint` [INFO] [stdout] | [INFO] [stdout] ::: src/device/clint.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Clint { [INFO] [stdout] | ---------------- method `write` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `write`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Write` [INFO] [stdout] candidate #3: `Hasher` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write` found for struct `Plic` in the current scope [INFO] [stdout] --> src/device/bus.rs:40:47 [INFO] [stdout] | [INFO] [stdout] 40 | PLIC_BASE..=PLIC_END => self.plic.write::(addr, value), [INFO] [stdout] | ^^^^^ method not found in `Plic` [INFO] [stdout] | [INFO] [stdout] ::: src/device/plic.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Plic { [INFO] [stdout] | --------------- method `write` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `write`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Write` [INFO] [stdout] candidate #3: `Hasher` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write` found for struct `Uart` in the current scope [INFO] [stdout] --> src/device/bus.rs:41:47 [INFO] [stdout] | [INFO] [stdout] 41 | UART_BASE..=UART_END => self.uart.write::(addr, value), [INFO] [stdout] | ^^^^^ method not found in `Uart` [INFO] [stdout] | [INFO] [stdout] ::: src/device/uart.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Uart { [INFO] [stdout] | --------------- method `write` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `write`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Write` [INFO] [stdout] candidate #3: `Hasher` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write` found for struct `Virtio` in the current scope [INFO] [stdout] --> src/device/bus.rs:42:53 [INFO] [stdout] | [INFO] [stdout] 42 | VIRTIO_BASE..=VIRTIO_END => self.virtio.write::(addr, value), [INFO] [stdout] | ^^^^^ method not found in `Virtio` [INFO] [stdout] | [INFO] [stdout] ::: src/device/virtio.rs:260:1 [INFO] [stdout] | [INFO] [stdout] 260 | pub struct Virtio { [INFO] [stdout] | ----------------- method `write` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `write`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Write` [INFO] [stdout] candidate #3: `Hasher` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write` found for struct `Memory` in the current scope [INFO] [stdout] --> src/device/bus.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | DRAM_BASE..=DRAM_END => self.memory.write::(addr, value), [INFO] [stdout] | ^^^^^ method not found in `Memory` [INFO] [stdout] | [INFO] [stdout] ::: src/device/memory.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Memory { [INFO] [stdout] | ----------------- method `write` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `write`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Write` [INFO] [stdout] candidate #3: `Hasher` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_le_bytes` found for type `u64` in the current scope [INFO] [stdout] --> src/device/clint.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | let bytes = (reg >> (offset * 8)).to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/device/clint.rs:70:27 [INFO] [stdout] | [INFO] [stdout] 70 | let bytes = value.to_bytes(); [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/clint.rs:70:27 [INFO] [stdout] | [INFO] [stdout] 70 | let bytes = value.to_bytes(); [INFO] [stdout] | ^^^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_bytes`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 57 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_le_bytes` found for type `u64` in the current scope [INFO] [stdout] --> src/device/clint.rs:72:36 [INFO] [stdout] | [INFO] [stdout] 72 | let mut origin_bytes = reg.to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/device/memory.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | .try_into() [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `try_into` found for slice `[u8]` in the current scope [INFO] [stdout] --> src/device/memory.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | .try_into() [INFO] [stdout] | ^^^^^^^^ method not found in `[u8]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/device/memory.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | let bytes = value.to_bytes(); [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/memory.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | let bytes = value.to_bytes(); [INFO] [stdout] | ^^^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_bytes`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 26 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/device/plic.rs:81:45 [INFO] [stdout] | [INFO] [stdout] 81 | if (addr - SOURCE_PRIORITY).wrapping_rem(WORD_SIZE) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_rem` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:81:45 [INFO] [stdout] | [INFO] [stdout] 81 | if (addr - SOURCE_PRIORITY).wrapping_rem(WORD_SIZE) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_div` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:84:54 [INFO] [stdout] | [INFO] [stdout] 84 | let index = (addr - SOURCE_PRIORITY).wrapping_div(WORD_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_rem` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:88:37 [INFO] [stdout] | [INFO] [stdout] 88 | if (addr - PENDING).wrapping_rem(WORD_SIZE) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_div` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | let index = (addr - PENDING).wrapping_div(WORD_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_rem` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:95:36 [INFO] [stdout] | [INFO] [stdout] 95 | if (addr - ENABLE).wrapping_rem(WORD_SIZE) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_div` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:98:45 [INFO] [stdout] | [INFO] [stdout] 98 | let index = (addr - ENABLE).wrapping_div(WORD_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_div` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:102:60 [INFO] [stdout] | [INFO] [stdout] 102 | let context = (addr - THRESHOLD_AND_CLAIM).wrapping_div(CONTEXT_OFFSET); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/device/plic.rs:126:45 [INFO] [stdout] | [INFO] [stdout] 126 | if (addr - SOURCE_PRIORITY).wrapping_rem(WORD_SIZE) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_rem` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:126:45 [INFO] [stdout] | [INFO] [stdout] 126 | if (addr - SOURCE_PRIORITY).wrapping_rem(WORD_SIZE) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_div` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:129:54 [INFO] [stdout] | [INFO] [stdout] 129 | let index = (addr - SOURCE_PRIORITY).wrapping_div(WORD_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_u32` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/plic.rs:130:55 [INFO] [stdout] | [INFO] [stdout] 130 | self.priority[index as usize] = value.to_u32(); [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_u32`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 116 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_rem` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:133:37 [INFO] [stdout] | [INFO] [stdout] 133 | if (addr - PENDING).wrapping_rem(WORD_SIZE) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_div` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:136:46 [INFO] [stdout] | [INFO] [stdout] 136 | let index = (addr - PENDING).wrapping_div(WORD_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_u32` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/plic.rs:137:54 [INFO] [stdout] | [INFO] [stdout] 137 | self.pending[index as usize] = value.to_u32(); [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_u32`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 116 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_rem` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:140:36 [INFO] [stdout] | [INFO] [stdout] 140 | if (addr - ENABLE).wrapping_rem(WORD_SIZE) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_div` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:143:45 [INFO] [stdout] | [INFO] [stdout] 143 | let index = (addr - ENABLE).wrapping_div(WORD_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_u32` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/plic.rs:144:53 [INFO] [stdout] | [INFO] [stdout] 144 | self.enable[index as usize] = value.to_u32(); [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_u32`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 116 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrapping_div` found for type `u64` in the current scope [INFO] [stdout] --> src/device/plic.rs:147:60 [INFO] [stdout] | [INFO] [stdout] 147 | let context = (addr - THRESHOLD_AND_CLAIM).wrapping_div(CONTEXT_OFFSET); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_u32` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/plic.rs:150:62 [INFO] [stdout] | [INFO] [stdout] 150 | self.threshold[context as usize] = value.to_u32(); [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_u32`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 116 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clear_pending` found for mutable reference `&mut Plic` in the current scope [INFO] [stdout] --> src/device/plic.rs:154:26 [INFO] [stdout] | [INFO] [stdout] 154 | self.clear_pending(value.to_u64()); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&mut Plic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_u64` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/plic.rs:154:46 [INFO] [stdout] | [INFO] [stdout] 154 | self.clear_pending(value.to_u64()); [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_u64`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 116 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/device/uart.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | let mut uart = uart.lock().expect("failed to get an UART object"); [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for reference `&Mutex<[u8; 256]>` in the current scope [INFO] [stdout] --> src/device/uart.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | let mut uart = uart.lock().expect("failed to get an UART object"); [INFO] [stdout] | ^^^^ method not found in `&Mutex<[u8; 256]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `notify_one` found for reference `&Condvar` in the current scope [INFO] [stdout] --> src/device/uart.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | cvar.notify_one(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `&Condvar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/device/uart.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | let mut uart = uart.lock().expect("failed to get an UART object"); [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lock` found for reference `&Mutex<[u8; 256]>` in the current scope [INFO] [stdout] --> src/device/uart.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | let mut uart = uart.lock().expect("failed to get an UART object"); [INFO] [stdout] | ^^^^ method not found in `&Mutex<[u8; 256]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_u8` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/uart.rs:77:36 [INFO] [stdout] | [INFO] [stdout] 77 | print!("{}", value.to_u8() as char); [INFO] [stdout] | ^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_u8`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 65 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for struct `Stdout` in the current scope [INFO] [stdout] --> src/device/uart.rs:78:35 [INFO] [stdout] | [INFO] [stdout] 78 | std::io::stdout().flush().expect("failed to flush stdout"); [INFO] [stdout] | ^^^^^ method not found in `Stdout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_u8` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/uart.rs:81:59 [INFO] [stdout] | [INFO] [stdout] 81 | uart[(addr - UART_BASE) as usize] = value.to_u8(); [INFO] [stdout] | ^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_u8`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 65 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_le_bytes` found for type `u32` in the current scope [INFO] [stdout] --> src/device/virtio.rs:314:43 [INFO] [stdout] | [INFO] [stdout] 314 | let bytes = (reg >> (offset * 8)).to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/device/virtio.rs:341:26 [INFO] [stdout] | [INFO] [stdout] 341 | if value.to_u8() != 0 { [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_u8` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/virtio.rs:341:26 [INFO] [stdout] | [INFO] [stdout] 341 | if value.to_u8() != 0 { [INFO] [stdout] | ^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_u8`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 321 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_u8` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/virtio.rs:367:53 [INFO] [stdout] | [INFO] [stdout] 367 | self.config[index as usize] = value.to_u8() >> (index * 8); [INFO] [stdout] | ^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_u8`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 321 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_bytes` found for type parameter `T` in the current scope [INFO] [stdout] --> src/device/virtio.rs:373:27 [INFO] [stdout] | [INFO] [stdout] 373 | let bytes = value.to_bytes(); [INFO] [stdout] | ^^^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `to_bytes`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 321 | fn write(&mut self, addr: u64, value: T) -> Result<(), Exception> [INFO] [stdout] | ~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `reset` found for mutable reference `&mut Virtio` in the current scope [INFO] [stdout] --> src/device/virtio.rs:397:26 [INFO] [stdout] | [INFO] [stdout] 397 | self.reset(); [INFO] [stdout] | ^^^^^ method not found in `&mut Virtio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `init_virtqueue` found for mutable reference `&mut Virtio` in the current scope [INFO] [stdout] --> src/device/virtio.rs:401:26 [INFO] [stdout] | [INFO] [stdout] 401 | self.init_virtqueue(); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut Virtio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/mmu.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | .read::(self.translate(state, addr, AccessType::LOAD)?) [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `Bus` in the current scope [INFO] [stdout] --> src/mmu.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | .read::(self.translate(state, addr, AccessType::LOAD)?) [INFO] [stdout] | ^^^^ method not found in `Bus` [INFO] [stdout] | [INFO] [stdout] ::: src/device/bus.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bus { [INFO] [stdout] | -------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `translate` found for reference `&Mmu` in the current scope [INFO] [stdout] --> src/mmu.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | .read::(self.translate(state, addr, AccessType::LOAD)?) [INFO] [stdout] | ^^^^^^^^^ method not found in `&Mmu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/mmu.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | .write::(self.translate(state, addr, AccessType::STORE)?, value) [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write` found for struct `Bus` in the current scope [INFO] [stdout] --> src/mmu.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | .write::(self.translate(state, addr, AccessType::STORE)?, value) [INFO] [stdout] | ^^^^^ method not found in `Bus` [INFO] [stdout] | [INFO] [stdout] ::: src/device/bus.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bus { [INFO] [stdout] | -------------- method `write` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `write`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Device` [INFO] [stdout] candidate #2: `std::io::Write` [INFO] [stdout] candidate #3: `Hasher` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `translate` found for mutable reference `&mut Mmu` in the current scope [INFO] [stdout] --> src/mmu.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | .write::(self.translate(state, addr, AccessType::STORE)?, value) [INFO] [stdout] | ^^^^^^^^^ method not found in `&mut Mmu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/device/clint.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/device/memory.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/device/uart.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | io::{Read, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/device/virtio.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 85 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0557, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `riscv-emulator` due to 86 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3fa46bc646d0e545e53e6dc5e5d206565fb3d5fdf73e13aefe877274f09cdce5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fa46bc646d0e545e53e6dc5e5d206565fb3d5fdf73e13aefe877274f09cdce5", kill_on_drop: false }` [INFO] [stdout] 3fa46bc646d0e545e53e6dc5e5d206565fb3d5fdf73e13aefe877274f09cdce5