[INFO] updating cached repository mikezaby/chip-8.rs [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/mikezaby/chip-8.rs [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/mikezaby/chip-8.rs" "work/ex/beta-1.38-1/sources/1.37.0/gh/mikezaby/chip-8.rs"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/mikezaby/chip-8.rs'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/mikezaby/chip-8.rs" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/mikezaby/chip-8.rs"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/mikezaby/chip-8.rs'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] dce26ea5adaf9d9c9a2e3b9227594e9db1d0f90c [INFO] sha for GitHub repo mikezaby/chip-8.rs: dce26ea5adaf9d9c9a2e3b9227594e9db1d0f90c [INFO] validating manifest of mikezaby/chip-8.rs on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of mikezaby/chip-8.rs on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing mikezaby/chip-8.rs [INFO] finished frobbing mikezaby/chip-8.rs [INFO] frobbed toml for mikezaby/chip-8.rs written to work/ex/beta-1.38-1/sources/1.37.0/gh/mikezaby/chip-8.rs/Cargo.toml [INFO] started frobbing mikezaby/chip-8.rs [INFO] finished frobbing mikezaby/chip-8.rs [INFO] frobbed toml for mikezaby/chip-8.rs written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/mikezaby/chip-8.rs/Cargo.toml [INFO] crate mikezaby/chip-8.rs already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/mikezaby/chip-8.rs/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Updating git repository `https://github.com/brson/rust-sdl.git` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Updating git repository `https://github.com/brson/rust-sdl.git` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing mikezaby/chip-8.rs against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-1/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/mikezaby/chip-8.rs:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "build" "--frozen"` [INFO] [stdout] f90b4ea0cb7d243494c4facf57b0cfd310c349f01959b4eaf7c9a8b340654ab1 [INFO] running `"docker" "start" "-a" "f90b4ea0cb7d243494c4facf57b0cfd310c349f01959b4eaf7c9a8b340654ab1"` [INFO] [stderr] Compiling sdl v0.3.6 (https://github.com/brson/rust-sdl.git#78bd0e74) [INFO] [stderr] Compiling chip8 v0.0.1 (/opt/crater/workdir) [INFO] [stderr] error: expected argument name, found `:` [INFO] [stderr] --> src/display.rs:54:20 [INFO] [stderr] | [INFO] [stderr] 54 | let pt = |&: p: usize| { (p as i16) * (scale as i16) }; [INFO] [stderr] | ^ expected argument name [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::File` [INFO] [stderr] --> src/cpu.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::File; [INFO] [stderr] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::fs` [INFO] [stderr] --> src/cpu.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io::fs::PathExtensions; [INFO] [stderr] | ^^ could not find `fs` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::rand` [INFO] [stderr] --> src/cpu.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::rand; [INFO] [stderr] | ^^^^^^^^^ no `rand` in the root [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/cpu.rs:39:18 [INFO] [stderr] | [INFO] [stderr] 39 | for i in range(0, 80) { cpu.memory[i] = fontset[i]; } [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/cpu.rs:54:18 [INFO] [stderr] | [INFO] [stderr] 54 | for i in range(0, 10000) { } [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `getcwd` in module `os` [INFO] [stderr] --> src/cpu.rs:58:28 [INFO] [stderr] | [INFO] [stderr] 58 | let mut path = os::getcwd().unwrap(); [INFO] [stderr] | ^^^^^^ not found in `os` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/cpu.rs:227:26 [INFO] [stderr] | [INFO] [stderr] 227 | for i in range(0, self.op_x() + 1) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/cpu.rs:233:26 [INFO] [stderr] | [INFO] [stderr] 233 | for i in range(0, self.op_x() + 1) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/cpu.rs:250:18 [INFO] [stderr] | [INFO] [stderr] 250 | for i in range(0u8, 16) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/display.rs:34:18 [INFO] [stderr] | [INFO] [stderr] 34 | for j in range(0, n) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/display.rs:35:22 [INFO] [stderr] | [INFO] [stderr] 35 | for i in range(0, 8) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `match` head expression [INFO] [stderr] --> src/cpu.rs:78:15 [INFO] [stderr] | [INFO] [stderr] 78 | match (self.opcode & 0xf000) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_parens)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `sdl::Rect` [INFO] [stderr] --> src/display.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use sdl::Rect; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters were supplied [INFO] [stderr] --> src/main.rs:16:35 [INFO] [stderr] | [INFO] [stderr] 16 | let input_value = io::stdin().read_line().ok().expect("Failed to read line"); [INFO] [stderr] | ^^^^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `slice` found for type `[u8; 4096]` in the current scope [INFO] [stderr] --> src/cpu.rs:200:76 [INFO] [stderr] | [INFO] [stderr] 200 | self.v[15] = self.display.draw(x as usize, y as usize, self.memory.slice(from, to)); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 14 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0425, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: Could not compile `chip8`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "f90b4ea0cb7d243494c4facf57b0cfd310c349f01959b4eaf7c9a8b340654ab1"` [INFO] running `"docker" "rm" "-f" "f90b4ea0cb7d243494c4facf57b0cfd310c349f01959b4eaf7c9a8b340654ab1"` [INFO] [stdout] f90b4ea0cb7d243494c4facf57b0cfd310c349f01959b4eaf7c9a8b340654ab1