[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#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foswinso%2Frlox" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/oswinso/rlox on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-0-tc1/source/Cargo.toml [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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 08386eb10cf4c637de9f8f83502e63957e8903402f8e212b375dfe38f250c3c9 [INFO] running `Command { std: "docker" "start" "-a" "08386eb10cf4c637de9f8f83502e63957e8903402f8e212b375dfe38f250c3c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "08386eb10cf4c637de9f8f83502e63957e8903402f8e212b375dfe38f250c3c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08386eb10cf4c637de9f8f83502e63957e8903402f8e212b375dfe38f250c3c9", kill_on_drop: false }` [INFO] [stdout] 08386eb10cf4c637de9f8f83502e63957e8903402f8e212b375dfe38f250c3c9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5ca07d9f84234ecfdf231ec506bc3ff5e7e0e5f66fbf35d3d11d1aaffb31bdfe [INFO] running `Command { std: "docker" "start" "-a" "5ca07d9f84234ecfdf231ec506bc3ff5e7e0e5f66fbf35d3d11d1aaffb31bdfe", 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)]` 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)]` 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)]` 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)]` 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) -> &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 0.83s [INFO] running `Command { std: "docker" "inspect" "5ca07d9f84234ecfdf231ec506bc3ff5e7e0e5f66fbf35d3d11d1aaffb31bdfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ca07d9f84234ecfdf231ec506bc3ff5e7e0e5f66fbf35d3d11d1aaffb31bdfe", kill_on_drop: false }` [INFO] [stdout] 5ca07d9f84234ecfdf231ec506bc3ff5e7e0e5f66fbf35d3d11d1aaffb31bdfe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2caea6e21477a7c5527a26e3497b12b463276ffec7d182c35a0ee14c82a2f95a [INFO] running `Command { std: "docker" "start" "-a" "2caea6e21477a7c5527a26e3497b12b463276ffec7d182c35a0ee14c82a2f95a", 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)]` 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)]` 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)]` 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)]` 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) -> &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.57s [INFO] running `Command { std: "docker" "inspect" "2caea6e21477a7c5527a26e3497b12b463276ffec7d182c35a0ee14c82a2f95a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2caea6e21477a7c5527a26e3497b12b463276ffec7d182c35a0ee14c82a2f95a", kill_on_drop: false }` [INFO] [stdout] 2caea6e21477a7c5527a26e3497b12b463276ffec7d182c35a0ee14c82a2f95a