[INFO] cloning repository https://github.com/jack-t/contracts [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jack-t/contracts" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjack-t%2Fcontracts", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjack-t%2Fcontracts'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 04dad6684fe0f26bf352a77ed4b7c2fd1846c0ed [INFO] checking jack-t/contracts against master#368e2fd458a22d0cc133d0c254f2612ee999744f for pr-128351 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjack-t%2Fcontracts" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jack-t/contracts on toolchain 368e2fd458a22d0cc133d0c254f2612ee999744f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+368e2fd458a22d0cc133d0c254f2612ee999744f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jack-t/contracts [INFO] finished tweaking git repo https://github.com/jack-t/contracts [INFO] tweaked toml for git repo https://github.com/jack-t/contracts written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jack-t/contracts 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" "+368e2fd458a22d0cc133d0c254f2612ee999744f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+368e2fd458a22d0cc133d0c254f2612ee999744f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 506cb74f62e29da05298b08bb5dc93ca0c14d9cb4542f10497a59232eb40bd4c [INFO] running `Command { std: "docker" "start" "-a" "506cb74f62e29da05298b08bb5dc93ca0c14d9cb4542f10497a59232eb40bd4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "506cb74f62e29da05298b08bb5dc93ca0c14d9cb4542f10497a59232eb40bd4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "506cb74f62e29da05298b08bb5dc93ca0c14d9cb4542f10497a59232eb40bd4c", kill_on_drop: false }` [INFO] [stdout] 506cb74f62e29da05298b08bb5dc93ca0c14d9cb4542f10497a59232eb40bd4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+368e2fd458a22d0cc133d0c254f2612ee999744f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 159de5aaf44a220180a5b829ade8a0e3c133ae9bf4bc0be8696884ac0775201f [INFO] running `Command { std: "docker" "start" "-a" "159de5aaf44a220180a5b829ade8a0e3c133ae9bf4bc0be8696884ac0775201f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.45 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking contracts v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `regex` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use regex; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parse/tree.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/parse/mod.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | if (is_bin_op(tokens.front())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 160 - if (is_bin_op(tokens.front())) { [INFO] [stdout] 160 + if is_bin_op(tokens.front()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/parse/mod.rs:183:20 [INFO] [stdout] | [INFO] [stdout] 183 | if (expect_expr) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - if (expect_expr) { [INFO] [stdout] 183 + if expect_expr { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/run/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lex/mod.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 47 | type TokenProducer = Fn(&str) -> Option<(Token, usize)>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 47 | type TokenProducer = dyn Fn(&str) -> Option<(Token, usize)>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/run/types.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | constraints: Vec>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | constraints: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use regex; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parse/tree.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/parse/mod.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | if (is_bin_op(tokens.front())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 160 - if (is_bin_op(tokens.front())) { [INFO] [stdout] 160 + if is_bin_op(tokens.front()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/parse/mod.rs:183:20 [INFO] [stdout] | [INFO] [stdout] 183 | if (expect_expr) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - if (expect_expr) { [INFO] [stdout] 183 + if expect_expr { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/run/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lex/mod.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 47 | type TokenProducer = Fn(&str) -> Option<(Token, usize)>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 47 | type TokenProducer = dyn Fn(&str) -> Option<(Token, usize)>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/run/types.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | constraints: Vec>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | constraints: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/run/types.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | fn assign(t: Type) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/parse/mod.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn parse(mut tokens: VecDeque) -> Statement { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_statement` is never used [INFO] [stdout] --> src/parse/mod.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn parse_statement(tokens: &mut VecDeque) -> Statement { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_statement_expr` is never used [INFO] [stdout] --> src/parse/mod.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn parse_statement_expr(tokens: &mut VecDeque) -> Statement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_block` is never used [INFO] [stdout] --> src/parse/mod.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn parse_block(tokens: &mut VecDeque) -> Statement { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_series` is never used [INFO] [stdout] --> src/parse/mod.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn parse_series(tokens: &mut VecDeque) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_fn_decl` is never used [INFO] [stdout] --> src/parse/mod.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn parse_fn_decl(tokens: &mut VecDeque) -> Statement { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_if` is never used [INFO] [stdout] --> src/parse/mod.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn parse_if(tokens: &mut VecDeque) -> Statement { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_expression` is never used [INFO] [stdout] --> src/parse/mod.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | fn parse_expression(tokens: &mut VecDeque) -> Expression { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_assignment` is never used [INFO] [stdout] --> src/parse/mod.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn parse_assignment(tokens: &mut VecDeque) -> Expression { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_rvalue` is never used [INFO] [stdout] --> src/parse/mod.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn parse_rvalue(tokens: &mut VecDeque) -> Expression { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_id_expr` is never used [INFO] [stdout] --> src/parse/mod.rs:175:4 [INFO] [stdout] | [INFO] [stdout] 175 | fn parse_id_expr(name: String, tokens: &mut VecDeque) -> Expression { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_var_ref` is never used [INFO] [stdout] --> src/parse/mod.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn build_var_ref(tok: Token) -> Expression { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_bin_op` is never used [INFO] [stdout] --> src/parse/mod.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | fn is_bin_op(tok: Option<&Token>) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_tok_is` is never used [INFO] [stdout] --> src/parse/mod.rs:232:4 [INFO] [stdout] | [INFO] [stdout] 232 | fn next_tok_is(tokens: &mut VecDeque, tok: Token) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/parse/tree.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Expression { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 6 | Assignment { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | Variable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | Int { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | Str { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | Dec { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | Char { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | FunctionCall { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | Binary { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Expression`, `Conditional`, `Block`, `FuncDecl`, and `NoOp` are never constructed [INFO] [stdout] --> src/parse/tree.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum Statement { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 38 | Expression { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | Conditional { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | FuncDecl { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | NoOp, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Value` is never used [INFO] [stdout] --> src/run/types.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum Value { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Type` is never constructed [INFO] [stdout] --> src/run/types.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `assign` is never used [INFO] [stdout] --> src/run/types.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | impl Type { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | fn assign(t: Type) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeError` is never constructed [INFO] [stdout] --> src/run/types.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct TypeError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/run/types.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | type Result = std::result::Result; // have to fully spec name to avoid circular reference [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Constraint` is never used [INFO] [stdout] --> src/run/types.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | trait Constraint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parse/mod.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | let mut toks = VecDeque::from(vec![ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parse/mod.rs:484:13 [INFO] [stdout] | [INFO] [stdout] 484 | let mut toks = VecDeque::from(vec![]); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parse/mod.rs:491:13 [INFO] [stdout] | [INFO] [stdout] 491 | let mut toks = VecDeque::from(vec![Token::Semicolon]); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parse/mod.rs:609:13 [INFO] [stdout] | [INFO] [stdout] 609 | let mut toks = VecDeque::from(vec![ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parse/mod.rs:633:13 [INFO] [stdout] | [INFO] [stdout] 633 | let mut toks = VecDeque::from(vec![ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/run/types.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | fn assign(t: Type) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Str`, `Dec`, and `Char` are never constructed [INFO] [stdout] --> src/parse/tree.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Expression { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | Str { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | Dec { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | Char { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Value` is never used [INFO] [stdout] --> src/run/types.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum Value { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Type` is never constructed [INFO] [stdout] --> src/run/types.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `assign` is never used [INFO] [stdout] --> src/run/types.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | impl Type { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | fn assign(t: Type) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeError` is never constructed [INFO] [stdout] --> src/run/types.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct TypeError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/run/types.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | type Result = std::result::Result; // have to fully spec name to avoid circular reference [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Constraint` is never used [INFO] [stdout] --> src/run/types.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | trait Constraint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.96s [INFO] running `Command { std: "docker" "inspect" "159de5aaf44a220180a5b829ade8a0e3c133ae9bf4bc0be8696884ac0775201f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "159de5aaf44a220180a5b829ade8a0e3c133ae9bf4bc0be8696884ac0775201f", kill_on_drop: false }` [INFO] [stdout] 159de5aaf44a220180a5b829ade8a0e3c133ae9bf4bc0be8696884ac0775201f