[INFO] cloning repository https://github.com/baoziv587/LoxLang
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/baoziv587/LoxLang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaoziv587%2FLoxLang", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaoziv587%2FLoxLang'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c5f72cf61fa1d6b4fc5cc4f69385090c8930202d
[INFO] checking baoziv587/LoxLang against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaoziv587%2FLoxLang" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/baoziv587/LoxLang
[INFO] finished tweaking git repo https://github.com/baoziv587/LoxLang
[INFO] tweaked toml for git repo https://github.com/baoziv587/LoxLang written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/baoziv587/LoxLang on toolchain b1f2594eac607c1f051534800237eeedb5590a49
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/baoziv587/LoxLang 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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b90606291e7e7cd7c15c95ee41e27d9c5925701d4670bd380bad325c664b497e
[INFO] running `Command { std: "docker" "start" "-a" "b90606291e7e7cd7c15c95ee41e27d9c5925701d4670bd380bad325c664b497e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b90606291e7e7cd7c15c95ee41e27d9c5925701d4670bd380bad325c664b497e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b90606291e7e7cd7c15c95ee41e27d9c5925701d4670bd380bad325c664b497e", kill_on_drop: false }`
[INFO] [stdout] b90606291e7e7cd7c15c95ee41e27d9c5925701d4670bd380bad325c664b497e
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f893ca2c91e07229867e5ca0c6abd781538f9416f36ae158e4456e08faa6c974
[INFO] running `Command { std: "docker" "start" "-a" "f893ca2c91e07229867e5ca0c6abd781538f9416f36ae158e4456e08faa6c974", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.58
[INFO] [stderr]    Compiling autocfg v0.1.4
[INFO] [stderr]    Compiling memchr v2.2.0
[INFO] [stderr]     Checking ucd-util v0.1.3
[INFO] [stderr]    Compiling regex v1.1.7
[INFO] [stderr]     Checking utf8-ranges v1.0.3
[INFO] [stderr]     Checking quick-error v1.2.2
[INFO] [stderr]    Compiling bitflags v1.1.0
[INFO] [stderr]     Checking termcolor v1.0.5
[INFO] [stderr]     Checking thread_local v0.3.6
[INFO] [stderr]     Checking log v0.4.6
[INFO] [stderr]     Checking regex-syntax v0.6.7
[INFO] [stderr]     Checking humantime v1.2.0
[INFO] [stderr]    Compiling num-traits v0.2.8
[INFO] [stderr]    Compiling num-integer v0.1.41
[INFO] [stderr]     Checking atty v0.2.11
[INFO] [stderr]     Checking time v0.1.42
[INFO] [stderr]     Checking aho-corasick v0.7.3
[INFO] [stderr]     Checking clap v2.33.0
[INFO] [stderr]     Checking chrono v0.4.6
[INFO] [stderr]     Checking env_logger v0.6.1
[INFO] [stderr]     Checking lox v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking pretty_env_logger v0.3.0
[INFO] [stdout] warning: unused import: `core`
[INFO] [stdout]  --> src/cli/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use core;
[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::fs::File`
[INFO] [stdout]    --> src/frontend/scanner.rs:260:5
[INFO] [stdout]     |
[INFO] [stdout] 260 | use std::fs::File;
[INFO] [stdout]     |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]    --> src/frontend/scanner.rs:261:5
[INFO] [stdout]     |
[INFO] [stdout] 261 | use std::io::Read;
[INFO] [stdout]     |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/lib.rs:9:1
[INFO] [stdout]   |
[INFO] [stdout] 9 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/result.rs:73:32
[INFO] [stdout]    |
[INFO] [stdout] 73 |     fn cause(&self) -> Option<&error::Error> {
[INFO] [stdout]    |                                ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 73 |     fn cause(&self) -> Option<&dyn error::Error> {
[INFO] [stdout]    |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/result.rs:65:35
[INFO] [stdout]    |
[INFO] [stdout] 65 |             Error::IO(ref e) => e.description(),
[INFO] [stdout]    |                                   ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]   --> src/result.rs:75:35
[INFO] [stdout]    |
[INFO] [stdout] 75 |             Error::IO(ref e) => e.cause(),
[INFO] [stdout]    |                                   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `source`
[INFO] [stdout]   --> src/core/lox.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 |     fn run(source: &str) {}
[INFO] [stdout]    |            ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `run` is never used
[INFO] [stdout]   --> src/core/lox.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout]  6 | impl Lox {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 14 |     fn run(source: &str) {}
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `tokens` and `current` are never read
[INFO] [stdout]  --> src/frontend/parser.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Parser {
[INFO] [stdout]   |            ------ fields in this struct
[INFO] [stdout] 7 |     tokens: Vec<Token>,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 8 |     current: usize,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/frontend/parser.rs:16:8
[INFO] [stdout]     |
[INFO] [stdout]  11 | impl Parser {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  16 |     fn expressions(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  21 |     fn equality(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  35 |     fn match_type(&mut self, types: &Vec<TokenType>) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  45 |     fn expect_next(&mut self, types: &Vec<TokenType>) -> Result<&Token> {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  53 |     fn peek_error(&mut self) -> Error {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  67 |     fn advance(&mut self) -> Option<&Token> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  75 |     fn previous(&self) -> Option<&Token> {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  79 |     fn check(&self, t: &TokenType) -> bool {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  86 |     fn is_at_end(&self) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  90 |     fn peek(&self) -> Option<&Token> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout]  95 |     fn comparison(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 113 |     fn addition(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 126 |     fn mutilplication(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 132 |     fn unray(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 143 |     fn primary(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 163 |     fn unexpected(&mut self, t: &Token) -> Error {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 172 |     fn eof(&self) -> Error {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/frontend/scanner.rs:7:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub struct Scanner<'a> {
[INFO] [stdout]    |            ------- fields in this struct
[INFO] [stdout]  6 |     _source: &'a str,
[INFO] [stdout]  7 |     peeks: &'a str,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]  8 |     tokens: Vec<Token>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]  9 |     start: usize,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 10 |     line: usize,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 11 |     inline_offset: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 12 |     current: usize,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 13 |     count: usize,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Scanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/frontend/scanner.rs:38:8
[INFO] [stdout]     |
[INFO] [stdout]  24 | impl<'a> Scanner<'a> {
[INFO] [stdout]     | -------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  38 |     fn slice(&self, start: usize, end: usize) -> &str {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  42 |     fn scan_tokens(&mut self) -> Vec<Token> {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  57 |     fn is_at_end(&self) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  61 |     fn scan_token(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 121 |     fn scan_string(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 151 |     fn scan_comment(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 158 |     fn scan_new_line(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 163 |     fn scan_number(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 186 |     fn scan_identifier(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 201 |     fn match_str(&mut self, expected: &str) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 210 |     fn current_char(&mut self) -> &str {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 214 |     fn advance(&mut self) -> Option<&str> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 220 |     fn peek(&mut self, n: Option<usize>) -> Option<&str> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 234 |     fn peek_next(&mut self) -> Option<&str> {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 238 |     fn create_token(&mut self, t: TokenType, line: usize, val: String, pos: usize) -> Token {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 244 |     fn add_token(&mut self, tok_type: TokenType) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `LoxKeywords` should have an upper case name
[INFO] [stdout]  --> src/frontend/keywords.rs:5:20
[INFO] [stdout]   |
[INFO] [stdout] 5 |     pub static ref LoxKeywords: HashMap<&'static str, TokenType> = {
[INFO] [stdout]   |                    ^^^^^^^^^^^ help: convert the identifier to upper case: `LOX_KEYWORDS`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/frontend/scanner.rs:25:24
[INFO] [stdout]    |
[INFO] [stdout] 25 |     pub fn new(source: &str) -> Scanner {
[INFO] [stdout]    |                        ^^^^     ^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 25 |     pub fn new(source: &str) -> Scanner<'_> {
[INFO] [stdout]    |                                        ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core`
[INFO] [stdout]  --> src/cli/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use core;
[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: `Arg`
[INFO] [stdout]  --> src/bin/lox/main.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use clap::{Arg, App, SubCommand};
[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: `dist`
[INFO] [stdout]  --> src/bin/lox/commands/gen_ast.rs:4:13
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn exec(dist: &str) {
[INFO] [stdout]   |             ^^^^ help: if this is intentional, prefix it with an underscore: `_dist`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `out_dir`
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:23:15
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) {
[INFO] [stdout]    |               ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `base_name`
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:23:30
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) {
[INFO] [stdout]    |                              ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ast_types`
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:23:47
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) {
[INFO] [stdout]    |                                               ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ast_types`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:27:10
[INFO] [stdout]    |
[INFO] [stdout] 27 | fn write(name: &str, content: &str) -> std::io::Result<()> {
[INFO] [stdout]    |          ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gen_ast` is never used
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:14:4
[INFO] [stdout]    |
[INFO] [stdout] 14 | fn gen_ast(out_dit: &str) {
[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 `define_ast` is never used
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:23:4
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `write` is never used
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:27:4
[INFO] [stdout]    |
[INFO] [stdout] 27 | fn write(name: &str, content: &str) -> std::io::Result<()> {
[INFO] [stdout]    |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Arg`
[INFO] [stdout]  --> src/bin/lox/main.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use clap::{Arg, App, SubCommand};
[INFO] [stdout]   |            ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/result.rs:73:32
[INFO] [stdout]    |
[INFO] [stdout] 73 |     fn cause(&self) -> Option<&error::Error> {
[INFO] [stdout]    |                                ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 73 |     fn cause(&self) -> Option<&dyn error::Error> {
[INFO] [stdout]    |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dist`
[INFO] [stdout]  --> src/bin/lox/commands/gen_ast.rs:4:13
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn exec(dist: &str) {
[INFO] [stdout]   |             ^^^^ help: if this is intentional, prefix it with an underscore: `_dist`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `out_dir`
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:23:15
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) {
[INFO] [stdout]    |               ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `base_name`
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:23:30
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) {
[INFO] [stdout]    |                              ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ast_types`
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:23:47
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) {
[INFO] [stdout]    |                                               ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ast_types`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:27:10
[INFO] [stdout]    |
[INFO] [stdout] 27 | fn write(name: &str, content: &str) -> std::io::Result<()> {
[INFO] [stdout]    |          ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gen_ast` is never used
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:14:4
[INFO] [stdout]    |
[INFO] [stdout] 14 | fn gen_ast(out_dit: &str) {
[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 `define_ast` is never used
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:23:4
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn define_ast(out_dir: &str, base_name: &str, ast_types: &Vec<&str>) {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `write` is never used
[INFO] [stdout]   --> src/bin/lox/commands/gen_ast.rs:27:4
[INFO] [stdout]    |
[INFO] [stdout] 27 | fn write(name: &str, content: &str) -> std::io::Result<()> {
[INFO] [stdout]    |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/result.rs:65:35
[INFO] [stdout]    |
[INFO] [stdout] 65 |             Error::IO(ref e) => e.description(),
[INFO] [stdout]    |                                   ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]   --> src/result.rs:75:35
[INFO] [stdout]    |
[INFO] [stdout] 75 |             Error::IO(ref e) => e.cause(),
[INFO] [stdout]    |                                   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `source`
[INFO] [stdout]   --> src/core/lox.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 |     fn run(source: &str) {}
[INFO] [stdout]    |            ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `run` is never used
[INFO] [stdout]   --> src/core/lox.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout]  6 | impl Lox {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 14 |     fn run(source: &str) {}
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `tokens` and `current` are never read
[INFO] [stdout]  --> src/frontend/parser.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Parser {
[INFO] [stdout]   |            ------ fields in this struct
[INFO] [stdout] 7 |     tokens: Vec<Token>,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 8 |     current: usize,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/frontend/parser.rs:16:8
[INFO] [stdout]     |
[INFO] [stdout]  11 | impl Parser {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  16 |     fn expressions(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  21 |     fn equality(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  35 |     fn match_type(&mut self, types: &Vec<TokenType>) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  45 |     fn expect_next(&mut self, types: &Vec<TokenType>) -> Result<&Token> {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  53 |     fn peek_error(&mut self) -> Error {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  67 |     fn advance(&mut self) -> Option<&Token> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  75 |     fn previous(&self) -> Option<&Token> {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  79 |     fn check(&self, t: &TokenType) -> bool {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  86 |     fn is_at_end(&self) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  90 |     fn peek(&self) -> Option<&Token> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout]  95 |     fn comparison(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 113 |     fn addition(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 126 |     fn mutilplication(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 132 |     fn unray(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 143 |     fn primary(&mut self) -> Result<Expr> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 163 |     fn unexpected(&mut self, t: &Token) -> Error {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 172 |     fn eof(&self) -> Error {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `LoxKeywords` should have an upper case name
[INFO] [stdout]  --> src/frontend/keywords.rs:5:20
[INFO] [stdout]   |
[INFO] [stdout] 5 |     pub static ref LoxKeywords: HashMap<&'static str, TokenType> = {
[INFO] [stdout]   |                    ^^^^^^^^^^^ help: convert the identifier to upper case: `LOX_KEYWORDS`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/frontend/scanner.rs:25:24
[INFO] [stdout]    |
[INFO] [stdout] 25 |     pub fn new(source: &str) -> Scanner {
[INFO] [stdout]    |                        ^^^^     ^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 25 |     pub fn new(source: &str) -> Scanner<'_> {
[INFO] [stdout]    |                                        ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.69s
[INFO] running `Command { std: "docker" "inspect" "f893ca2c91e07229867e5ca0c6abd781538f9416f36ae158e4456e08faa6c974", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f893ca2c91e07229867e5ca0c6abd781538f9416f36ae158e4456e08faa6c974", kill_on_drop: false }`
[INFO] [stdout] f893ca2c91e07229867e5ca0c6abd781538f9416f36ae158e4456e08faa6c974
