[INFO] cloning repository https://github.com/McArthur-Alford/PL0 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/McArthur-Alford/PL0" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMcArthur-Alford%2FPL0", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMcArthur-Alford%2FPL0'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 901d09061a260ebaaeee854653258e952295b87f [INFO] checking McArthur-Alford/PL0 against try#8d46be77cd48fdbcced888d027457e2c9cf2aa16 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMcArthur-Alford%2FPL0" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/McArthur-Alford/PL0 on toolchain 8d46be77cd48fdbcced888d027457e2c9cf2aa16 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/McArthur-Alford/PL0 [INFO] finished tweaking git repo https://github.com/McArthur-Alford/PL0 [INFO] tweaked toml for git repo https://github.com/McArthur-Alford/PL0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/McArthur-Alford/PL0 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" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d4b28d0f28ce47094f157684acbaf2202544851eafc7efa8c2594d006c58545 [INFO] running `Command { std: "docker" "start" "-a" "2d4b28d0f28ce47094f157684acbaf2202544851eafc7efa8c2594d006c58545", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d4b28d0f28ce47094f157684acbaf2202544851eafc7efa8c2594d006c58545", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d4b28d0f28ce47094f157684acbaf2202544851eafc7efa8c2594d006c58545", kill_on_drop: false }` [INFO] [stdout] 2d4b28d0f28ce47094f157684acbaf2202544851eafc7efa8c2594d006c58545 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3b93e7c2bbc1152460689326dff35bda7055e2b9fa39d8d00b167ec534b97dd0 [INFO] running `Command { std: "docker" "start" "-a" "3b93e7c2bbc1152460689326dff35bda7055e2b9fa39d8d00b167ec534b97dd0", kill_on_drop: false }` [INFO] [stderr] Checking PL0 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - let newPC = (self.PC as i32 + offset); [INFO] [stdout] 82 + let newPC = self.PC as i32 + offset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:112:33 [INFO] [stdout] | [INFO] [stdout] 112 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - let newPC = (self.PC as i32 + offset); [INFO] [stdout] 112 + let newPC = self.PC as i32 + offset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:126:33 [INFO] [stdout] | [INFO] [stdout] 126 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - let newPC = (self.PC as i32 + offset); [INFO] [stdout] 126 + let newPC = self.PC as i32 + offset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - let newPC = (self.PC as i32 + offset); [INFO] [stdout] 82 + let newPC = self.PC as i32 + offset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:112:33 [INFO] [stdout] | [INFO] [stdout] 112 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - let newPC = (self.PC as i32 + offset); [INFO] [stdout] 112 + let newPC = self.PC as i32 + offset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:126:33 [INFO] [stdout] | [INFO] [stdout] 126 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - let newPC = (self.PC as i32 + offset); [INFO] [stdout] 126 + let newPC = self.PC as i32 + offset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | / /** [INFO] [stdout] 232 | | * var [INFO] [stdout] 233 | | * x: int; i: int; [INFO] [stdout] 234 | | * begin [INFO] [stdout] ... | [INFO] [stdout] 242 | | * end [INFO] [stdout] 243 | | */ [INFO] [stdout] | |___________^ [INFO] [stdout] 244 | let mut machine = StackMachine::new(); [INFO] [stdout] | -------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OPCODE` is never used [INFO] [stdout] --> src/main.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum OPCODE { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OPCODE` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StackMachine` is never constructed [INFO] [stdout] --> src/main.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct StackMachine { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StepResult` is never constructed [INFO] [stdout] --> src/main.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct StepResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StepResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load`, `step`, and `run` are never used [INFO] [stdout] --> src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl StackMachine { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 37 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn load(&mut self, program: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn step(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | fn run(&mut self) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_results` is never used [INFO] [stdout] --> src/main.rs:168:4 [INFO] [stdout] | [INFO] [stdout] 168 | fn print_results(results: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Token` is never used [INFO] [stdout] --> src/token.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read_token` is never used [INFO] [stdout] --> src/token.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 30 | impl Token { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 31 | fn read_token(text: &String, a: usize, b: usize) -> (Token, usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read` is never used [INFO] [stdout] --> src/token.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn read(text: String) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Stack` should have a snake case name [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Stack: Vec, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `stack` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Variables` should have a snake case name [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Variables: HashMap, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `variables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Program` should have a snake case name [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Program: Vec, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `PC` should have a snake case name [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | PC: usize [INFO] [stdout] | ^^ help: convert the identifier to snake case: `pc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Location` should have a snake case name [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | Location: usize, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `OpCode` should have a snake case name [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | OpCode: OPCODE, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `op_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Result` should have a snake case name [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Result: Result, String> [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newPC` should have a snake case name [INFO] [stdout] --> src/main.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `new_pc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newPC` should have a snake case name [INFO] [stdout] --> src/main.rs:112:25 [INFO] [stdout] | [INFO] [stdout] 112 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `new_pc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newPC` should have a snake case name [INFO] [stdout] --> src/main.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `new_pc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `JMP`, `LDF`, `BRT`, `BRF`, and `WRT` are never constructed [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum OPCODE { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | JMP, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | LDF, // Load Frame [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | BRT, // Branch True [INFO] [stdout] | ^^^ [INFO] [stdout] 17 | BRF, // Branch False [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | WRT, // Write [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OPCODE` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Stack` should have a snake case name [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Stack: Vec, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `stack` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Variables` should have a snake case name [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Variables: HashMap, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `variables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Program` should have a snake case name [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Program: Vec, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `PC` should have a snake case name [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | PC: usize [INFO] [stdout] | ^^ help: convert the identifier to snake case: `pc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Location` should have a snake case name [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | Location: usize, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `OpCode` should have a snake case name [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | OpCode: OPCODE, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `op_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Result` should have a snake case name [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Result: Result, String> [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newPC` should have a snake case name [INFO] [stdout] --> src/main.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `new_pc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newPC` should have a snake case name [INFO] [stdout] --> src/main.rs:112:25 [INFO] [stdout] | [INFO] [stdout] 112 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `new_pc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newPC` should have a snake case name [INFO] [stdout] --> src/main.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | let newPC = (self.PC as i32 + offset); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `new_pc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Tests` should have a snake case name [INFO] [stdout] --> src/token.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | mod Tests { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tests` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] running `Command { std: "docker" "inspect" "3b93e7c2bbc1152460689326dff35bda7055e2b9fa39d8d00b167ec534b97dd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b93e7c2bbc1152460689326dff35bda7055e2b9fa39d8d00b167ec534b97dd0", kill_on_drop: false }` [INFO] [stdout] 3b93e7c2bbc1152460689326dff35bda7055e2b9fa39d8d00b167ec534b97dd0