[INFO] cloning repository https://github.com/ajkachnic/sandstorm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ajkachnic/sandstorm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajkachnic%2Fsandstorm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajkachnic%2Fsandstorm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce1b8ea401607b9e6fcafeecc3d6a0bd3ea0674e [INFO] building ajkachnic/sandstorm against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajkachnic%2Fsandstorm" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ajkachnic/sandstorm [INFO] finished tweaking git repo https://github.com/ajkachnic/sandstorm [INFO] tweaked toml for git repo https://github.com/ajkachnic/sandstorm written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ajkachnic/sandstorm on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ajkachnic/sandstorm 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e4735b90d956e7ccc6a50083d749ca663d149d495671d462af42e8a3af8af09f [INFO] running `Command { std: "docker" "start" "-a" "e4735b90d956e7ccc6a50083d749ca663d149d495671d462af42e8a3af8af09f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e4735b90d956e7ccc6a50083d749ca663d149d495671d462af42e8a3af8af09f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4735b90d956e7ccc6a50083d749ca663d149d495671d462af42e8a3af8af09f", kill_on_drop: false }` [INFO] [stdout] e4735b90d956e7ccc6a50083d749ca663d149d495671d462af42e8a3af8af09f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bf69b5dafc94ac72727c8b11151e3362aee6096bf371b520bf2472ba527daa6b [INFO] running `Command { std: "docker" "start" "-a" "bf69b5dafc94ac72727c8b11151e3362aee6096bf371b520bf2472ba527daa6b", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.78 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling gimli v0.25.0 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling is_ci v1.1.1 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling smawk v0.3.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling backtrace v0.3.61 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling term_size v0.3.2 [INFO] [stderr] Compiling owo-colors v2.1.0 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling supports-unicode v1.0.2 [INFO] [stderr] Compiling supports-hyperlinks v1.2.0 [INFO] [stderr] Compiling supports-color v1.3.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling object v0.26.2 [INFO] [stderr] Compiling addr2line v0.16.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling unicode-linebreak v0.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.29 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling miette-derive v3.2.0 [INFO] [stderr] Compiling typed-builder v0.9.1 [INFO] [stderr] Compiling textwrap v0.14.2 [INFO] [stderr] Compiling thiserror v1.0.29 [INFO] [stderr] Compiling miette v3.2.0 [INFO] [stderr] Compiling sandstorm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 39 | Operator::Asterisk => Precedence::Multiplicative, [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 40 | Operator::Slash => Precedence::Multiplicative, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 41 | Operator::Plus => Precedence::Additive, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 42 | Operator::Minus => Precedence::Additive, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ ...and 10 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_is` is never used [INFO] [stdout] --> src/lex.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn peek_is(&mut self, check: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_is`, `peek_precedence`, `peek_slice`, `parse_assign_statement`, and `get_ident` are never used [INFO] [stdout] --> src/parse.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 162 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 205 | fn peek_is(&self, check: TokenKind) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn peek_precedence(&self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn peek_slice(&mut self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn parse_assign_statement(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 806 | fn get_ident(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/checker.rs:1:72 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::{Expression, ExpressionKind, Statement, StatementKind, Type, TypeKind}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 39 | Operator::Asterisk => Precedence::Multiplicative, [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 40 | Operator::Slash => Precedence::Multiplicative, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 41 | Operator::Plus => Precedence::Additive, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 42 | Operator::Minus => Precedence::Additive, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ ...and 10 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut opts = Options::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_is` is never used [INFO] [stdout] --> src/lex.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn peek_is(&mut self, check: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_is`, `peek_precedence`, `peek_slice`, `parse_assign_statement`, and `get_ident` are never used [INFO] [stdout] --> src/parse.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 162 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 205 | fn peek_is(&self, check: TokenKind) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn peek_precedence(&self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn peek_slice(&mut self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn parse_assign_statement(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 806 | fn get_ident(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeEnv` is never constructed [INFO] [stdout] --> src/checker.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct TypeEnv { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_type`, and `get_type` are never used [INFO] [stdout] --> src/checker.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl TypeEnv { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 12 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn set_type(&mut self, key: String, t: TypeKind) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn get_type(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeError` is never used [INFO] [stdout] --> src/checker.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TypeError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypeResult` is never used [INFO] [stdout] --> src/checker.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | pub type TypeResult = Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeChecker` is never constructed [INFO] [stdout] --> src/checker.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | struct TypeChecker { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `check_statement`, and `check_expression` are never used [INFO] [stdout] --> src/checker.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl TypeChecker { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 68 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn check_statement(&mut self, stmt: Statement) -> TypeResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn check_expression(&mut self, expr: Expression) -> TypeResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.86s [INFO] running `Command { std: "docker" "inspect" "bf69b5dafc94ac72727c8b11151e3362aee6096bf371b520bf2472ba527daa6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf69b5dafc94ac72727c8b11151e3362aee6096bf371b520bf2472ba527daa6b", kill_on_drop: false }` [INFO] [stdout] bf69b5dafc94ac72727c8b11151e3362aee6096bf371b520bf2472ba527daa6b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 11b4115e0983d689e8e70a499af431b31753a796a35e0635467d58ee04c61e41 [INFO] running `Command { std: "docker" "start" "-a" "11b4115e0983d689e8e70a499af431b31753a796a35e0635467d58ee04c61e41", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling semver v1.0.4 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling plotters-backend v0.3.2 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling terminal_size v0.1.17 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling half v1.7.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling console v0.14.1 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling plotters-svg v0.3.1 [INFO] [stderr] Compiling oorandom v11.1.3 [INFO] [stderr] Compiling similar v1.3.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling plotters v0.3.1 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling object v0.26.2 [INFO] [stderr] Compiling bstr v0.2.17 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling serde_yaml v0.8.21 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling csv v1.1.6 [INFO] [stderr] Compiling criterion-plot v0.4.4 [INFO] [stderr] Compiling insta v1.8.0 [INFO] [stderr] Compiling backtrace v0.3.61 [INFO] [stderr] Compiling miette v3.2.0 [INFO] [stderr] Compiling criterion v0.3.5 [INFO] [stderr] Compiling sandstorm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 39 | Operator::Asterisk => Precedence::Multiplicative, [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 40 | Operator::Slash => Precedence::Multiplicative, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 41 | Operator::Plus => Precedence::Additive, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 42 | Operator::Minus => Precedence::Additive, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ ...and 10 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_is` is never used [INFO] [stdout] --> src/lex.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn peek_is(&mut self, check: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_is`, `peek_precedence`, `peek_slice`, `parse_assign_statement`, and `get_ident` are never used [INFO] [stdout] --> src/parse.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 162 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 205 | fn peek_is(&self, check: TokenKind) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn peek_precedence(&self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn peek_slice(&mut self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn parse_assign_statement(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 806 | fn get_ident(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/checker.rs:1:72 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::{Expression, ExpressionKind, Statement, StatementKind, Type, TypeKind}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 39 | Operator::Asterisk => Precedence::Multiplicative, [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 40 | Operator::Slash => Precedence::Multiplicative, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 41 | Operator::Plus => Precedence::Additive, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 42 | Operator::Minus => Precedence::Additive, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ ...and 10 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut opts = Options::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeEnv` is never constructed [INFO] [stdout] --> src/checker.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct TypeEnv { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_type`, and `get_type` are never used [INFO] [stdout] --> src/checker.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl TypeEnv { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 12 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn set_type(&mut self, key: String, t: TypeKind) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn get_type(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_is` is never used [INFO] [stdout] --> src/lex.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn peek_is(&mut self, check: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_is`, `peek_precedence`, `peek_slice`, `parse_assign_statement`, and `get_ident` are never used [INFO] [stdout] --> src/parse.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 162 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 205 | fn peek_is(&self, check: TokenKind) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn peek_precedence(&self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn peek_slice(&mut self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn parse_assign_statement(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 806 | fn get_ident(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeError` is never used [INFO] [stdout] --> src/checker.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TypeError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypeResult` is never used [INFO] [stdout] --> src/checker.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | pub type TypeResult = Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeChecker` is never constructed [INFO] [stdout] --> src/checker.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | struct TypeChecker { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `check_statement`, and `check_expression` are never used [INFO] [stdout] --> src/checker.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl TypeChecker { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 68 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn check_statement(&mut self, stmt: Statement) -> TypeResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn check_expression(&mut self, expr: Expression) -> TypeResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/checker.rs:1:72 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::{Expression, ExpressionKind, Statement, StatementKind, Type, TypeKind}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 39 | Operator::Asterisk => Precedence::Multiplicative, [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 40 | Operator::Slash => Precedence::Multiplicative, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 41 | Operator::Plus => Precedence::Additive, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 42 | Operator::Minus => Precedence::Additive, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ ...and 10 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut opts = Options::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/parse.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 39 | Operator::Asterisk => Precedence::Multiplicative, [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 40 | Operator::Slash => Precedence::Multiplicative, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 41 | Operator::Plus => Precedence::Additive, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 42 | Operator::Minus => Precedence::Additive, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 55 | _ => Precedence::Lowest, [INFO] [stdout] | ^ ...and 10 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeEnv` is never constructed [INFO] [stdout] --> src/checker.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct TypeEnv { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_type`, and `get_type` are never used [INFO] [stdout] --> src/checker.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl TypeEnv { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 12 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn set_type(&mut self, key: String, t: TypeKind) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn get_type(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeError` is never used [INFO] [stdout] --> src/checker.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TypeError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypeResult` is never used [INFO] [stdout] --> src/checker.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | pub type TypeResult = Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeChecker` is never constructed [INFO] [stdout] --> src/checker.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | struct TypeChecker { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `check_statement`, and `check_expression` are never used [INFO] [stdout] --> src/checker.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl TypeChecker { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 68 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn check_statement(&mut self, stmt: Statement) -> TypeResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn check_expression(&mut self, expr: Expression) -> TypeResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_is` is never used [INFO] [stdout] --> src/lex.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn peek_is(&mut self, check: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_is`, `peek_precedence`, `peek_slice`, `parse_assign_statement`, and `get_ident` are never used [INFO] [stdout] --> src/parse.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 162 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 205 | fn peek_is(&self, check: TokenKind) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn peek_precedence(&self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn peek_slice(&mut self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn parse_assign_statement(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 806 | fn get_ident(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_is` is never used [INFO] [stdout] --> src/lex.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn peek_is(&mut self, check: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_is`, `peek_precedence`, `peek_slice`, `parse_assign_statement`, and `get_ident` are never used [INFO] [stdout] --> src/parse.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 162 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 205 | fn peek_is(&self, check: TokenKind) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn peek_precedence(&self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn peek_slice(&mut self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn parse_assign_statement(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 806 | fn get_ident(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 21.99s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: criterion v0.3.5 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "11b4115e0983d689e8e70a499af431b31753a796a35e0635467d58ee04c61e41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11b4115e0983d689e8e70a499af431b31753a796a35e0635467d58ee04c61e41", kill_on_drop: false }` [INFO] [stdout] 11b4115e0983d689e8e70a499af431b31753a796a35e0635467d58ee04c61e41