[INFO] cloning repository https://github.com/oswinso/rlox
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oswinso/rlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foswinso%2Frlox", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foswinso%2Frlox'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1025d864be66d61a628b871cb8b301f6cb3b14e7
[INFO] building oswinso/rlox against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foswinso%2Frlox" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/oswinso/rlox
[INFO] finished tweaking git repo https://github.com/oswinso/rlox
[INFO] tweaked toml for git repo https://github.com/oswinso/rlox written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/oswinso/rlox on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/oswinso/rlox 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 27ff98682cee7716e1afaa6190be11f876a89fa2a48a0c8892481cdb7b04f158
[INFO] running `Command { std: "docker" "start" "-a" "27ff98682cee7716e1afaa6190be11f876a89fa2a48a0c8892481cdb7b04f158", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "27ff98682cee7716e1afaa6190be11f876a89fa2a48a0c8892481cdb7b04f158", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "27ff98682cee7716e1afaa6190be11f876a89fa2a48a0c8892481cdb7b04f158", kill_on_drop: false }`
[INFO] [stdout] 27ff98682cee7716e1afaa6190be11f876a89fa2a48a0c8892481cdb7b04f158
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 16dbd4abbd9cfab2c764c8faa2f4fdad1b35e9bb3c24279ed0c7d7c2bb5e45ea
[INFO] running `Command { std: "docker" "start" "-a" "16dbd4abbd9cfab2c764c8faa2f4fdad1b35e9bb3c24279ed0c7d7c2bb5e45ea", kill_on_drop: false }`
[INFO] [stderr]    Compiling ansi_term v0.11.0
[INFO] [stderr]    Compiling rlox v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `core::fmt::Debug`
[INFO] [stdout]  --> src/bytecode/opcode.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use core::fmt::Debug;
[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 import: `TokenKind`
[INFO] [stdout]  --> src/bytecode/variables.rs:2:30
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::compiler::{Token, TokenKind, Source};
[INFO] [stdout]   |                              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Code`
[INFO] [stdout]  --> src/debug/disassembler.rs:1:30
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::bytecode::{Chunk, Code, Opcode, Value};
[INFO] [stdout]   |                              ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::Write`
[INFO] [stdout]  --> src/debug/disassembler.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fmt::Write;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `disassembler::*`
[INFO] [stdout]  --> src/debug/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use disassembler::*;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::iter::Enumerate`
[INFO] [stdout]  --> src/vm/vm.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::iter::Enumerate;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::slice::Iter`
[INFO] [stdout]  --> src/vm/vm.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::slice::Iter;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/compiler/driver.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let mut compiler = Compiler::new(src);
[INFO] [stdout]   |         ----^^^^^^^^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/driver/driver.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let result = interpret(&s);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `error`
[INFO] [stdout]    --> src/utils/pretty_printer.rs:168:37
[INFO] [stdout]     |
[INFO] [stdout] 168 |     pub fn compile_error(&mut self, error: CompileError) -> &mut Self {
[INFO] [stdout]     |                                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `message`
[INFO] [stdout]  --> src/vm/errors/error.rs:7:29
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub fn new(line: usize, message: &str) -> RuntimeError {
[INFO] [stdout]   |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/vm/vm.rs:112:33
[INFO] [stdout]     |
[INFO] [stdout] 112 | ...                   let mut debug = false;
[INFO] [stdout]     |                           ----^^^^^
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_global` is never used
[INFO] [stdout]    --> src/compiler/compiler.rs:378:8
[INFO] [stdout]     |
[INFO] [stdout]  27 | impl<'src> Compiler<'src> {
[INFO] [stdout]     | ------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 378 |     fn get_global(&mut self, global: u8) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `source` is never read
[INFO] [stdout]  --> src/compiler/front/parser.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Parser<'a> {
[INFO] [stdout]   |            ------ field in this struct
[INFO] [stdout] 5 |     source: Source<'a>,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `error_token` is never used
[INFO] [stdout]    --> src/compiler/front/scanner.rs:101:8
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl<'src> Scanner<'src> {
[INFO] [stdout]     | ------------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 101 |     fn error_token(&self, error_message: &str) -> Token {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Slash` is never constructed
[INFO] [stdout]   --> src/compiler/front/token.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub enum TokenKind {
[INFO] [stdout]    |          --------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 38 |     Slash,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `TokenKind` 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: struct `Disassembler` is never constructed
[INFO] [stdout]  --> src/debug/disassembler.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct Disassembler {
[INFO] [stdout]   |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/debug/disassembler.rs:13:12
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl Disassembler {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout]  13 |     pub fn new() -> Disassembler {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  19 |     pub fn result(&self) -> &str {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  23 |     pub fn clear(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  27 |     pub fn disassemble_chunk(&mut self, chunk: &Chunk, name: &str) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  37 |     pub fn disassemble_instruction(&mut self, chunk: &Chunk, offset: usize) -> usize {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  71 |     fn simple(&mut self, opcode: Opcode, offset: usize) -> usize {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  76 |     fn offset(&mut self, opcode: Opcode, chunk: &Chunk, offset: usize) -> usize {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  86 |     fn jump(&mut self, opcode: Opcode, sign: i32, chunk: &Chunk, offset: usize) -> usize {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     fn byte(&mut self, opcode: Opcode, chunk: &Chunk, offset: usize) -> usize {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |     pub fn print_stack(&mut self, stack: &Stack) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 110 |     pub fn print_value(&mut self, value: &Value) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/utils/pretty_printer.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct PrettyPrinter {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] 11 |     string: String,
[INFO] [stdout] 12 |     label: Style,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 13 |     error: Style,
[INFO] [stdout] 14 |     chunk_offset: Style,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 15 |     line_number: Style,
[INFO] [stdout] 16 |     opcode: Style,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 17 |     offset: Style,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 18 |     value: Style,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 19 |     local: Style,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 20 |     print_arrow: Style,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/utils/pretty_printer.rs:41:12
[INFO] [stdout]     |
[INFO] [stdout]  24 | impl PrettyPrinter {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  41 |     pub fn begin_chunk(&mut self, chunk_name: &str) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  47 |     pub fn unknown(&mut self) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  52 |     pub fn chunk_offset(&mut self, offset: usize) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  58 |     pub fn line_number(&mut self, line_number: Option<usize>) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  68 |     pub fn opcode(&mut self, opcode: Opcode) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  79 |     pub fn pointer(&mut self, pointer: usize) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  85 |     pub fn value(&mut self, value: &Value) -> &mut Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  91 |     pub fn local(&mut self, slot: u8) -> &mut Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub fn result(&self) -> &str {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub fn clear(&mut self) -> &mut Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 106 |     pub fn stack(&mut self, stack: &Stack) -> &mut Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub fn token(&mut self, token: &Token) -> &mut Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     pub fn print_print(&mut self, value: &Value) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `locals` is never read
[INFO] [stdout]   --> src/vm/vm.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub struct VM<'chunk> {
[INFO] [stdout]    |            -- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 23 |     locals: LocalMap,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.02s
[INFO] running `Command { std: "docker" "inspect" "16dbd4abbd9cfab2c764c8faa2f4fdad1b35e9bb3c24279ed0c7d7c2bb5e45ea", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "16dbd4abbd9cfab2c764c8faa2f4fdad1b35e9bb3c24279ed0c7d7c2bb5e45ea", kill_on_drop: false }`
[INFO] [stdout] 16dbd4abbd9cfab2c764c8faa2f4fdad1b35e9bb3c24279ed0c7d7c2bb5e45ea
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cacf4be26c5e0896bd14f6dd05596ea4a1f8616f6e7708174ccaf0718415e1ee
[INFO] running `Command { std: "docker" "start" "-a" "cacf4be26c5e0896bd14f6dd05596ea4a1f8616f6e7708174ccaf0718415e1ee", kill_on_drop: false }`
[INFO] [stderr]    Compiling rlox v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `core::fmt::Debug`
[INFO] [stdout]  --> src/bytecode/opcode.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use core::fmt::Debug;
[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 import: `TokenKind`
[INFO] [stdout]  --> src/bytecode/variables.rs:2:30
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::compiler::{Token, TokenKind, Source};
[INFO] [stdout]   |                              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Code`
[INFO] [stdout]  --> src/debug/disassembler.rs:1:30
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::bytecode::{Chunk, Code, Opcode, Value};
[INFO] [stdout]   |                              ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::Write`
[INFO] [stdout]  --> src/debug/disassembler.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fmt::Write;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `disassembler::*`
[INFO] [stdout]  --> src/debug/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use disassembler::*;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::iter::Enumerate`
[INFO] [stdout]  --> src/vm/vm.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::iter::Enumerate;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::slice::Iter`
[INFO] [stdout]  --> src/vm/vm.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::slice::Iter;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/compiler/driver.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let mut compiler = Compiler::new(src);
[INFO] [stdout]   |         ----^^^^^^^^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/driver/driver.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let result = interpret(&s);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `error`
[INFO] [stdout]    --> src/utils/pretty_printer.rs:168:37
[INFO] [stdout]     |
[INFO] [stdout] 168 |     pub fn compile_error(&mut self, error: CompileError) -> &mut Self {
[INFO] [stdout]     |                                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `message`
[INFO] [stdout]  --> src/vm/errors/error.rs:7:29
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub fn new(line: usize, message: &str) -> RuntimeError {
[INFO] [stdout]   |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/vm/vm.rs:112:33
[INFO] [stdout]     |
[INFO] [stdout] 112 | ...                   let mut debug = false;
[INFO] [stdout]     |                           ----^^^^^
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_global` is never used
[INFO] [stdout]    --> src/compiler/compiler.rs:378:8
[INFO] [stdout]     |
[INFO] [stdout]  27 | impl<'src> Compiler<'src> {
[INFO] [stdout]     | ------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 378 |     fn get_global(&mut self, global: u8) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `source` is never read
[INFO] [stdout]  --> src/compiler/front/parser.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Parser<'a> {
[INFO] [stdout]   |            ------ field in this struct
[INFO] [stdout] 5 |     source: Source<'a>,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `error_token` is never used
[INFO] [stdout]    --> src/compiler/front/scanner.rs:101:8
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl<'src> Scanner<'src> {
[INFO] [stdout]     | ------------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 101 |     fn error_token(&self, error_message: &str) -> Token {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Slash` is never constructed
[INFO] [stdout]   --> src/compiler/front/token.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub enum TokenKind {
[INFO] [stdout]    |          --------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 38 |     Slash,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `TokenKind` 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: struct `Disassembler` is never constructed
[INFO] [stdout]  --> src/debug/disassembler.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct Disassembler {
[INFO] [stdout]   |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/debug/disassembler.rs:13:12
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl Disassembler {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout]  13 |     pub fn new() -> Disassembler {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  19 |     pub fn result(&self) -> &str {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  23 |     pub fn clear(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  27 |     pub fn disassemble_chunk(&mut self, chunk: &Chunk, name: &str) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  37 |     pub fn disassemble_instruction(&mut self, chunk: &Chunk, offset: usize) -> usize {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  71 |     fn simple(&mut self, opcode: Opcode, offset: usize) -> usize {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  76 |     fn offset(&mut self, opcode: Opcode, chunk: &Chunk, offset: usize) -> usize {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  86 |     fn jump(&mut self, opcode: Opcode, sign: i32, chunk: &Chunk, offset: usize) -> usize {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     fn byte(&mut self, opcode: Opcode, chunk: &Chunk, offset: usize) -> usize {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |     pub fn print_stack(&mut self, stack: &Stack) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 110 |     pub fn print_value(&mut self, value: &Value) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/utils/pretty_printer.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct PrettyPrinter {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] 11 |     string: String,
[INFO] [stdout] 12 |     label: Style,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 13 |     error: Style,
[INFO] [stdout] 14 |     chunk_offset: Style,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 15 |     line_number: Style,
[INFO] [stdout] 16 |     opcode: Style,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 17 |     offset: Style,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 18 |     value: Style,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 19 |     local: Style,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 20 |     print_arrow: Style,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/utils/pretty_printer.rs:41:12
[INFO] [stdout]     |
[INFO] [stdout]  24 | impl PrettyPrinter {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  41 |     pub fn begin_chunk(&mut self, chunk_name: &str) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  47 |     pub fn unknown(&mut self) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  52 |     pub fn chunk_offset(&mut self, offset: usize) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  58 |     pub fn line_number(&mut self, line_number: Option<usize>) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  68 |     pub fn opcode(&mut self, opcode: Opcode) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  79 |     pub fn pointer(&mut self, pointer: usize) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  85 |     pub fn value(&mut self, value: &Value) -> &mut Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  91 |     pub fn local(&mut self, slot: u8) -> &mut Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub fn result(&self) -> &str {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub fn clear(&mut self) -> &mut Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 106 |     pub fn stack(&mut self, stack: &Stack) -> &mut Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub fn token(&mut self, token: &Token) -> &mut Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     pub fn print_print(&mut self, value: &Value) -> &mut Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `locals` is never read
[INFO] [stdout]   --> src/vm/vm.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub struct VM<'chunk> {
[INFO] [stdout]    |            -- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 23 |     locals: LocalMap,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.54s
[INFO] running `Command { std: "docker" "inspect" "cacf4be26c5e0896bd14f6dd05596ea4a1f8616f6e7708174ccaf0718415e1ee", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cacf4be26c5e0896bd14f6dd05596ea4a1f8616f6e7708174ccaf0718415e1ee", kill_on_drop: false }`
[INFO] [stdout] cacf4be26c5e0896bd14f6dd05596ea4a1f8616f6e7708174ccaf0718415e1ee
