[INFO] cloning repository https://github.com/mov-rax/rlox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mov-rax/rlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmov-rax%2Frlox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmov-rax%2Frlox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f5bab9555686cb94373d890cdb8dcc10ddabce50 [INFO] building mov-rax/rlox against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmov-rax%2Frlox" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mov-rax/rlox on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mov-rax/rlox [INFO] finished tweaking git repo https://github.com/mov-rax/rlox [INFO] tweaked toml for git repo https://github.com/mov-rax/rlox written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mov-rax/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 28a1dfb8a1ed80c388b148f96794c3551cc854fb233e71964bf6e18d57ad04c0 [INFO] running `Command { std: "docker" "start" "-a" "28a1dfb8a1ed80c388b148f96794c3551cc854fb233e71964bf6e18d57ad04c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "28a1dfb8a1ed80c388b148f96794c3551cc854fb233e71964bf6e18d57ad04c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28a1dfb8a1ed80c388b148f96794c3551cc854fb233e71964bf6e18d57ad04c0", kill_on_drop: false }` [INFO] [stdout] 28a1dfb8a1ed80c388b148f96794c3551cc854fb233e71964bf6e18d57ad04c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf368288dea10bf1526251c1cb7082a1d753ba3d6002a53ce0766d9debeaf5e9 [INFO] running `Command { std: "docker" "start" "-a" "cf368288dea10bf1526251c1cb7082a1d753ba3d6002a53ce0766d9debeaf5e9", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling itertools v0.10.0 [INFO] [stderr] Compiling rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Itertools` [INFO] [stdout] --> src/lox_lib.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::{Itertools, PeekingNext}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::lexer::Token` [INFO] [stdout] --> src/lox_lib.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | use super::lexer::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Error` [INFO] [stdout] --> src/lox_lib.rs:316:18 [INFO] [stdout] | [INFO] [stdout] 316 | use anyhow::{Context, Error, Result}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/lox_lib.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 317 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::__std_iter::Peekable` [INFO] [stdout] --> src/lox_lib.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 318 | use itertools::__std_iter::Peekable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/lox_lib.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 320 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Chars` and `FromStr` [INFO] [stdout] --> src/lox_lib.rs:321:20 [INFO] [stdout] | [INFO] [stdout] 321 | use std::str::{Chars, FromStr}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lox_lib::lexer::Token::SemiColon` [INFO] [stdout] --> src/lox_lib.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 322 | use crate::lox_lib::lexer::Token::SemiColon; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic::catch_unwind` [INFO] [stdout] --> src/lox_lib.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 323 | use std::panic::catch_unwind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Error` [INFO] [stdout] --> src/lox_lib.rs:809:26 [INFO] [stdout] | [INFO] [stdout] 809 | use anyhow::{anyhow, Context, Error, Result}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/lox_lib.rs:812:9 [INFO] [stdout] | [INFO] [stdout] 812 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lox_lib.rs:813:9 [INFO] [stdout] | [INFO] [stdout] 813 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::parser::Expr` [INFO] [stdout] --> src/lox_lib.rs:1097:9 [INFO] [stdout] | [INFO] [stdout] 1097 | use super::parser::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Error` [INFO] [stdout] --> src/lox_lib.rs:1099:26 [INFO] [stdout] | [INFO] [stdout] 1099 | use anyhow::{Result, Error, Context, anyhow}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lox_lib::lexer::Token` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use lox_lib::lexer::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lox_lib::parser::Expr` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use lox_lib::parser::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `len` is assigned to, but never used [INFO] [stdout] --> src/lox_lib.rs:175:33 [INFO] [stdout] | [INFO] [stdout] 175 | let mut len = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_len` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lox_lib.rs:372:17 [INFO] [stdout] | [INFO] [stdout] 372 | other => panic!("Tried to unwrap a {:?} as a WhileStmt!") [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grouping_expr` [INFO] [stdout] --> src/lox_lib.rs:840:35 [INFO] [stdout] | [INFO] [stdout] 840 | if let Expr::Grouping(grouping_expr) = expr { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grouping_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lox_lib.rs:849:34 [INFO] [stdout] | [INFO] [stdout] 849 | Expr::Unary(tok, e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse` is never used [INFO] [stdout] --> src/lox_lib.rs:463:16 [INFO] [stdout] | [INFO] [stdout] 450 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 463 | pub fn parse(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lox_lib.rs:372:52 [INFO] [stdout] | [INFO] [stdout] 372 | other => panic!("Tried to unwrap a {:?} as a WhileStmt!") [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 372 | other => panic!("Tried to unwrap a {:?} as a WhileStmt!", ...) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 372 | other => panic!("{}", "Tried to unwrap a {:?} as a WhileStmt!") [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lox_lib.rs:998:13 [INFO] [stdout] | [INFO] [stdout] 998 | self.execute_all(statements); [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] 998 | let _ = self.execute_all(statements); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.90s [INFO] running `Command { std: "docker" "inspect" "cf368288dea10bf1526251c1cb7082a1d753ba3d6002a53ce0766d9debeaf5e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf368288dea10bf1526251c1cb7082a1d753ba3d6002a53ce0766d9debeaf5e9", kill_on_drop: false }` [INFO] [stdout] cf368288dea10bf1526251c1cb7082a1d753ba3d6002a53ce0766d9debeaf5e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10995a32d427c3538090fe9ee990d1d0e1d1fc6bf67246db74889971832e54bd [INFO] running `Command { std: "docker" "start" "-a" "10995a32d427c3538090fe9ee990d1d0e1d1fc6bf67246db74889971832e54bd", kill_on_drop: false }` [INFO] [stderr] Compiling rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Itertools` [INFO] [stdout] --> src/lox_lib.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::{Itertools, PeekingNext}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::lexer::Token` [INFO] [stdout] --> src/lox_lib.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | use super::lexer::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Error` [INFO] [stdout] --> src/lox_lib.rs:316:18 [INFO] [stdout] | [INFO] [stdout] 316 | use anyhow::{Context, Error, Result}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/lox_lib.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 317 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::__std_iter::Peekable` [INFO] [stdout] --> src/lox_lib.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 318 | use itertools::__std_iter::Peekable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/lox_lib.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 320 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Chars` and `FromStr` [INFO] [stdout] --> src/lox_lib.rs:321:20 [INFO] [stdout] | [INFO] [stdout] 321 | use std::str::{Chars, FromStr}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lox_lib::lexer::Token::SemiColon` [INFO] [stdout] --> src/lox_lib.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 322 | use crate::lox_lib::lexer::Token::SemiColon; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic::catch_unwind` [INFO] [stdout] --> src/lox_lib.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 323 | use std::panic::catch_unwind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Error` [INFO] [stdout] --> src/lox_lib.rs:809:26 [INFO] [stdout] | [INFO] [stdout] 809 | use anyhow::{anyhow, Context, Error, Result}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/lox_lib.rs:812:9 [INFO] [stdout] | [INFO] [stdout] 812 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lox_lib.rs:813:9 [INFO] [stdout] | [INFO] [stdout] 813 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::parser::Expr` [INFO] [stdout] --> src/lox_lib.rs:1097:9 [INFO] [stdout] | [INFO] [stdout] 1097 | use super::parser::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Error` [INFO] [stdout] --> src/lox_lib.rs:1099:26 [INFO] [stdout] | [INFO] [stdout] 1099 | use anyhow::{Result, Error, Context, anyhow}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lox_lib::lexer::Token` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use lox_lib::lexer::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lox_lib::parser::Expr` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use lox_lib::parser::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `len` is assigned to, but never used [INFO] [stdout] --> src/lox_lib.rs:175:33 [INFO] [stdout] | [INFO] [stdout] 175 | let mut len = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_len` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/lox_lib.rs:372:17 [INFO] [stdout] | [INFO] [stdout] 372 | other => panic!("Tried to unwrap a {:?} as a WhileStmt!") [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grouping_expr` [INFO] [stdout] --> src/lox_lib.rs:840:35 [INFO] [stdout] | [INFO] [stdout] 840 | if let Expr::Grouping(grouping_expr) = expr { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grouping_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lox_lib.rs:849:34 [INFO] [stdout] | [INFO] [stdout] 849 | Expr::Unary(tok, e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse` is never used [INFO] [stdout] --> src/lox_lib.rs:463:16 [INFO] [stdout] | [INFO] [stdout] 450 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 463 | pub fn parse(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/lox_lib.rs:372:52 [INFO] [stdout] | [INFO] [stdout] 372 | other => panic!("Tried to unwrap a {:?} as a WhileStmt!") [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 372 | other => panic!("Tried to unwrap a {:?} as a WhileStmt!", ...) [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 372 | other => panic!("{}", "Tried to unwrap a {:?} as a WhileStmt!") [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lox_lib.rs:998:13 [INFO] [stdout] | [INFO] [stdout] 998 | self.execute_all(statements); [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] 998 | let _ = self.execute_all(statements); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "10995a32d427c3538090fe9ee990d1d0e1d1fc6bf67246db74889971832e54bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10995a32d427c3538090fe9ee990d1d0e1d1fc6bf67246db74889971832e54bd", kill_on_drop: false }` [INFO] [stdout] 10995a32d427c3538090fe9ee990d1d0e1d1fc6bf67246db74889971832e54bd