[INFO] cloning repository https://github.com/dev-lew/rlox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dev-lew/rlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev-lew%2Frlox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev-lew%2Frlox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 86110f4e7f18f71b5473312818f4295c1d4b18bb [INFO] checking dev-lew/rlox against master#426a60abc213b28a7c7198e475476b6e650d871f for pr-129199 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev-lew%2Frlox" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dev-lew/rlox on toolchain 426a60abc213b28a7c7198e475476b6e650d871f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+426a60abc213b28a7c7198e475476b6e650d871f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dev-lew/rlox [INFO] finished tweaking git repo https://github.com/dev-lew/rlox [INFO] tweaked toml for git repo https://github.com/dev-lew/rlox written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dev-lew/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" "+426a60abc213b28a7c7198e475476b6e650d871f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking dev-lew/rlox against try#2c70eb47850052381670935f807d41647a7dc992 for pr-129199 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev-lew%2Frlox" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dev-lew/rlox on toolchain 2c70eb47850052381670935f807d41647a7dc992 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c70eb47850052381670935f807d41647a7dc992" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dev-lew/rlox [INFO] finished tweaking git repo https://github.com/dev-lew/rlox [INFO] tweaked toml for git repo https://github.com/dev-lew/rlox written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/dev-lew/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" "+2c70eb47850052381670935f807d41647a7dc992" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+2c70eb47850052381670935f807d41647a7dc992" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd8ba13a628543a400433ce6862422288157ac75c33a7cbeb943773c555fc1ce [INFO] running `Command { std: "docker" "start" "-a" "fd8ba13a628543a400433ce6862422288157ac75c33a7cbeb943773c555fc1ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd8ba13a628543a400433ce6862422288157ac75c33a7cbeb943773c555fc1ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd8ba13a628543a400433ce6862422288157ac75c33a7cbeb943773c555fc1ce", kill_on_drop: false }` [INFO] [stdout] fd8ba13a628543a400433ce6862422288157ac75c33a7cbeb943773c555fc1ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+2c70eb47850052381670935f807d41647a7dc992" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 97b1b418f422e53e4cd3d4e048bd759b8966cc9a7e915fe0baa731086a4f2a9f [INFO] running `Command { std: "docker" "start" "-a" "97b1b418f422e53e4cd3d4e048bd759b8966cc9a7e915fe0baa731086a4f2a9f", kill_on_drop: false }` [INFO] [stderr] Checking crafting-interpreters v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Opcode` [INFO] [stdout] --> src/main.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | use chunk::{Chunk, Opcode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug::Disassembler` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use debug::Disassembler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Opcode` [INFO] [stdout] --> src/main.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | use chunk::{Chunk, Opcode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug::Disassembler` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use debug::Disassembler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> src/scanner.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let test: String = self [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> src/scanner.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let test: String = self [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut dummy_chunk = Chunk::new(); [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: variant `OpMultiply` is never constructed [INFO] [stdout] --> src/chunk.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) enum Opcode { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | OpMultiply, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Opcode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `count` and `line` are never read [INFO] [stdout] --> src/chunk.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 45 | pub(crate) struct LineEncoding { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 46 | pub(crate) count: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | pub(crate) line: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/chunk.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 50 | impl LineEncoding { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 51 | pub(crate) fn new(line: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `constants` and `lines` are never read [INFO] [stdout] --> src/chunk.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) struct Chunk { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 58 | pub(crate) code: Vec, [INFO] [stdout] 59 | pub(crate) constants: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 60 | pub(crate) lines: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chunk` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `write_chunk`, `add_constant`, `write_constant`, and `get_line` are never used [INFO] [stdout] --> src/chunk.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 63 | impl Chunk { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub(crate) fn write_chunk(chunk: &mut Chunk, byte: u8, line: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub(crate) fn add_constant(chunk: &mut Chunk, value: Value) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub(crate) fn write_constant(chunk: &mut Chunk, value: Value, line: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub(crate) fn get_line(index: usize, lines: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Disassembler` is never constructed [INFO] [stdout] --> src/debug.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct Disassembler<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `disassemble_chunk`, `disassemble_instruction`, `simple_instruction`, and `constant_instruction` are never used [INFO] [stdout] --> src/debug.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> Disassembler<'a> { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 11 | pub(crate) fn new(chunk: &'a Chunk, name: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub(crate) fn disassemble_chunk(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) fn disassemble_instruction(&mut self, instruction: Opcode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn simple_instruction(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn constant_instruction(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/scanner.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | EOF(EOFToken), [INFO] [stdout] | --- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 54 | EOF(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `type` and `length` are never read [INFO] [stdout] --> src/scanner.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) struct Token [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 62 | pub(crate) r#type: TokenType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 63 | lexeme: I, [INFO] [stdout] 64 | pub(crate) length: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `line` is never read [INFO] [stdout] --> src/scanner.rs:83:16 [INFO] [stdout] | [INFO] [stdout] 82 | pub(crate) struct EOFToken { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 83 | pub(crate) line: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_value` is never used [INFO] [stdout] --> src/value.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn print_value(value: Value) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InterpretCompileError` and `InterpretRuntimeError` are never constructed [INFO] [stdout] --> src/vm.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) enum InterpretResult { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 21 | InterpretOk, [INFO] [stdout] 22 | InterpretCompileError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | InterpretRuntimeError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chunk`, `debug_trace_execution`, `ip`, and `stack` are never read [INFO] [stdout] --> src/vm.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) struct VM<'a> { [INFO] [stdout] | -- fields in this struct [INFO] [stdout] 27 | pub(crate) chunk: &'a Chunk, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | pub(crate) debug_trace_execution: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | ip: Peekable>, [INFO] [stdout] | ^^ [INFO] [stdout] 30 | stack: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_debug`, `run`, `do_binary_op`, `read_constant`, `push`, and `pop` are never used [INFO] [stdout] --> src/vm.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 32 | impl<'a> VM<'a> { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub(crate) fn new_with_debug(chunk: &'a Chunk, debug_trace_execution: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) fn run(&mut self) -> InterpretResult { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub(crate) fn do_binary_op(&mut self, op: char) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub(crate) fn read_constant(&mut self) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub(crate) fn push(&mut self, value: Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub(crate) fn pop(&mut self) -> Value { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut dummy_chunk = Chunk::new(); [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: variant `OpMultiply` is never constructed [INFO] [stdout] --> src/chunk.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) enum Opcode { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | OpMultiply, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Opcode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `count` and `line` are never read [INFO] [stdout] --> src/chunk.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 45 | pub(crate) struct LineEncoding { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 46 | pub(crate) count: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | pub(crate) line: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/chunk.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 50 | impl LineEncoding { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 51 | pub(crate) fn new(line: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `constants` and `lines` are never read [INFO] [stdout] --> src/chunk.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) struct Chunk { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 58 | pub(crate) code: Vec, [INFO] [stdout] 59 | pub(crate) constants: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 60 | pub(crate) lines: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chunk` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `write_chunk`, `add_constant`, `write_constant`, and `get_line` are never used [INFO] [stdout] --> src/chunk.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 63 | impl Chunk { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub(crate) fn write_chunk(chunk: &mut Chunk, byte: u8, line: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub(crate) fn add_constant(chunk: &mut Chunk, value: Value) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub(crate) fn write_constant(chunk: &mut Chunk, value: Value, line: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub(crate) fn get_line(index: usize, lines: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Disassembler` is never constructed [INFO] [stdout] --> src/debug.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct Disassembler<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `disassemble_chunk`, `disassemble_instruction`, `simple_instruction`, and `constant_instruction` are never used [INFO] [stdout] --> src/debug.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> Disassembler<'a> { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 11 | pub(crate) fn new(chunk: &'a Chunk, name: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub(crate) fn disassemble_chunk(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) fn disassemble_instruction(&mut self, instruction: Opcode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn simple_instruction(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn constant_instruction(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/scanner.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | EOF(EOFToken), [INFO] [stdout] | --- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 54 | EOF(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `type` and `length` are never read [INFO] [stdout] --> src/scanner.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) struct Token [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 62 | pub(crate) r#type: TokenType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 63 | lexeme: I, [INFO] [stdout] 64 | pub(crate) length: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `line` is never read [INFO] [stdout] --> src/scanner.rs:83:16 [INFO] [stdout] | [INFO] [stdout] 82 | pub(crate) struct EOFToken { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 83 | pub(crate) line: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_value` is never used [INFO] [stdout] --> src/value.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn print_value(value: Value) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InterpretCompileError` and `InterpretRuntimeError` are never constructed [INFO] [stdout] --> src/vm.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) enum InterpretResult { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 21 | InterpretOk, [INFO] [stdout] 22 | InterpretCompileError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | InterpretRuntimeError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chunk`, `debug_trace_execution`, `ip`, and `stack` are never read [INFO] [stdout] --> src/vm.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) struct VM<'a> { [INFO] [stdout] | -- fields in this struct [INFO] [stdout] 27 | pub(crate) chunk: &'a Chunk, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | pub(crate) debug_trace_execution: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | ip: Peekable>, [INFO] [stdout] | ^^ [INFO] [stdout] 30 | stack: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_debug`, `run`, `do_binary_op`, `read_constant`, `push`, and `pop` are never used [INFO] [stdout] --> src/vm.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 32 | impl<'a> VM<'a> { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub(crate) fn new_with_debug(chunk: &'a Chunk, debug_trace_execution: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) fn run(&mut self) -> InterpretResult { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub(crate) fn do_binary_op(&mut self, op: char) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub(crate) fn read_constant(&mut self) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub(crate) fn push(&mut self, value: Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub(crate) fn pop(&mut self) -> Value { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] running `Command { std: "docker" "inspect" "97b1b418f422e53e4cd3d4e048bd759b8966cc9a7e915fe0baa731086a4f2a9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97b1b418f422e53e4cd3d4e048bd759b8966cc9a7e915fe0baa731086a4f2a9f", kill_on_drop: false }` [INFO] [stdout] 97b1b418f422e53e4cd3d4e048bd759b8966cc9a7e915fe0baa731086a4f2a9f