[INFO] cloning repository https://github.com/mikezaby/chip-8.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mikezaby/chip-8.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmikezaby%2Fchip-8.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmikezaby%2Fchip-8.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dce26ea5adaf9d9c9a2e3b9227594e9db1d0f90c [INFO] checking mikezaby/chip-8.rs against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmikezaby%2Fchip-8.rs" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mikezaby/chip-8.rs on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mikezaby/chip-8.rs [INFO] finished tweaking git repo https://github.com/mikezaby/chip-8.rs [INFO] tweaked toml for git repo https://github.com/mikezaby/chip-8.rs written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/mikezaby/chip-8.rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-13/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/brson/rust-sdl.git` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ecb272182db82e4c74f98bf00f76ef7f4c5b4ea88b60dc1be008b41294fff38 [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" "4ecb272182db82e4c74f98bf00f76ef7f4c5b4ea88b60dc1be008b41294fff38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ecb272182db82e4c74f98bf00f76ef7f4c5b4ea88b60dc1be008b41294fff38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ecb272182db82e4c74f98bf00f76ef7f4c5b4ea88b60dc1be008b41294fff38", kill_on_drop: false }` [INFO] [stdout] 4ecb272182db82e4c74f98bf00f76ef7f4c5b4ea88b60dc1be008b41294fff38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9839e8cd72f696a5de6a3da33fb6b2c35aff58b6aa8b92f3c0d1cba52b0e1b62 [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" "9839e8cd72f696a5de6a3da33fb6b2c35aff58b6aa8b92f3c0d1cba52b0e1b62", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking sdl v0.3.6 (https://github.com/brson/rust-sdl.git#78bd0e74) [INFO] [stderr] Checking chip8 v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: expected parameter name, found `:` [INFO] [stdout] --> src/display.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | let pt = |&: p: usize| { (p as i16) * (scale as i16) }; [INFO] [stdout] | ^ expected parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected parameter name, found `:` [INFO] [stdout] --> src/display.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | let pt = |&: p: usize| { (p as i16) * (scale as i16) }; [INFO] [stdout] | ^ expected parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/cpu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::fs` [INFO] [stdout] --> src/cpu.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::fs::PathExtensions; [INFO] [stdout] | ^^ could not find `fs` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/cpu.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rand; [INFO] [stdout] | ^^^^^^^^^ no `rand` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/cpu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::fs` [INFO] [stdout] --> src/cpu.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::fs::PathExtensions; [INFO] [stdout] | ^^ could not find `fs` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/cpu.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rand; [INFO] [stdout] | ^^^^^^^^^ no `rand` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/cpu.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | for i in range(0, 80) { cpu.memory[i] = fontset[i]; } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/cpu.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | for i in range(0, 10000) { } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `getcwd` in module `os` [INFO] [stdout] --> src/cpu.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | let mut path = os::getcwd().unwrap(); [INFO] [stdout] | ^^^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use cpu::os::unix::process::sys::os::getcwd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/cpu.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | for i in range(0, 80) { cpu.memory[i] = fontset[i]; } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/cpu.rs:227:26 [INFO] [stdout] | [INFO] [stdout] 227 | for i in range(0, self.op_x() + 1) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/cpu.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | for i in range(0, 10000) { } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/cpu.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | for i in range(0, self.op_x() + 1) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/cpu.rs:250:18 [INFO] [stdout] | [INFO] [stdout] 250 | for i in range(0u8, 16) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `getcwd` in module `os` [INFO] [stdout] --> src/cpu.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | let mut path = os::getcwd().unwrap(); [INFO] [stdout] | ^^^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use cpu::os::unix::process::sys::os::getcwd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/cpu.rs:227:26 [INFO] [stdout] | [INFO] [stdout] 227 | for i in range(0, self.op_x() + 1) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/cpu.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | for i in range(0, self.op_x() + 1) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/cpu.rs:250:18 [INFO] [stdout] | [INFO] [stdout] 250 | for i in range(0u8, 16) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/display.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | for j in range(0, n) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/display.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | for i in range(0, 8) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/display.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | for j in range(0, n) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/display.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | for i in range(0, 8) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/cpu.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 78 | match (self.opcode & 0xf000) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl::Rect` [INFO] [stdout] --> src/display.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sdl::Rect; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/cpu.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 78 | match (self.opcode & 0xf000) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl::Rect` [INFO] [stdout] --> src/display.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sdl::Rect; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/main.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 16 | let input_value = io::stdin().read_line().ok().expect("Failed to read line"); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/main.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 16 | let input_value = io::stdin().read_line().ok().expect("Failed to read line"); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for array `[u8; 4096]` in the current scope [INFO] [stdout] --> src/cpu.rs:200:76 [INFO] [stdout] | [INFO] [stdout] 200 | self.v[15] = self.display.draw(x as usize, y as usize, self.memory.slice(from, to)); [INFO] [stdout] | ^^^^^ method not found in `[u8; 4096]` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use std::collections::vec_deque::ring_slices::RingSlices;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for array `[u8; 4096]` in the current scope [INFO] [stdout] --> src/cpu.rs:200:76 [INFO] [stdout] | [INFO] [stdout] 200 | self.v[15] = self.display.draw(x as usize, y as usize, self.memory.slice(from, to)); [INFO] [stdout] | ^^^^^ method not found in `[u8; 4096]` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use std::collections::vec_deque::ring_slices::RingSlices;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chip8` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "9839e8cd72f696a5de6a3da33fb6b2c35aff58b6aa8b92f3c0d1cba52b0e1b62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9839e8cd72f696a5de6a3da33fb6b2c35aff58b6aa8b92f3c0d1cba52b0e1b62", kill_on_drop: false }` [INFO] [stdout] 9839e8cd72f696a5de6a3da33fb6b2c35aff58b6aa8b92f3c0d1cba52b0e1b62