[INFO] cloning repository https://github.com/ryuseikurata/computer_system [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ryuseikurata/computer_system" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryuseikurata%2Fcomputer_system", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryuseikurata%2Fcomputer_system'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f75f32d15541cf5d22a764cc1a9875a54752d1b [INFO] checking ryuseikurata/computer_system against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryuseikurata%2Fcomputer_system" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ryuseikurata/computer_system on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ryuseikurata/computer_system [INFO] finished tweaking git repo https://github.com/ryuseikurata/computer_system [INFO] tweaked toml for git repo https://github.com/ryuseikurata/computer_system written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ryuseikurata/computer_system 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8edeae97332a9fa2a8d1c06a6c1ded37ec0aa360de32f41c3aac959925a94fc6 [INFO] running `Command { std: "docker" "start" "-a" "8edeae97332a9fa2a8d1c06a6c1ded37ec0aa360de32f41c3aac959925a94fc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8edeae97332a9fa2a8d1c06a6c1ded37ec0aa360de32f41c3aac959925a94fc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8edeae97332a9fa2a8d1c06a6c1ded37ec0aa360de32f41c3aac959925a94fc6", kill_on_drop: false }` [INFO] [stdout] 8edeae97332a9fa2a8d1c06a6c1ded37ec0aa360de32f41c3aac959925a94fc6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3bf49dcab987af41200d61d583d39b7872689e0ea211cbe290ce93080d929d67 [INFO] running `Command { std: "docker" "start" "-a" "3bf49dcab987af41200d61d583d39b7872689e0ea211cbe290ce93080d929d67", kill_on_drop: false }` [INFO] [stderr] Checking computer_system v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `mux` [INFO] [stdout] --> src/computer_components/memory_map.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | gates::{dmux4way, mux, mux16, or}, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mux` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | gates::{and, mux, mux16, not, or}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mux` [INFO] [stdout] --> src/computer_components/memory_map.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | gates::{dmux4way, mux, mux16, or}, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mux` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | gates::{and, mux, mux16, not, or}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0191]: the value of the associated type `State` in `Keyboard` must be specified [INFO] [stdout] --> src/main.rs:10:51 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^ help: specify the associated type: `Keyboard` [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/keyboard.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | type State; [INFO] [stdout] | ---------- `State` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `Computer`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:10:62 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^ function or associated item cannot be called on `Computer` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/keyboard.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Keyboard { [INFO] [stdout] | ------------------ doesn't satisfy `dyn Keyboard: Sized` [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/screen.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Screen { [INFO] [stdout] | ---------------- doesn't satisfy `dyn Screen: Sized` [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/computer.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ------------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Computer`, consider using `Computer::::new` which returns `Computer<_, _>` [INFO] [stdout] --> src/computer_components/computer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn Keyboard: Sized` [INFO] [stdout] `dyn Screen: Sized` [INFO] [stdout] --> src/computer_components/computer.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ^ ^ -------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [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 `new`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Keyboard` [INFO] [stdout] candidate #2: `Screen` [INFO] [stdout] help: consider relaxing the type parameter's implicit `Sized` bound [INFO] [stdout] --> src/computer_components/computer.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] help: consider relaxing the type parameter's implicit `Sized` bound [INFO] [stdout] --> src/computer_components/computer.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Screen` cannot be made into an object [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Screen` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/computer_components/screen.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Screen { [INFO] [stdout] | ------ this trait cannot be made into an object... [INFO] [stdout] 4 | fn new() -> Self; [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: only type `computer_components::screen::DummyScreen` implements the trait, consider using it directly instead [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] --> src/computer_components/screen.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | fn new(&self) -> Self; [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] --> src/computer_components/screen.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | fn new() -> Self where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Keyboard` cannot be made into an object [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Keyboard` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/computer_components/keyboard.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Keyboard { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] 4 | type State; [INFO] [stdout] 5 | fn new() -> Self; [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: only type `computer_components::keyboard::DummyKeyboard` implements the trait, consider using it directly instead [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] --> src/computer_components/keyboard.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn new(&self) -> Self; [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] --> src/computer_components/keyboard.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | fn new() -> Self where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn Screen` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn Screen` [INFO] [stdout] note: required by an implicit `Sized` bound in `Computer` [INFO] [stdout] --> src/computer_components/computer.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Computer` [INFO] [stdout] help: consider relaxing the implicit `Sized` restriction [INFO] [stdout] --> src/computer_components/computer.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn Keyboard` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn Keyboard` [INFO] [stdout] note: required by an implicit `Sized` bound in `Computer` [INFO] [stdout] --> src/computer_components/computer.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Computer` [INFO] [stdout] help: consider relaxing the implicit `Sized` restriction [INFO] [stdout] --> src/computer_components/computer.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_load_key_board` [INFO] [stdout] --> src/computer_components/memory_map.rs:32:60 [INFO] [stdout] | [INFO] [stdout] 32 | let [is_load_ram_1, is_load_screen, is_load_ram_2, is_load_key_board] = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_load_key_board` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hi` [INFO] [stdout] --> src/computer_components/memory_map.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | let hi = address[14]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_hi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/sequence_circuits/read_only_memory.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let file = File::open(file_name.clone()).expect(&format!("Fail to Open {}", file_name)); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0191]: the value of the associated type `State` in `Keyboard` must be specified [INFO] [stdout] --> src/main.rs:10:51 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^ help: specify the associated type: `Keyboard` [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/keyboard.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | type State; [INFO] [stdout] | ---------- `State` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sequence_circuits/word.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from_str(mut s: &str) -> Word { [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] error[E0599]: the function or associated item `new` exists for struct `Computer`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:10:62 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^ function or associated item cannot be called on `Computer` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/keyboard.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Keyboard { [INFO] [stdout] | ------------------ doesn't satisfy `dyn Keyboard: Sized` [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/screen.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Screen { [INFO] [stdout] | ---------------- doesn't satisfy `dyn Screen: Sized` [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/computer.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ------------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Computer`, consider using `Computer::::new` which returns `Computer<_, _>` [INFO] [stdout] --> src/computer_components/computer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn Keyboard: Sized` [INFO] [stdout] `dyn Screen: Sized` [INFO] [stdout] --> src/computer_components/computer.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ^ ^ -------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [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 `new`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Keyboard` [INFO] [stdout] candidate #2: `Screen` [INFO] [stdout] help: consider relaxing the type parameter's implicit `Sized` bound [INFO] [stdout] --> src/computer_components/computer.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] help: consider relaxing the type parameter's implicit `Sized` bound [INFO] [stdout] --> src/computer_components/computer.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Screen` cannot be made into an object [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Screen` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/computer_components/screen.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Screen { [INFO] [stdout] | ------ this trait cannot be made into an object... [INFO] [stdout] 4 | fn new() -> Self; [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: only type `computer_components::screen::DummyScreen` implements the trait, consider using it directly instead [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] --> src/computer_components/screen.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | fn new(&self) -> Self; [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] --> src/computer_components/screen.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | fn new() -> Self where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Keyboard` cannot be made into an object [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Keyboard` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/computer_components/keyboard.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Keyboard { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] 4 | type State; [INFO] [stdout] 5 | fn new() -> Self; [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: only type `computer_components::keyboard::DummyKeyboard` implements the trait, consider using it directly instead [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] --> src/computer_components/keyboard.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn new(&self) -> Self; [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] --> src/computer_components/keyboard.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | fn new() -> Self where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn Screen` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn Screen` [INFO] [stdout] note: required by an implicit `Sized` bound in `Computer` [INFO] [stdout] --> src/computer_components/computer.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Computer` [INFO] [stdout] help: consider relaxing the implicit `Sized` restriction [INFO] [stdout] --> src/computer_components/computer.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn Keyboard` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn Keyboard` [INFO] [stdout] note: required by an implicit `Sized` bound in `Computer` [INFO] [stdout] --> src/computer_components/computer.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Computer` [INFO] [stdout] help: consider relaxing the implicit `Sized` restriction [INFO] [stdout] --> src/computer_components/computer.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0191, E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `computer_system` (bin "computer_system") due to 7 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `is_load_key_board` [INFO] [stdout] --> src/computer_components/memory_map.rs:32:60 [INFO] [stdout] | [INFO] [stdout] 32 | let [is_load_ram_1, is_load_screen, is_load_ram_2, is_load_key_board] = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_load_key_board` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hi` [INFO] [stdout] --> src/computer_components/memory_map.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | let hi = address[14]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_hi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/sequence_circuits/read_only_memory.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let file = File::open(file_name.clone()).expect(&format!("Fail to Open {}", file_name)); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sequence_circuits/word.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from_str(mut s: &str) -> Word { [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] error: aborting due to 6 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0191, E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `computer_system` (bin "computer_system" test) due to 7 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3bf49dcab987af41200d61d583d39b7872689e0ea211cbe290ce93080d929d67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3bf49dcab987af41200d61d583d39b7872689e0ea211cbe290ce93080d929d67", kill_on_drop: false }` [INFO] [stdout] 3bf49dcab987af41200d61d583d39b7872689e0ea211cbe290ce93080d929d67