[INFO] cloning repository https://github.com/Artideusz/scrap-lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Artideusz/scrap-lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArtideusz%2Fscrap-lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArtideusz%2Fscrap-lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 408dd4a1aaaa00d6fbc639b5f92d7881c6e42641 [INFO] checking Artideusz/scrap-lang against 8006091eb71ae7d9e9bccb66c6122c9d68af4466 for pr-129249-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArtideusz%2Fscrap-lang" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Artideusz/scrap-lang [INFO] finished tweaking git repo https://github.com/Artideusz/scrap-lang [INFO] tweaked toml for git repo https://github.com/Artideusz/scrap-lang written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Artideusz/scrap-lang on toolchain 8006091eb71ae7d9e9bccb66c6122c9d68af4466 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Artideusz/scrap-lang 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" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 5ffbe9782a3b8e5d5a4e3c2d0c005c279c1668fdc241e28319eacb2769be00bf [INFO] running `Command { std: "docker" "start" "5ffbe9782a3b8e5d5a4e3c2d0c005c279c1668fdc241e28319eacb2769be00bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ffbe9782a3b8e5d5a4e3c2d0c005c279c1668fdc241e28319eacb2769be00bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5ffbe9782a3b8e5d5a4e3c2d0c005c279c1668fdc241e28319eacb2769be00bf" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ffbe9782a3b8e5d5a4e3c2d0c005c279c1668fdc241e28319eacb2769be00bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5ffbe9782a3b8e5d5a4e3c2d0c005c279c1668fdc241e28319eacb2769be00bf" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking scrap-lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `os::linux::raw::stat` [INFO] [stdout] --> src/interpreter.rs:36:71 [INFO] [stdout] | [INFO] [stdout] 36 | use std::{error::Error, fs::File, io::{self, BufReader, Read, Write}, os::linux::raw::stat}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `interpreter` and `self` [INFO] [stdout] --> src/interpreter.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | use crate::{command::{self, CommandExecutor}, interpreter, output::Table, parser::{parse, ParseNode, ParseNodeType}, scanner::{scan,... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Enumerate`, `Map`, `Peekable`, `collections::HashMap`, `hash::Hash`, `self`, and `str::Chars` [INFO] [stdout] --> src/scanner.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, error::Error, fmt::Display, hash::Hash, iter::{self, Enumerate, Map, Peekable}, str::Chars}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::ParseNode` [INFO] [stdout] --> src/output.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::ParseNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `std::os::linux::raw::stat`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> src/interpreter.rs:36:87 [INFO] [stdout] | [INFO] [stdout] 36 | use std::{error::Error, fs::File, io::{self, BufReader, Read, Write}, os::linux::raw::stat}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `os::linux::raw::stat` [INFO] [stdout] --> src/interpreter.rs:36:71 [INFO] [stdout] | [INFO] [stdout] 36 | use std::{error::Error, fs::File, io::{self, BufReader, Read, Write}, os::linux::raw::stat}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `interpreter` and `self` [INFO] [stdout] --> src/interpreter.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | use crate::{command::{self, CommandExecutor}, interpreter, output::Table, parser::{parse, ParseNode, ParseNodeType}, scanner::{scan,... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Enumerate`, `Map`, `Peekable`, `collections::HashMap`, `hash::Hash`, `self`, and `str::Chars` [INFO] [stdout] --> src/scanner.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, error::Error, fmt::Display, hash::Hash, iter::{self, Enumerate, Map, Peekable}, str::Chars}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::ParseNode` [INFO] [stdout] --> src/output.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::ParseNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `std::os::linux::raw::stat`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> src/interpreter.rs:36:87 [INFO] [stdout] | [INFO] [stdout] 36 | use std::{error::Error, fs::File, io::{self, BufReader, Read, Write}, os::linux::raw::stat}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/interpreter.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn execute_value(&mut self, value: &ParseNode) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lvalue` [INFO] [stdout] --> src/interpreter.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let lvalue = if matches!(&children[0].variant, ParseNodeType::Expression) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lvalue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operator` [INFO] [stdout] --> src/interpreter.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let operator = &children[1]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rvalue` [INFO] [stdout] --> src/interpreter.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let rvalue = if matches!(&children[2].variant, ParseNodeType::Expression) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rvalue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `identifier` [INFO] [stdout] --> src/interpreter.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let identifier = argument.child(0).unwrap().token_value().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/interpreter.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn execute_value(&mut self, value: &ParseNode) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lvalue` [INFO] [stdout] --> src/interpreter.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let lvalue = if matches!(&children[0].variant, ParseNodeType::Expression) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lvalue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operator` [INFO] [stdout] --> src/interpreter.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let operator = &children[1]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rvalue` [INFO] [stdout] --> src/interpreter.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let rvalue = if matches!(&children[2].variant, ParseNodeType::Expression) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rvalue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `identifier` [INFO] [stdout] --> src/interpreter.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let identifier = argument.child(0).unwrap().token_value().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `execute_value`, `execute_expression`, `execute_assignment`, and `execute_argument` are never used [INFO] [stdout] --> src/interpreter.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl Interpreter { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn execute_value(&mut self, value: &ParseNode) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn execute_expression(&mut self, expression: &ParseNode) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn execute_assignment(&mut self, argument: &ParseNode) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn execute_argument(&mut self, argument: &ParseNode) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `And` and `Or` are never constructed [INFO] [stdout] --> src/scanner.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 91 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 92 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `first_child` and `find_child_of_type` are never used [INFO] [stdout] --> src/parser.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl ParseNode { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn first_child(&self) -> Option<&ParseNode> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn find_child_of_type(&self, kind: ParseNodeType) -> Option<&ParseNode> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `execute_value`, `execute_expression`, `execute_assignment`, and `execute_argument` are never used [INFO] [stdout] --> src/interpreter.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl Interpreter { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn execute_value(&mut self, value: &ParseNode) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn execute_expression(&mut self, expression: &ParseNode) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn execute_assignment(&mut self, argument: &ParseNode) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn execute_argument(&mut self, argument: &ParseNode) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `And` and `Or` are never constructed [INFO] [stdout] --> src/scanner.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 91 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 92 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `first_child` and `find_child_of_type` are never used [INFO] [stdout] --> src/parser.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl ParseNode { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn first_child(&self) -> Option<&ParseNode> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn find_child_of_type(&self, kind: ParseNodeType) -> Option<&ParseNode> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `col_count` is never used [INFO] [stdout] --> src/output.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Table { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn col_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `col_count` is never used [INFO] [stdout] --> src/output.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Table { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn col_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "5ffbe9782a3b8e5d5a4e3c2d0c005c279c1668fdc241e28319eacb2769be00bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ffbe9782a3b8e5d5a4e3c2d0c005c279c1668fdc241e28319eacb2769be00bf", kill_on_drop: false }` [INFO] [stdout] 5ffbe9782a3b8e5d5a4e3c2d0c005c279c1668fdc241e28319eacb2769be00bf