[INFO] cloning repository https://github.com/dovakin0007/Lox_clone [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dovakin0007/Lox_clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdovakin0007%2FLox_clone", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdovakin0007%2FLox_clone'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6e4e58a0cd4a856218540138f70211697d9756ec [INFO] checking dovakin0007/Lox_clone against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdovakin0007%2FLox_clone" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dovakin0007/Lox_clone on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dovakin0007/Lox_clone [INFO] finished tweaking git repo https://github.com/dovakin0007/Lox_clone [INFO] tweaked toml for git repo https://github.com/dovakin0007/Lox_clone written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dovakin0007/Lox_clone 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bfce7335f2e158455a958657e1df6858f6923884a69d993f77ad410a49c843e2 [INFO] running `Command { std: "docker" "start" "-a" "bfce7335f2e158455a958657e1df6858f6923884a69d993f77ad410a49c843e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bfce7335f2e158455a958657e1df6858f6923884a69d993f77ad410a49c843e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfce7335f2e158455a958657e1df6858f6923884a69d993f77ad410a49c843e2", kill_on_drop: false }` [INFO] [stdout] bfce7335f2e158455a958657e1df6858f6923884a69d993f77ad410a49c843e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e3de66e12359c8fd5fafd50f719157fc08f71a26f5c97649a2436df89f6f033d [INFO] running `Command { std: "docker" "start" "-a" "e3de66e12359c8fd5fafd50f719157fc08f71a26f5c97649a2436df89f6f033d", kill_on_drop: false }` [INFO] [stderr] Checking Lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/astprinter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/astprinter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType`, `Token` [INFO] [stdout] --> src/astprinter.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::token::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind::Other` [INFO] [stdout] --> src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::ErrorKind::Other; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpreter::Types` [INFO] [stdout] --> src/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::interpreter::Types; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `False` [INFO] [stdout] --> src/parser.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::token::TokenType::{False, LeftParen, RightParen, True}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/parser.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | while(self.peek().unwrap().t_type != TokenType::EOF){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - while(self.peek().unwrap().t_type != TokenType::EOF){ [INFO] [stdout] 28 + while self.peek().unwrap().t_type != TokenType::EOF { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/interpreter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/interpreter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::Parser` [INFO] [stdout] --> src/interpreter.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::parser::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/interpreter.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::error::{Error, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/interpreter.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::token::{Token, TokenType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token` [INFO] [stdout] --> src/environment.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::token; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/error.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Expr` [INFO] [stdout] --> src/main.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::ast::{Expr, Stmt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/scanner.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | use String; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/astprinter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/astprinter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind::Other` [INFO] [stdout] --> src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::ErrorKind::Other; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpreter::Types` [INFO] [stdout] --> src/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::interpreter::Types; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `False` [INFO] [stdout] --> src/parser.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::token::TokenType::{False, LeftParen, RightParen, True}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/parser.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | while(self.peek().unwrap().t_type != TokenType::EOF){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - while(self.peek().unwrap().t_type != TokenType::EOF){ [INFO] [stdout] 28 + while self.peek().unwrap().t_type != TokenType::EOF { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/parser.rs:443:9 [INFO] [stdout] | [INFO] [stdout] 443 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/interpreter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/interpreter.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::error::{Error, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token` [INFO] [stdout] --> src/environment.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::token; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/error.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Expr` [INFO] [stdout] --> src/main.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::ast::{Expr, Stmt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/astprinter.rs:74:101 [INFO] [stdout] | [INFO] [stdout] 74 | ...nt {:?})", statements.iter().map(|x| self.visit_statement(s)).collect::()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [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/parser.rs:196:12 [INFO] [stdout] | [INFO] [stdout] 196 | let mut expr = self.or()?; [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: `x` [INFO] [stdout] --> src/astprinter.rs:74:101 [INFO] [stdout] | [INFO] [stdout] 74 | ...nt {:?})", statements.iter().map(|x| self.visit_statement(s)).collect::()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/astprinter.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl AstPrinter { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 15 | fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Env` is never used [INFO] [stdout] --> src/environment.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type Env = Rc>>>; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/error.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | RunTime{ [INFO] [stdout] | ------- field in this variant [INFO] [stdout] 25 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:196:12 [INFO] [stdout] | [INFO] [stdout] 196 | let mut expr = self.or()?; [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 `Result` that must be used [INFO] [stdout] --> src/main.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | interpreter.interpret(expressions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 97 | let _ = interpreter.interpret(expressions); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:81:29 [INFO] [stdout] | [INFO] [stdout] 81 | &Stmt::Expr(ref Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:85:31 [INFO] [stdout] | [INFO] [stdout] 85 | &Stmt::IfStmt(ref Expr, ref then,ref else_option)=>{ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:96:25 [INFO] [stdout] | [INFO] [stdout] 96 | Stmt::Print(Expr)=> { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Token` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:102:34 [INFO] [stdout] | [INFO] [stdout] 102 | Stmt::VarDeclaration(Token,Expr) => { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:102:40 [INFO] [stdout] | [INFO] [stdout] 102 | Stmt::VarDeclaration(Token,Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:123:29 [INFO] [stdout] | [INFO] [stdout] 123 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Stmt` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:123:39 [INFO] [stdout] | [INFO] [stdout] 123 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Env` is never used [INFO] [stdout] --> src/environment.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type Env = Rc>>>; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/error.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | RunTime{ [INFO] [stdout] | ------- field in this variant [INFO] [stdout] 25 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | interpreter.interpret(expressions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 97 | let _ = interpreter.interpret(expressions); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:81:29 [INFO] [stdout] | [INFO] [stdout] 81 | &Stmt::Expr(ref Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:85:31 [INFO] [stdout] | [INFO] [stdout] 85 | &Stmt::IfStmt(ref Expr, ref then,ref else_option)=>{ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:96:25 [INFO] [stdout] | [INFO] [stdout] 96 | Stmt::Print(Expr)=> { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Token` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:102:34 [INFO] [stdout] | [INFO] [stdout] 102 | Stmt::VarDeclaration(Token,Expr) => { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:102:40 [INFO] [stdout] | [INFO] [stdout] 102 | Stmt::VarDeclaration(Token,Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:123:29 [INFO] [stdout] | [INFO] [stdout] 123 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Stmt` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:123:39 [INFO] [stdout] | [INFO] [stdout] 123 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:567:9 [INFO] [stdout] | [INFO] [stdout] 567 | interpreter.interpret(statements); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 567 | let _ = interpreter.interpret(statements); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "e3de66e12359c8fd5fafd50f719157fc08f71a26f5c97649a2436df89f6f033d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3de66e12359c8fd5fafd50f719157fc08f71a26f5c97649a2436df89f6f033d", kill_on_drop: false }` [INFO] [stdout] e3de66e12359c8fd5fafd50f719157fc08f71a26f5c97649a2436df89f6f033d [INFO] checking dovakin0007/Lox_clone against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdovakin0007%2FLox_clone" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dovakin0007/Lox_clone on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dovakin0007/Lox_clone [INFO] finished tweaking git repo https://github.com/dovakin0007/Lox_clone [INFO] tweaked toml for git repo https://github.com/dovakin0007/Lox_clone written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/dovakin0007/Lox_clone 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7317b39a91ee50053255f57d11e420dc61ebbbf8cc228b50e02581f644f1fcc [INFO] running `Command { std: "docker" "start" "-a" "c7317b39a91ee50053255f57d11e420dc61ebbbf8cc228b50e02581f644f1fcc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7317b39a91ee50053255f57d11e420dc61ebbbf8cc228b50e02581f644f1fcc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7317b39a91ee50053255f57d11e420dc61ebbbf8cc228b50e02581f644f1fcc", kill_on_drop: false }` [INFO] [stdout] c7317b39a91ee50053255f57d11e420dc61ebbbf8cc228b50e02581f644f1fcc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a7bf4fd5e3d2c82ee3b1a4ca2d9e9a51c6d43676706ed14960b206ef62cab726 [INFO] running `Command { std: "docker" "start" "-a" "a7bf4fd5e3d2c82ee3b1a4ca2d9e9a51c6d43676706ed14960b206ef62cab726", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking Lox v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/interpreter.rs (4 fixes) [INFO] [stderr] Fixed src/error.rs (1 fix) [INFO] [stderr] Fixed src/parser.rs (5 fixes) [INFO] [stderr] Fixed src/astprinter.rs (3 fixes) [INFO] [stderr] Fixed src/environment.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/interpreter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/astprinter.rs:71:101 [INFO] [stdout] | [INFO] [stdout] 71 | ...nt {:?})", statements.iter().map(|x| self.visit_statement(s)).collect::()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/astprinter.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl AstPrinter { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 12 | fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Env` is never used [INFO] [stdout] --> src/environment.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Env = Rc>>>; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/error.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | RunTime{ [INFO] [stdout] | ------- field in this variant [INFO] [stdout] 25 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | interpreter.interpret(expressions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 96 | let _ = interpreter.interpret(expressions); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:79:29 [INFO] [stdout] | [INFO] [stdout] 79 | &Stmt::Expr(ref Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:83:31 [INFO] [stdout] | [INFO] [stdout] 83 | &Stmt::IfStmt(ref Expr, ref then,ref else_option)=>{ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | Stmt::Print(Expr)=> { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Token` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:100:34 [INFO] [stdout] | [INFO] [stdout] 100 | Stmt::VarDeclaration(Token,Expr) => { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:100:40 [INFO] [stdout] | [INFO] [stdout] 100 | Stmt::VarDeclaration(Token,Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Stmt` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:121:39 [INFO] [stdout] | [INFO] [stdout] 121 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/astprinter.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | token: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/astprinter.rs:104:25 [INFO] [stdout] | [INFO] [stdout] 104 | t_type: TokenType::Number(1.0), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::TokenType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/astprinter.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | op: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/astprinter.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | t_type: TokenType::Plus, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::TokenType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/astprinter.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 115 | token: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/astprinter.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | t_type: TokenType::Number(2.0), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::TokenType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:295:13 [INFO] [stdout] | [INFO] [stdout] 295 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:301:24 [INFO] [stdout] | [INFO] [stdout] 301 | token: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:314:19 [INFO] [stdout] | [INFO] [stdout] 314 | name: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:320:24 [INFO] [stdout] | [INFO] [stdout] 320 | token: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:342:13 [INFO] [stdout] | [INFO] [stdout] 342 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:348:24 [INFO] [stdout] | [INFO] [stdout] 348 | token: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:361:13 [INFO] [stdout] | [INFO] [stdout] 361 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:368:27 [INFO] [stdout] | [INFO] [stdout] 368 | name: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:374:21 [INFO] [stdout] | [INFO] [stdout] 374 | op: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:380:27 [INFO] [stdout] | [INFO] [stdout] 380 | name: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:401:13 [INFO] [stdout] | [INFO] [stdout] 401 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 411 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:416:13 [INFO] [stdout] | [INFO] [stdout] 416 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:421:13 [INFO] [stdout] | [INFO] [stdout] 421 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:426:13 [INFO] [stdout] | [INFO] [stdout] 426 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:431:13 [INFO] [stdout] | [INFO] [stdout] 431 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:436:13 [INFO] [stdout] | [INFO] [stdout] 436 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:441:13 [INFO] [stdout] | [INFO] [stdout] 441 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:446:13 [INFO] [stdout] | [INFO] [stdout] 446 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:451:13 [INFO] [stdout] | [INFO] [stdout] 451 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:456:13 [INFO] [stdout] | [INFO] [stdout] 456 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:461:13 [INFO] [stdout] | [INFO] [stdout] 461 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:466:13 [INFO] [stdout] | [INFO] [stdout] 466 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:471:13 [INFO] [stdout] | [INFO] [stdout] 471 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/interpreter.rs:479:26 [INFO] [stdout] | [INFO] [stdout] 479 | let mut parser = Parser::new(tokens); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:497:13 [INFO] [stdout] | [INFO] [stdout] 497 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:502:13 [INFO] [stdout] | [INFO] [stdout] 502 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:507:13 [INFO] [stdout] | [INFO] [stdout] 507 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:512:13 [INFO] [stdout] | [INFO] [stdout] 512 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:517:13 [INFO] [stdout] | [INFO] [stdout] 517 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:522:13 [INFO] [stdout] | [INFO] [stdout] 522 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:532:13 [INFO] [stdout] | [INFO] [stdout] 532 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:537:13 [INFO] [stdout] | [INFO] [stdout] 537 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:542:13 [INFO] [stdout] | [INFO] [stdout] 542 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:547:13 [INFO] [stdout] | [INFO] [stdout] 547 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/interpreter.rs:552:13 [INFO] [stdout] | [INFO] [stdout] 552 | Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/interpreter.rs:560:26 [INFO] [stdout] | [INFO] [stdout] 560 | let mut parser = Parser::new(tokens); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 288 + use crate::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `String` is imported redundantly [INFO] [stdout] --> src/scanner.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | use String; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `String` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/parser.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/astprinter.rs:71:101 [INFO] [stdout] | [INFO] [stdout] 71 | ...nt {:?})", statements.iter().map(|x| self.visit_statement(s)).collect::()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 45 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Lox` (bin "Lox" test) due to 46 previous errors; 3 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "a7bf4fd5e3d2c82ee3b1a4ca2d9e9a51c6d43676706ed14960b206ef62cab726", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7bf4fd5e3d2c82ee3b1a4ca2d9e9a51c6d43676706ed14960b206ef62cab726", kill_on_drop: false }` [INFO] [stdout] a7bf4fd5e3d2c82ee3b1a4ca2d9e9a51c6d43676706ed14960b206ef62cab726