[INFO] updating cached repository https://github.com/jsstevenson/python-interpreter [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] [stderr] From https://github.com/jsstevenson/python-interpreter [INFO] [stderr] 2c52849..b6a160b master -> master [INFO] [stderr] * [new branch] modularize -> modularize [INFO] [stderr] * [new branch] refactor_parser -> refactor_parser [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] b6a160bda49ef4973a636c2b3c0723db1ca76cc8 [INFO] checking jsstevenson/python-interpreter against master#0d2817a439c2ad9fe343f6347eb6d90947893363 for pr-67531 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjsstevenson%2Fpython-interpreter" "/workspace/builds/worker-3/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jsstevenson/python-interpreter on toolchain 0d2817a439c2ad9fe343f6347eb6d90947893363 [INFO] running `"/workspace/cargo-home/bin/cargo" "+0d2817a439c2ad9fe343f6347eb6d90947893363" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/jsstevenson/python-interpreter [INFO] finished tweaking git repo https://github.com/jsstevenson/python-interpreter [INFO] tweaked toml for git repo https://github.com/jsstevenson/python-interpreter written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/jsstevenson/python-interpreter already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+0d2817a439c2ad9fe343f6347eb6d90947893363" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+0d2817a439c2ad9fe343f6347eb6d90947893363" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d2ca9a8b0a5aa02a9dceefd60b4be26d02a3024380cc0799d2b4ae18565d223d [INFO] running `"docker" "start" "-a" "d2ca9a8b0a5aa02a9dceefd60b4be26d02a3024380cc0799d2b4ae18565d223d"` [INFO] [stderr] Checking python_interp v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `io` [INFO] [stderr] --> src/scanner.rs:90:13 [INFO] [stderr] | [INFO] [stderr] 90 | io::stdout().flush().expect("Could not flush stdout"); [INFO] [stderr] | ^^ use of undeclared type or module `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `io` [INFO] [stderr] --> src/scanner.rs:91:13 [INFO] [stderr] | [INFO] [stderr] 91 | io::stdin().read_line(&mut self.stream) [INFO] [stderr] | ^^ use of undeclared type or module `io` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WhiteSpace` in this scope [INFO] [stderr] --> src/scanner.rs:122:28 [INFO] [stderr] | [INFO] [stderr] 122 | self.current = WhiteSpace(val); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use crate::scanner::Token::WhiteSpace; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `stdin`, `stdout` [INFO] [stderr] --> src/scanner.rs:85:30 [INFO] [stderr] | [INFO] [stderr] 85 | use std::io::{Write, stdin, stdout}; [INFO] [stderr] | ^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `io` [INFO] [stderr] --> src/scanner.rs:90:13 [INFO] [stderr] | [INFO] [stderr] 90 | io::stdout().flush().expect("Could not flush stdout"); [INFO] [stderr] | ^^ use of undeclared type or module `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `io` [INFO] [stderr] --> src/scanner.rs:91:13 [INFO] [stderr] | [INFO] [stderr] 91 | io::stdin().read_line(&mut self.stream) [INFO] [stderr] | ^^ use of undeclared type or module `io` [INFO] [stderr] [INFO] [stderr] error[E0624]: method `look_ahead` is private [INFO] [stderr] --> src/main.rs:46:25 [INFO] [stderr] | [INFO] [stderr] 46 | match input.look_ahead() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WhiteSpace` in this scope [INFO] [stderr] --> src/scanner.rs:122:28 [INFO] [stderr] | [INFO] [stderr] 122 | self.current = WhiteSpace(val); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use crate::scanner::Token::WhiteSpace; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:218:27 [INFO] [stderr] | [INFO] [stderr] 218 | return Value::Int(val); [INFO] [stderr] | ^^^ expected `i64`, found `u64` [INFO] [stderr] | [INFO] [stderr] help: you can convert an `u64` to `i64` and panic if the converted value wouldn't fit [INFO] [stderr] | [INFO] [stderr] 218 | return Value::Int(val.try_into().unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `stdin`, `stdout` [INFO] [stderr] --> src/scanner.rs:85:30 [INFO] [stderr] | [INFO] [stderr] 85 | use std::io::{Write, stdin, stdout}; [INFO] [stderr] | ^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0277]: `scanner::Token` doesn't implement `std::fmt::Debug` [INFO] [stderr] --> src/main.rs:265:26 [INFO] [stderr] | [INFO] [stderr] 265 | println!("{:?}", &input.current); // for debugging [INFO] [stderr] | ^^^^^^^^^^^^^^ `scanner::Token` cannot be formatted using `{:?}` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::fmt::Debug` is not implemented for `scanner::Token` [INFO] [stderr] = note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug` [INFO] [stderr] = note: required because of the requirements on the impl of `std::fmt::Debug` for `&scanner::Token` [INFO] [stderr] = note: required by `std::fmt::Debug::fmt` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/scanner.rs:52:32 [INFO] [stderr] | [INFO] [stderr] 52 | self.history.push_back(token); [INFO] [stderr] | ^^^^^ expected enum `scanner::Token`, found `&scanner::Token` [INFO] [stderr] [INFO] [stderr] error[E0624]: method `look_ahead` is private [INFO] [stderr] --> src/main.rs:46:25 [INFO] [stderr] | [INFO] [stderr] 46 | match input.look_ahead() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:218:27 [INFO] [stderr] | [INFO] [stderr] 218 | return Value::Int(val); [INFO] [stderr] | ^^^ expected `i64`, found `u64` [INFO] [stderr] | [INFO] [stderr] help: you can convert an `u64` to `i64` and panic if the converted value wouldn't fit [INFO] [stderr] | [INFO] [stderr] 218 | return Value::Int(val.try_into().unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Write` [INFO] [stderr] --> src/scanner.rs:85:23 [INFO] [stderr] | [INFO] [stderr] 85 | use std::io::{Write, stdin, stdout}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 7 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0308, E0425, E0433, E0624. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error[E0277]: `scanner::Token` doesn't implement `std::fmt::Debug` [INFO] [stderr] --> src/main.rs:265:26 [INFO] [stderr] | [INFO] [stderr] 265 | println!("{:?}", &input.current); // for debugging [INFO] [stderr] | ^^^^^^^^^^^^^^ `scanner::Token` cannot be formatted using `{:?}` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::fmt::Debug` is not implemented for `scanner::Token` [INFO] [stderr] = note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug` [INFO] [stderr] = note: required because of the requirements on the impl of `std::fmt::Debug` for `&scanner::Token` [INFO] [stderr] = note: required by `std::fmt::Debug::fmt` [INFO] [stderr] [INFO] [stderr] error: could not compile `python_interp`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/scanner.rs:52:32 [INFO] [stderr] | [INFO] [stderr] 52 | self.history.push_back(token); [INFO] [stderr] | ^^^^^ expected enum `scanner::Token`, found `&scanner::Token` [INFO] [stderr] [INFO] [stderr] warning: unused import: `Write` [INFO] [stderr] --> src/scanner.rs:85:23 [INFO] [stderr] | [INFO] [stderr] 85 | use std::io::{Write, stdin, stdout}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 7 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0308, E0425, E0433, E0624. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: could not compile `python_interp`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "d2ca9a8b0a5aa02a9dceefd60b4be26d02a3024380cc0799d2b4ae18565d223d"` [INFO] running `"docker" "rm" "-f" "d2ca9a8b0a5aa02a9dceefd60b4be26d02a3024380cc0799d2b4ae18565d223d"` [INFO] [stdout] d2ca9a8b0a5aa02a9dceefd60b4be26d02a3024380cc0799d2b4ae18565d223d