[INFO] cloning repository https://github.com/thuchede/lox-interpreter
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thuchede/lox-interpreter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthuchede%2Flox-interpreter", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthuchede%2Flox-interpreter'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 879a84f44161a01b8577092ff037a20520c6511e
[INFO] checking thuchede/lox-interpreter against master#1b8f2e46e14b08208a53585570edd9206374aae8 for pr-155418-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthuchede%2Flox-interpreter" "/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/thuchede/lox-interpreter
[INFO] finished tweaking git repo https://github.com/thuchede/lox-interpreter
[INFO] tweaked toml for git repo https://github.com/thuchede/lox-interpreter written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/thuchede/lox-interpreter on toolchain 1b8f2e46e14b08208a53585570edd9206374aae8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1b8f2e46e14b08208a53585570edd9206374aae8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/thuchede/lox-interpreter 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" "+1b8f2e46e14b08208a53585570edd9206374aae8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1b8f2e46e14b08208a53585570edd9206374aae8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8433c89e2a0491dad34ed6bcbea11547b502f21ea2c9751bacc7a084e4c86e93
[INFO] running `Command { std: "docker" "start" "-a" "8433c89e2a0491dad34ed6bcbea11547b502f21ea2c9751bacc7a084e4c86e93", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8433c89e2a0491dad34ed6bcbea11547b502f21ea2c9751bacc7a084e4c86e93", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8433c89e2a0491dad34ed6bcbea11547b502f21ea2c9751bacc7a084e4c86e93", kill_on_drop: false }`
[INFO] [stdout] 8433c89e2a0491dad34ed6bcbea11547b502f21ea2c9751bacc7a084e4c86e93
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1b8f2e46e14b08208a53585570edd9206374aae8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 14727f201a9060f13b76c777afc6ff5e45a4becc46a8faf951393aeae56480cf
[INFO] running `Command { std: "docker" "start" "-a" "14727f201a9060f13b76c777afc6ff5e45a4becc46a8faf951393aeae56480cf", kill_on_drop: false }`
[INFO] [stderr]     Checking once_cell v1.19.0
[INFO] [stderr]     Checking thread_local v1.1.7
[INFO] [stderr]     Checking lox-interpreter v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::hash::Hash`
[INFO] [stdout]  --> src/bin/generate_ast.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::hash::Hash;
[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 variable: `base_name`
[INFO] [stdout]    --> src/bin/generate_ast.rs:107:37
[INFO] [stdout]     |
[INFO] [stdout] 107 | fn define_visitor(types: Vec<&str>, base_name: String, buffer: &mut File) {
[INFO] [stdout]     |                                     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_name`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::BufWriter`
[INFO] [stdout]  --> src/ast_printer.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::BufWriter;
[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: `std::ops::Add`
[INFO] [stdout]  --> src/ast_printer.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::ops::Add;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::any::Any`
[INFO] [stdout]  --> src/expression.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::any::Any;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::PartialEq`
[INFO] [stdout]  --> src/lox_parser.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::cmp::PartialEq;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `env`
[INFO] [stdout]  --> src/main.rs:9:11
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::{env, io};
[INFO] [stdout]   |           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::process::exit`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::process::exit;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::hash::Hash`
[INFO] [stdout]  --> src/bin/generate_ast.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::hash::Hash;
[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: `std::io::BufWriter`
[INFO] [stdout]  --> src/ast_printer.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::BufWriter;
[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: `std::ops::Add`
[INFO] [stdout]  --> src/ast_printer.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::ops::Add;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::any::Any`
[INFO] [stdout]  --> src/expression.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::any::Any;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::PartialEq`
[INFO] [stdout]  --> src/lox_parser.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::cmp::PartialEq;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `env`
[INFO] [stdout]  --> src/main.rs:9:11
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::{env, io};
[INFO] [stdout]   |           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::process::exit`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::process::exit;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `base_name`
[INFO] [stdout]    --> src/bin/generate_ast.rs:107:37
[INFO] [stdout]     |
[INFO] [stdout] 107 | fn define_visitor(types: Vec<&str>, base_name: String, buffer: &mut File) {
[INFO] [stdout]     |                                     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_name`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]   --> src/token.rs:30:19
[INFO] [stdout]    |
[INFO] [stdout] 30 |     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
[INFO] [stdout]    |                   ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_file` is never used
[INFO] [stdout]   --> src/main.rs:51:4
[INFO] [stdout]    |
[INFO] [stdout] 51 | fn run_file(filename: &String) -> Result<(), Error> {
[INFO] [stdout]    |    ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_prompt` is never used
[INFO] [stdout]   --> src/main.rs:65:4
[INFO] [stdout]    |
[INFO] [stdout] 65 | fn run_prompt() {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run` is never used
[INFO] [stdout]   --> src/main.rs:89:4
[INFO] [stdout]    |
[INFO] [stdout] 89 | fn run(source: &[u8]) {
[INFO] [stdout]    |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `error` is never used
[INFO] [stdout]   --> src/main.rs:95:4
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn error(line: usize, message: &str) {
[INFO] [stdout]    |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `report` is never used
[INFO] [stdout]   --> src/main.rs:99:4
[INFO] [stdout]    |
[INFO] [stdout] 99 | fn report(line: usize, location: &str, message: &str) {
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `has_global_error` is never used
[INFO] [stdout]    --> src/main.rs:108:4
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn has_global_error() -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_global_error` is never used
[INFO] [stdout]    --> src/main.rs:114:4
[INFO] [stdout]     |
[INFO] [stdout] 114 | fn set_global_error(new_value: bool) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]   --> src/token_type.rs:4:5
[INFO] [stdout]    |
[INFO] [stdout]  2 | pub enum TokenType {
[INFO] [stdout]    |          --------- variants in this enum
[INFO] [stdout]  3 |     // Single character tokens
[INFO] [stdout]  4 |     LeftParen,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]  5 |     RightParen,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]  6 |     LeftBrace,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]  7 |     RightBrace,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]  8 |     Comma,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]  9 |     Dot,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 10 |     Minus,
[INFO] [stdout] 11 |     Plus,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 12 |     SemiColon,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 13 |     Slash,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 16 |     Bang,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 17 |     BangEqual,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 18 |     Equal,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 19 |     EqualEqual,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 20 |     Greater,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 21 |     GreaterEqual,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 22 |     Less,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 23 |     LessEqual,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 24 |     // Literals
[INFO] [stdout] 25 |     Identifier,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 26 |     LoxString(String),
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 27 |     Number(f32),
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 28 |     // Keywords
[INFO] [stdout] 29 |     And,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 30 |     Class,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 31 |     Else,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 32 |     False,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 33 |     Fun,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 34 |     For,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 35 |     If,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 36 |     Nil,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 37 |     Or,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 38 |     Print,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 39 |     Return,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 40 |     Super,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 41 |     This,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 42 |     True,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 43 |     Var,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 44 |     While,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 45 |     // EOF
[INFO] [stdout] 46 |     EOF,
[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: fields `token_type`, `literal`, and `line` are never read
[INFO] [stdout]  --> src/token.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Token {
[INFO] [stdout]   |            ----- fields in this struct
[INFO] [stdout] 6 |     pub token_type: TokenType,
[INFO] [stdout]   |         ^^^^^^^^^^
[INFO] [stdout] 7 |     pub lexeme: String,
[INFO] [stdout] 8 |     literal: String,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 9 |     line: usize,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Token` 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: trait `Scanner` is never used
[INFO] [stdout]  --> src/scanner.rs:3:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub trait Scanner {
[INFO] [stdout]   |           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LoxScanner` is never constructed
[INFO] [stdout]   --> src/lox_scanner.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct LoxScanner<'a> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/lox_scanner.rs:49:12
[INFO] [stdout]     |
[INFO] [stdout]  48 | impl <'a> LoxScanner<'a> {
[INFO] [stdout]     | ------------------------ associated items in this implementation
[INFO] [stdout]  49 |     pub fn new(source: &'a [u8]) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  56 |     fn is_at_end(&self) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  60 |     fn scan_token(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 112 |     fn add_token(&mut self, token_type: TokenType) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |     fn add_full_token(&mut self, token_type: TokenType, literal: Option<String>) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 122 |     fn advance(&mut self) -> char {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 128 |     fn match_next(&mut self, next_expected_char: char) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 139 |     fn peek(&mut self) -> char {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 147 |     fn peek_next(&mut self) -> char {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 154 |     fn string(&mut self) -> Option<TokenType> {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 170 |     fn number(&mut self) -> Option<TokenType> {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 184 |     fn identifier(&mut self) -> Option<TokenType> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_alpha` is never used
[INFO] [stdout]    --> src/lox_scanner.rs:197:4
[INFO] [stdout]     |
[INFO] [stdout] 197 | fn is_alpha(c: char) -> bool {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_digit` is never used
[INFO] [stdout]    --> src/lox_scanner.rs:201:4
[INFO] [stdout]     |
[INFO] [stdout] 201 | fn is_digit(c: char) -> bool {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_alpha_numeric` is never used
[INFO] [stdout]    --> src/lox_scanner.rs:205:4
[INFO] [stdout]     |
[INFO] [stdout] 205 | fn is_alpha_numeric(c: char) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/ast_printer.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl AstPrinter {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] 11 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LoxParser` is never constructed
[INFO] [stdout]  --> src/lox_parser.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct LoxParser {
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/lox_parser.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl LoxParser {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] 22 |     pub fn new(tokens: Vec<Token>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     fn expression() -> Expr {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     fn equality() -> Expr {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     fn match_token(&mut self, types: Vec<TokenType>) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 50 |     fn check(&self, token_type: &TokenType) -> bool {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn is_at_end(&self) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |     fn peek(&self) -> Token {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 |     fn previous(&self) -> Token {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |     fn advance(&mut self) -> Token {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 76 |     fn comparison() -> Expr {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]   --> src/token.rs:30:19
[INFO] [stdout]    |
[INFO] [stdout] 30 |     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
[INFO] [stdout]    |                   ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_file` is never used
[INFO] [stdout]   --> src/main.rs:51:4
[INFO] [stdout]    |
[INFO] [stdout] 51 | fn run_file(filename: &String) -> Result<(), Error> {
[INFO] [stdout]    |    ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_prompt` is never used
[INFO] [stdout]   --> src/main.rs:65:4
[INFO] [stdout]    |
[INFO] [stdout] 65 | fn run_prompt() {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run` is never used
[INFO] [stdout]   --> src/main.rs:89:4
[INFO] [stdout]    |
[INFO] [stdout] 89 | fn run(source: &[u8]) {
[INFO] [stdout]    |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `error` is never used
[INFO] [stdout]   --> src/main.rs:95:4
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn error(line: usize, message: &str) {
[INFO] [stdout]    |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `report` is never used
[INFO] [stdout]   --> src/main.rs:99:4
[INFO] [stdout]    |
[INFO] [stdout] 99 | fn report(line: usize, location: &str, message: &str) {
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `has_global_error` is never used
[INFO] [stdout]    --> src/main.rs:108:4
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn has_global_error() -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_global_error` is never used
[INFO] [stdout]    --> src/main.rs:114:4
[INFO] [stdout]     |
[INFO] [stdout] 114 | fn set_global_error(new_value: bool) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]   --> src/token_type.rs:4:5
[INFO] [stdout]    |
[INFO] [stdout]  2 | pub enum TokenType {
[INFO] [stdout]    |          --------- variants in this enum
[INFO] [stdout]  3 |     // Single character tokens
[INFO] [stdout]  4 |     LeftParen,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]  5 |     RightParen,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]  6 |     LeftBrace,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]  7 |     RightBrace,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]  8 |     Comma,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]  9 |     Dot,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 10 |     Minus,
[INFO] [stdout] 11 |     Plus,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 12 |     SemiColon,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 13 |     Slash,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 16 |     Bang,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 17 |     BangEqual,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 18 |     Equal,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 19 |     EqualEqual,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 20 |     Greater,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 21 |     GreaterEqual,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 22 |     Less,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 23 |     LessEqual,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 24 |     // Literals
[INFO] [stdout] 25 |     Identifier,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 26 |     LoxString(String),
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 27 |     Number(f32),
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 28 |     // Keywords
[INFO] [stdout] 29 |     And,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 30 |     Class,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 31 |     Else,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 32 |     False,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 33 |     Fun,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 34 |     For,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 35 |     If,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 36 |     Nil,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 37 |     Or,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 38 |     Print,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 39 |     Return,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 40 |     Super,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 41 |     This,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 42 |     True,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 43 |     Var,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 44 |     While,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 45 |     // EOF
[INFO] [stdout] 46 |     EOF,
[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: fields `token_type`, `literal`, and `line` are never read
[INFO] [stdout]  --> src/token.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Token {
[INFO] [stdout]   |            ----- fields in this struct
[INFO] [stdout] 6 |     pub token_type: TokenType,
[INFO] [stdout]   |         ^^^^^^^^^^
[INFO] [stdout] 7 |     pub lexeme: String,
[INFO] [stdout] 8 |     literal: String,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 9 |     line: usize,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Token` 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: trait `Scanner` is never used
[INFO] [stdout]  --> src/scanner.rs:3:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub trait Scanner {
[INFO] [stdout]   |           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LoxScanner` is never constructed
[INFO] [stdout]   --> src/lox_scanner.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct LoxScanner<'a> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/lox_scanner.rs:49:12
[INFO] [stdout]     |
[INFO] [stdout]  48 | impl <'a> LoxScanner<'a> {
[INFO] [stdout]     | ------------------------ associated items in this implementation
[INFO] [stdout]  49 |     pub fn new(source: &'a [u8]) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  56 |     fn is_at_end(&self) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  60 |     fn scan_token(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 112 |     fn add_token(&mut self, token_type: TokenType) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |     fn add_full_token(&mut self, token_type: TokenType, literal: Option<String>) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 122 |     fn advance(&mut self) -> char {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 128 |     fn match_next(&mut self, next_expected_char: char) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 139 |     fn peek(&mut self) -> char {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 147 |     fn peek_next(&mut self) -> char {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 154 |     fn string(&mut self) -> Option<TokenType> {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 170 |     fn number(&mut self) -> Option<TokenType> {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 184 |     fn identifier(&mut self) -> Option<TokenType> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_alpha` is never used
[INFO] [stdout]    --> src/lox_scanner.rs:197:4
[INFO] [stdout]     |
[INFO] [stdout] 197 | fn is_alpha(c: char) -> bool {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_digit` is never used
[INFO] [stdout]    --> src/lox_scanner.rs:201:4
[INFO] [stdout]     |
[INFO] [stdout] 201 | fn is_digit(c: char) -> bool {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_alpha_numeric` is never used
[INFO] [stdout]    --> src/lox_scanner.rs:205:4
[INFO] [stdout]     |
[INFO] [stdout] 205 | fn is_alpha_numeric(c: char) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/ast_printer.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl AstPrinter {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] 11 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LoxParser` is never constructed
[INFO] [stdout]  --> src/lox_parser.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct LoxParser {
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/lox_parser.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl LoxParser {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] 22 |     pub fn new(tokens: Vec<Token>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     fn expression() -> Expr {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     fn equality() -> Expr {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     fn match_token(&mut self, types: Vec<TokenType>) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 50 |     fn check(&self, token_type: &TokenType) -> bool {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn is_at_end(&self) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |     fn peek(&self) -> Token {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 |     fn previous(&self) -> Token {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |     fn advance(&mut self) -> Token {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 76 |     fn comparison() -> Expr {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.74s
[INFO] running `Command { std: "docker" "inspect" "14727f201a9060f13b76c777afc6ff5e45a4becc46a8faf951393aeae56480cf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "14727f201a9060f13b76c777afc6ff5e45a4becc46a8faf951393aeae56480cf", kill_on_drop: false }`
[INFO] [stdout] 14727f201a9060f13b76c777afc6ff5e45a4becc46a8faf951393aeae56480cf
