[INFO] cloning repository https://github.com/evilwaveforms/rlox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/evilwaveforms/rlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevilwaveforms%2Frlox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevilwaveforms%2Frlox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28c1631afafdc1e0f2c33a3027d8783042019850 [INFO] checking evilwaveforms/rlox against master#385fa9d845dd326c6bbfd58c22244215e431948a for never-type-fallback-to-never [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevilwaveforms%2Frlox" "/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/evilwaveforms/rlox on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/evilwaveforms/rlox [INFO] finished tweaking git repo https://github.com/evilwaveforms/rlox [INFO] tweaked toml for git repo https://github.com/evilwaveforms/rlox written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/evilwaveforms/rlox already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1fcf6b04548a2e8b03bba50f41ff4ae17020bf08f9ec511638b3aa7f439c53ed [INFO] running `Command { std: "docker" "start" "-a" "1fcf6b04548a2e8b03bba50f41ff4ae17020bf08f9ec511638b3aa7f439c53ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1fcf6b04548a2e8b03bba50f41ff4ae17020bf08f9ec511638b3aa7f439c53ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fcf6b04548a2e8b03bba50f41ff4ae17020bf08f9ec511638b3aa7f439c53ed", kill_on_drop: false }` [INFO] [stdout] 1fcf6b04548a2e8b03bba50f41ff4ae17020bf08f9ec511638b3aa7f439c53ed [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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5e8d41b8e4ced4f2fa5ae1853dcaedb1d6d58398d13366be921b77063d936c2 [INFO] running `Command { std: "docker" "start" "-a" "a5e8d41b8e4ced4f2fa5ae1853dcaedb1d6d58398d13366be921b77063d936c2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.36 [INFO] [stderr] Compiling strum_macros v0.25.2 [INFO] [stderr] Checking rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `interpreter` [INFO] [stdout] --> src/interpreter.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | fn call(&self, interpreter: &Interpreter, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interpreter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/interpreter.rs:42:47 [INFO] [stdout] | [INFO] [stdout] 42 | fn call(&self, interpreter: &Interpreter, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `since_the_epoch` [INFO] [stdout] --> src/interpreter.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let since_the_epoch = start.duration_since(UNIX_EPOCH).unwrap().as_secs_f32(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_since_the_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/interpreter.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn call(&mut self, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epxr` [INFO] [stdout] --> src/interpreter.rs:114:24 [INFO] [stdout] | [INFO] [stdout] 114 | Expr::Call(epxr) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_epxr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/interpreter.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | Stmt::Function(stmt) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interpreter` [INFO] [stdout] --> src/interpreter.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | fn call(&self, interpreter: &Interpreter, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interpreter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/interpreter.rs:42:47 [INFO] [stdout] | [INFO] [stdout] 42 | fn call(&self, interpreter: &Interpreter, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `since_the_epoch` [INFO] [stdout] --> src/interpreter.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let since_the_epoch = start.duration_since(UNIX_EPOCH).unwrap().as_secs_f32(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_since_the_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/interpreter.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn call(&mut self, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initializer` is never read [INFO] [stdout] --> src/parser.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut initializer = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epxr` [INFO] [stdout] --> src/interpreter.rs:114:24 [INFO] [stdout] | [INFO] [stdout] 114 | Expr::Call(epxr) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_epxr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/interpreter.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | Stmt::Function(stmt) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:461:17 [INFO] [stdout] | [INFO] [stdout] 461 | Err(e) => true, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:491:21 [INFO] [stdout] | [INFO] [stdout] 491 | Err(e) => return, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initializer` is never read [INFO] [stdout] --> src/parser.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut initializer = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:461:17 [INFO] [stdout] | [INFO] [stdout] 461 | Err(e) => true, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repl` [INFO] [stdout] --> src/main.rs:77:37 [INFO] [stdout] | [INFO] [stdout] 77 | fn run(idx: usize, source: Vec, repl: bool, interpreter: &mut interpreter::Interpreter) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_repl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:491:21 [INFO] [stdout] | [INFO] [stdout] 491 | Err(e) => return, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `callee`, `paren`, and `arguments` are never read [INFO] [stdout] --> src/expr.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct Call { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 54 | pub callee: Expr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 55 | pub paren: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 56 | pub arguments: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Call` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Func` is never constructed [INFO] [stdout] --> src/interpreter.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Data { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | Func, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LoxCallable` is never used [INFO] [stdout] --> src/interpreter.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 38 | trait LoxCallable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `repl` is never read [INFO] [stdout] --> src/interpreter.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 49 | pub env: Rc>, [INFO] [stdout] 50 | pub repl: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interpreter` 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: methods `call` and `evaluate_call_expr` are never used [INFO] [stdout] --> src/interpreter.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Interpreter { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 85 | pub fn call(&mut self, arguments: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | fn evaluate_call_expr(&mut self, expr: &Call) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `parameters`, and `body` are never read [INFO] [stdout] --> src/stmt.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 50 | pub name: Token, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | pub parameters: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 52 | pub body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | self.consume(&TokenType::RightParen, "Expect ')' after parameters."); [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] 198 | let _ = self.consume(&TokenType::RightParen, "Expect ')' after parameters."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | self.consume(&TokenType::LeftBrace, &("Expect '{' before ".to_string() + &kind + " body.")); [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] 199 | let _ = self.consume(&TokenType::LeftBrace, &("Expect '{' before ".to_string() + &kind + " body.")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | self.consume(&TokenType::RightBrace, "Expect '}' after block."); [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] 210 | let _ = self.consume(&TokenType::RightBrace, "Expect '}' after block."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repl` [INFO] [stdout] --> src/main.rs:77:37 [INFO] [stdout] | [INFO] [stdout] 77 | fn run(idx: usize, source: Vec, repl: bool, interpreter: &mut interpreter::Interpreter) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_repl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/ast_printer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Expr { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 5 | pub fn print(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parenthesize` is never used [INFO] [stdout] --> src/ast_printer.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn parenthesize(name: &String, exprs: &[&Expr]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `callee`, `paren`, and `arguments` are never read [INFO] [stdout] --> src/expr.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct Call { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 54 | pub callee: Expr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 55 | pub paren: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 56 | pub arguments: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Call` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Func` is never constructed [INFO] [stdout] --> src/interpreter.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Data { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | Func, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LoxCallable` is never used [INFO] [stdout] --> src/interpreter.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 38 | trait LoxCallable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `repl` is never read [INFO] [stdout] --> src/interpreter.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 49 | pub env: Rc>, [INFO] [stdout] 50 | pub repl: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interpreter` 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: methods `call` and `evaluate_call_expr` are never used [INFO] [stdout] --> src/interpreter.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Interpreter { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 85 | pub fn call(&mut self, arguments: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | fn evaluate_call_expr(&mut self, expr: &Call) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `parameters`, and `body` are never read [INFO] [stdout] --> src/stmt.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 50 | pub name: Token, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | pub parameters: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 52 | pub body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | self.consume(&TokenType::RightParen, "Expect ')' after parameters."); [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] 198 | let _ = self.consume(&TokenType::RightParen, "Expect ')' after parameters."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | self.consume(&TokenType::LeftBrace, &("Expect '{' before ".to_string() + &kind + " body.")); [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] 199 | let _ = self.consume(&TokenType::LeftBrace, &("Expect '{' before ".to_string() + &kind + " body.")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | self.consume(&TokenType::RightBrace, "Expect '}' after block."); [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] 210 | let _ = self.consume(&TokenType::RightBrace, "Expect '}' after block."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.55s [INFO] running `Command { std: "docker" "inspect" "a5e8d41b8e4ced4f2fa5ae1853dcaedb1d6d58398d13366be921b77063d936c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5e8d41b8e4ced4f2fa5ae1853dcaedb1d6d58398d13366be921b77063d936c2", kill_on_drop: false }` [INFO] [stdout] a5e8d41b8e4ced4f2fa5ae1853dcaedb1d6d58398d13366be921b77063d936c2 [INFO] checking evilwaveforms/rlox against try#2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2 for never-type-fallback-to-never [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevilwaveforms%2Frlox" "/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/evilwaveforms/rlox on toolchain 2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/evilwaveforms/rlox [INFO] finished tweaking git repo https://github.com/evilwaveforms/rlox [INFO] tweaked toml for git repo https://github.com/evilwaveforms/rlox written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/evilwaveforms/rlox already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c0f8c3db1eb15821624d1457c2883f69dbbc7ec5127ce33e968a173d61ac4a92 [INFO] running `Command { std: "docker" "start" "-a" "c0f8c3db1eb15821624d1457c2883f69dbbc7ec5127ce33e968a173d61ac4a92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0f8c3db1eb15821624d1457c2883f69dbbc7ec5127ce33e968a173d61ac4a92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0f8c3db1eb15821624d1457c2883f69dbbc7ec5127ce33e968a173d61ac4a92", kill_on_drop: false }` [INFO] [stdout] c0f8c3db1eb15821624d1457c2883f69dbbc7ec5127ce33e968a173d61ac4a92 [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" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 69a362ffdeb322163566ed694c34ab8ca6f0801a4e2c6afe41c29433db34a422 [INFO] running `Command { std: "docker" "start" "-a" "69a362ffdeb322163566ed694c34ab8ca6f0801a4e2c6afe41c29433db34a422", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.36 [INFO] [stderr] Compiling strum_macros v0.25.2 [INFO] [stderr] Checking rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `interpreter` [INFO] [stdout] --> src/interpreter.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | fn call(&self, interpreter: &Interpreter, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interpreter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/interpreter.rs:42:47 [INFO] [stdout] | [INFO] [stdout] 42 | fn call(&self, interpreter: &Interpreter, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `since_the_epoch` [INFO] [stdout] --> src/interpreter.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let since_the_epoch = start.duration_since(UNIX_EPOCH).unwrap().as_secs_f32(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_since_the_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/interpreter.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn call(&mut self, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epxr` [INFO] [stdout] --> src/interpreter.rs:114:24 [INFO] [stdout] | [INFO] [stdout] 114 | Expr::Call(epxr) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_epxr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/interpreter.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | Stmt::Function(stmt) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interpreter` [INFO] [stdout] --> src/interpreter.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | fn call(&self, interpreter: &Interpreter, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interpreter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/interpreter.rs:42:47 [INFO] [stdout] | [INFO] [stdout] 42 | fn call(&self, interpreter: &Interpreter, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `since_the_epoch` [INFO] [stdout] --> src/interpreter.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let since_the_epoch = start.duration_since(UNIX_EPOCH).unwrap().as_secs_f32(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_since_the_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/interpreter.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn call(&mut self, arguments: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epxr` [INFO] [stdout] --> src/interpreter.rs:114:24 [INFO] [stdout] | [INFO] [stdout] 114 | Expr::Call(epxr) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_epxr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/interpreter.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | Stmt::Function(stmt) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initializer` is never read [INFO] [stdout] --> src/parser.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut initializer = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initializer` is never read [INFO] [stdout] --> src/parser.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut initializer = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:461:17 [INFO] [stdout] | [INFO] [stdout] 461 | Err(e) => true, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:491:21 [INFO] [stdout] | [INFO] [stdout] 491 | Err(e) => return, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:461:17 [INFO] [stdout] | [INFO] [stdout] 461 | Err(e) => true, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:491:21 [INFO] [stdout] | [INFO] [stdout] 491 | Err(e) => return, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repl` [INFO] [stdout] --> src/main.rs:77:37 [INFO] [stdout] | [INFO] [stdout] 77 | fn run(idx: usize, source: Vec, repl: bool, interpreter: &mut interpreter::Interpreter) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_repl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/ast_printer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Expr { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 5 | pub fn print(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parenthesize` is never used [INFO] [stdout] --> src/ast_printer.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn parenthesize(name: &String, exprs: &[&Expr]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `callee`, `paren`, and `arguments` are never read [INFO] [stdout] --> src/expr.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct Call { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 54 | pub callee: Expr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 55 | pub paren: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 56 | pub arguments: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Call` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Func` is never constructed [INFO] [stdout] --> src/interpreter.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Data { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | Func, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LoxCallable` is never used [INFO] [stdout] --> src/interpreter.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 38 | trait LoxCallable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `repl` is never read [INFO] [stdout] --> src/interpreter.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 49 | pub env: Rc>, [INFO] [stdout] 50 | pub repl: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interpreter` 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: methods `call` and `evaluate_call_expr` are never used [INFO] [stdout] --> src/interpreter.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Interpreter { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 85 | pub fn call(&mut self, arguments: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | fn evaluate_call_expr(&mut self, expr: &Call) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `parameters`, and `body` are never read [INFO] [stdout] --> src/stmt.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 50 | pub name: Token, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | pub parameters: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 52 | pub body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | self.consume(&TokenType::RightParen, "Expect ')' after parameters."); [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] 198 | let _ = self.consume(&TokenType::RightParen, "Expect ')' after parameters."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | self.consume(&TokenType::LeftBrace, &("Expect '{' before ".to_string() + &kind + " body.")); [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] 199 | let _ = self.consume(&TokenType::LeftBrace, &("Expect '{' before ".to_string() + &kind + " body.")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | self.consume(&TokenType::RightBrace, "Expect '}' after block."); [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] 210 | let _ = self.consume(&TokenType::RightBrace, "Expect '}' after block."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repl` [INFO] [stdout] --> src/main.rs:77:37 [INFO] [stdout] | [INFO] [stdout] 77 | fn run(idx: usize, source: Vec, repl: bool, interpreter: &mut interpreter::Interpreter) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_repl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `callee`, `paren`, and `arguments` are never read [INFO] [stdout] --> src/expr.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct Call { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 54 | pub callee: Expr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 55 | pub paren: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 56 | pub arguments: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Call` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Func` is never constructed [INFO] [stdout] --> src/interpreter.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Data { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | Func, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LoxCallable` is never used [INFO] [stdout] --> src/interpreter.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 38 | trait LoxCallable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `repl` is never read [INFO] [stdout] --> src/interpreter.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 49 | pub env: Rc>, [INFO] [stdout] 50 | pub repl: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interpreter` 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: methods `call` and `evaluate_call_expr` are never used [INFO] [stdout] --> src/interpreter.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Interpreter { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 85 | pub fn call(&mut self, arguments: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | fn evaluate_call_expr(&mut self, expr: &Call) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `parameters`, and `body` are never read [INFO] [stdout] --> src/stmt.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 50 | pub name: Token, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | pub parameters: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 52 | pub body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | self.consume(&TokenType::RightParen, "Expect ')' after parameters."); [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] 198 | let _ = self.consume(&TokenType::RightParen, "Expect ')' after parameters."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | self.consume(&TokenType::LeftBrace, &("Expect '{' before ".to_string() + &kind + " body.")); [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] 199 | let _ = self.consume(&TokenType::LeftBrace, &("Expect '{' before ".to_string() + &kind + " body.")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | self.consume(&TokenType::RightBrace, "Expect '}' after block."); [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] 210 | let _ = self.consume(&TokenType::RightBrace, "Expect '}' after block."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.40s [INFO] running `Command { std: "docker" "inspect" "69a362ffdeb322163566ed694c34ab8ca6f0801a4e2c6afe41c29433db34a422", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69a362ffdeb322163566ed694c34ab8ca6f0801a4e2c6afe41c29433db34a422", kill_on_drop: false }` [INFO] [stdout] 69a362ffdeb322163566ed694c34ab8ca6f0801a4e2c6afe41c29433db34a422