[INFO] cloning repository https://github.com/legendsovermyths/HiScript [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/legendsovermyths/HiScript" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flegendsovermyths%2FHiScript", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flegendsovermyths%2FHiScript'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f5c63d945e2d79c1fdd14565171e24a11d195a28 [INFO] checking legendsovermyths/HiScript against master#ba412a6e70ac84641be7764d088acabd0eb3fa39 for pr-145457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flegendsovermyths%2FHiScript" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/legendsovermyths/HiScript [INFO] finished tweaking git repo https://github.com/legendsovermyths/HiScript [INFO] tweaked toml for git repo https://github.com/legendsovermyths/HiScript written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/legendsovermyths/HiScript on toolchain ba412a6e70ac84641be7764d088acabd0eb3fa39 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/legendsovermyths/HiScript 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" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a29c3d0821a0a27e9b1ee086734249c9719fa0362c976c2948621a6427b1a4d5 [INFO] running `Command { std: "docker" "start" "-a" "a29c3d0821a0a27e9b1ee086734249c9719fa0362c976c2948621a6427b1a4d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a29c3d0821a0a27e9b1ee086734249c9719fa0362c976c2948621a6427b1a4d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a29c3d0821a0a27e9b1ee086734249c9719fa0362c976c2948621a6427b1a4d5", kill_on_drop: false }` [INFO] [stdout] a29c3d0821a0a27e9b1ee086734249c9719fa0362c976c2948621a6427b1a4d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c28c0ed67788328b8df1e2d6c58a7dcb185b91b92f02b8480c86109d90715f51 [INFO] running `Command { std: "docker" "start" "-a" "c28c0ed67788328b8df1e2d6c58a7dcb185b91b92f02b8480c86109d90715f51", kill_on_drop: false }` [INFO] [stderr] Checking HiScript v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/parser.rs:182:15 [INFO] [stdout] | [INFO] [stdout] 182 | while (!self.is_at_end()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 182 - while (!self.is_at_end()) { [INFO] [stdout] 182 + while !self.is_at_end() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/parser.rs:183:16 [INFO] [stdout] | [INFO] [stdout] 183 | if (self.previous().token_type == TokenType::SEMICOLON) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - if (self.previous().token_type == TokenType::SEMICOLON) { [INFO] [stdout] 183 + if self.previous().token_type == TokenType::SEMICOLON { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/parser.rs:182:15 [INFO] [stdout] | [INFO] [stdout] 182 | while (!self.is_at_end()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 182 - while (!self.is_at_end()) { [INFO] [stdout] 182 + while !self.is_at_end() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/parser.rs:183:16 [INFO] [stdout] | [INFO] [stdout] 183 | if (self.previous().token_type == TokenType::SEMICOLON) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - if (self.previous().token_type == TokenType::SEMICOLON) { [INFO] [stdout] 183 + if self.previous().token_type == TokenType::SEMICOLON { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lexer.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | if let Some((index, curr_char)) = self.iter.peek() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lexer.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | if let Some((index, curr_char)) = self.iter.peek() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lexer.rs:112:25 [INFO] [stdout] | [INFO] [stdout] 112 | while let Some((index, char)) = self.iter.peek() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lexer.rs:126:33 [INFO] [stdout] | [INFO] [stdout] 126 | while let Some((index, char)) = self.iter.peek() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lexer.rs:154:25 [INFO] [stdout] | [INFO] [stdout] 154 | while let Some((index, curr_char)) = self.iter.peek() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lexer.rs:112:25 [INFO] [stdout] | [INFO] [stdout] 112 | while let Some((index, char)) = self.iter.peek() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lexer.rs:126:33 [INFO] [stdout] | [INFO] [stdout] 126 | while let Some((index, char)) = self.iter.peek() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lexer.rs:154:25 [INFO] [stdout] | [INFO] [stdout] 154 | while let Some((index, curr_char)) = self.iter.peek() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | _ => Ok(Literal::Bool(false)), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 34 | Expr::Literal(literal) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 38 | Expr::Grouping(expr) => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 42 | Expr::Unary(token, expr) => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 60 | Expr::Binary(expr_left, token, expr_right) => { [INFO] [stdout] | ------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 101 | _ => Ok(Literal::Bool(false)), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | _ => Ok(Literal::Bool(false)), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 34 | Expr::Literal(literal) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 38 | Expr::Grouping(expr) => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 42 | Expr::Unary(token, expr) => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 60 | Expr::Binary(expr_left, token, expr_right) => { [INFO] [stdout] | ------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 101 | _ => Ok(Literal::Bool(false)), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_tokens` is never used [INFO] [stdout] --> src/lexer.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn print_tokens(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_tokens` is never used [INFO] [stdout] --> src/lexer.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn print_tokens(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_message` is never used [INFO] [stdout] --> src/error.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ErrorMessage { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_message(self)->String{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_errors` and `clear_errors` are never used [INFO] [stdout] --> src/error.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl ErrorManager { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn has_errors(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn clear_errors(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printer` is never used [INFO] [stdout] --> src/expr.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Expr { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 12 | fn printer(self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `synchronize` is never used [INFO] [stdout] --> src/parser.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | fn synchronize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_message` is never used [INFO] [stdout] --> src/error.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ErrorMessage { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_message(self)->String{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_errors` and `clear_errors` are never used [INFO] [stdout] --> src/error.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl ErrorManager { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn has_errors(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn clear_errors(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printer` is never used [INFO] [stdout] --> src/expr.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Expr { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 12 | fn printer(self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `synchronize` is never used [INFO] [stdout] --> src/parser.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | fn synchronize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.53s [INFO] running `Command { std: "docker" "inspect" "c28c0ed67788328b8df1e2d6c58a7dcb185b91b92f02b8480c86109d90715f51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c28c0ed67788328b8df1e2d6c58a7dcb185b91b92f02b8480c86109d90715f51", kill_on_drop: false }` [INFO] [stdout] c28c0ed67788328b8df1e2d6c58a7dcb185b91b92f02b8480c86109d90715f51