[INFO] cloning repository https://github.com/maikonweber/game-boy-in-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/maikonweber/game-boy-in-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaikonweber%2Fgame-boy-in-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaikonweber%2Fgame-boy-in-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 30fb1e50745402051410548e3d439ab7c84c80da [INFO] checking maikonweber/game-boy-in-rust against master#8365fcb2b840c95eeb0bc377af8bd498fad22245 for pr-145605 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaikonweber%2Fgame-boy-in-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/maikonweber/game-boy-in-rust [INFO] finished tweaking git repo https://github.com/maikonweber/game-boy-in-rust [INFO] tweaked toml for git repo https://github.com/maikonweber/game-boy-in-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/maikonweber/game-boy-in-rust on toolchain 8365fcb2b840c95eeb0bc377af8bd498fad22245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/maikonweber/game-boy-in-rust 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" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b571dbeec4707152700b910dbc5e8429dd2ceb5694c872722977cb54dd057d7 [INFO] running `Command { std: "docker" "start" "-a" "2b571dbeec4707152700b910dbc5e8429dd2ceb5694c872722977cb54dd057d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b571dbeec4707152700b910dbc5e8429dd2ceb5694c872722977cb54dd057d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b571dbeec4707152700b910dbc5e8429dd2ceb5694c872722977cb54dd057d7", kill_on_drop: false }` [INFO] [stdout] 2b571dbeec4707152700b910dbc5e8429dd2ceb5694c872722977cb54dd057d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb10f8f4951d9f19efa438ae4dc464a48ee72478b51e43664e3668d4dc7032fa [INFO] running `Command { std: "docker" "start" "-a" "bb10f8f4951d9f19efa438ae4dc464a48ee72478b51e43664e3668d4dc7032fa", kill_on_drop: false }` [INFO] [stderr] Checking gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/main.rs:79:27 [INFO] [stdout] | [INFO] [stdout] 79 | let mut mem = Memory:::new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 79 - let mut mem = Memory:::new(); [INFO] [stdout] 79 + let mut mem = Memory::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: path separator must be a double colon [INFO] [stdout] --> src/main.rs:79:27 [INFO] [stdout] | [INFO] [stdout] 79 | let mut mem = Memory:::new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: use a double colon instead [INFO] [stdout] | [INFO] [stdout] 79 - let mut mem = Memory:::new(); [INFO] [stdout] 79 + let mut mem = Memory::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `cpu` in this scope [INFO] [stdout] --> src/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | cpu.run.instrunction(&mut mem); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `cpu` in this scope [INFO] [stdout] --> src/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | cpu.run.instrunction(&mut mem); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:63:61 [INFO] [stdout] | [INFO] [stdout] 63 | println!("Byte on {} : {}", self.pc as u16, mem.read_byte(self.pc) as u16); [INFO] [stdout] | ^^^^^^^^^--------- argument #2 of type `u8` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/main.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn read_byte(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^^^^^ --------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 63 | println!("Byte on {} : {}", self.pc as u16, mem.read_byte(self.pc, /* u8 */) as u16); [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:63:61 [INFO] [stdout] | [INFO] [stdout] 63 | println!("Byte on {} : {}", self.pc as u16, mem.read_byte(self.pc) as u16); [INFO] [stdout] | ^^^^^^^^^--------- argument #2 of type `u8` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/main.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn read_byte(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^^^^^ --------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 63 | println!("Byte on {} : {}", self.pc as u16, mem.read_byte(self.pc, /* u8 */) as u16); [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `()` as `u16` [INFO] [stdout] --> src/main.rs:63:57 [INFO] [stdout] | [INFO] [stdout] 63 | println!("Byte on {} : {}", self.pc as u16, mem.read_byte(self.pc) as u16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `()` as `u16` [INFO] [stdout] --> src/main.rs:63:57 [INFO] [stdout] | [INFO] [stdout] 63 | println!("Byte on {} : {}", self.pc as u16, mem.read_byte(self.pc) as u16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | f.read_to_end(&mut rom_file); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^ expected `&mut Vec`, found `&mut Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Vec` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8365fcb2b840c95eeb0bc377af8bd498fad22245/library/std/src/io/mod.rs:935:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | mem.from_rom_file(&rom_file); [INFO] [stdout] | ------------- ^^^^^^^^^ expected `&[u8]`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/main.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_rom_file(&mut self, rom_file: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | f.read_to_end(&mut rom_file); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^ expected `&mut Vec`, found `&mut Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Vec` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8365fcb2b840c95eeb0bc377af8bd498fad22245/library/std/src/io/mod.rs:935:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut mem = Memory { ram: [0; 65536] }; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let mut i:u16 = 0x0000; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut cpu = CPU { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0425, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | mem.from_rom_file(&rom_file); [INFO] [stdout] | ------------- ^^^^^^^^^ expected `&[u8]`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/main.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from_rom_file(&mut self, rom_file: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut mem = Memory { ram: [0; 65536] }; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let mut i:u16 = 0x0000; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut cpu = CPU { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gb` (bin "gb") due to 6 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0425, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gb` (bin "gb" test) due to 6 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bb10f8f4951d9f19efa438ae4dc464a48ee72478b51e43664e3668d4dc7032fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb10f8f4951d9f19efa438ae4dc464a48ee72478b51e43664e3668d4dc7032fa", kill_on_drop: false }` [INFO] [stdout] bb10f8f4951d9f19efa438ae4dc464a48ee72478b51e43664e3668d4dc7032fa