[INFO] cloning repository https://github.com/jjszaniszlo/jace [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jjszaniszlo/jace" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjjszaniszlo%2Fjace", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjjszaniszlo%2Fjace'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2f3ead847e36281fe75c47a48b9cd98a3859a4d8 [INFO] checking jjszaniszlo/jace against try#409ef99a7d4dc96ae91f65d4b48413ed174514d6 for pr-137633 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjjszaniszlo%2Fjace" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jjszaniszlo/jace on toolchain 409ef99a7d4dc96ae91f65d4b48413ed174514d6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jjszaniszlo/jace [INFO] finished tweaking git repo https://github.com/jjszaniszlo/jace [INFO] tweaked toml for git repo https://github.com/jjszaniszlo/jace written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jjszaniszlo/jace 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" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6725590819f0fd8c2febe72bfa404ce6c2ff4a13853ab1b982e85b197459579d [INFO] running `Command { std: "docker" "start" "-a" "6725590819f0fd8c2febe72bfa404ce6c2ff4a13853ab1b982e85b197459579d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6725590819f0fd8c2febe72bfa404ce6c2ff4a13853ab1b982e85b197459579d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6725590819f0fd8c2febe72bfa404ce6c2ff4a13853ab1b982e85b197459579d", kill_on_drop: false }` [INFO] [stdout] 6725590819f0fd8c2febe72bfa404ce6c2ff4a13853ab1b982e85b197459579d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a675fd02b9de0660ebdcb30de9c0968bcc9a31a6f7599176439322e2e9cf484f [INFO] running `Command { std: "docker" "start" "-a" "a675fd02b9de0660ebdcb30de9c0968bcc9a31a6f7599176439322e2e9cf484f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling env_home v0.1.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Checking gimli v0.31.1 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Compiling cc v1.2.12 [INFO] [stderr] Checking miniz_oxide v0.8.3 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling owo-colors v4.1.0 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Checking unicode-linebreak v0.1.5 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking is_ci v1.2.0 [INFO] [stderr] Checking bstr v1.11.3 [INFO] [stderr] Checking supports-color v3.0.2 [INFO] [stderr] Checking clap_builder v4.5.27 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking textwrap v0.16.1 [INFO] [stderr] Checking supports-hyperlinks v3.1.0 [INFO] [stderr] Checking rustc-hash v2.1.1 [INFO] [stderr] Checking supports-unicode v3.0.0 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling lua-src v547.0.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking terminal_size v0.4.1 [INFO] [stderr] Compiling which v7.0.2 [INFO] [stderr] Compiling luajit-src v210.5.12+a4f56a4 [INFO] [stderr] Checking addr2line v0.24.2 [INFO] [stderr] Compiling mlua-sys v0.6.7 [INFO] [stderr] Checking backtrace v0.3.74 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling miette-derive v7.5.0 [INFO] [stderr] Checking backtrace-ext v0.2.1 [INFO] [stderr] Checking miette v7.5.0 [INFO] [stderr] Checking clap v4.5.28 [INFO] [stderr] Checking mlua v0.10.3 [INFO] [stderr] Checking jace v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Sub` [INFO] [stdout] --> src/err.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Sub; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SourceOffset` [INFO] [stdout] --> src/err.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use miette::{SourceOffset, SourceSpan}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/jace_file.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/parser/expr.rs:249:33 [INFO] [stdout] | [INFO] [stdout] 249 | parse_identifier().map(|(i), span| Expr::IdentExpr(i, span)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 249 - parse_identifier().map(|(i), span| Expr::IdentExpr(i, span)), [INFO] [stdout] 249 + parse_identifier().map(|i, span| Expr::IdentExpr(i, span)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/parser/def.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | .map(|(defs), span| Module(defs, span)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - .map(|(defs), span| Module(defs, span)) [INFO] [stdout] 14 + .map(|defs, span| Module(defs, span)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/parser/def.rs:64:49 [INFO] [stdout] | [INFO] [stdout] 64 | parse_fn_type_params().map(|(params), span| TypeParam::Tuple(params, span)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - parse_fn_type_params().map(|(params), span| TypeParam::Tuple(params, span)), [INFO] [stdout] 64 + parse_fn_type_params().map(|params, span| TypeParam::Tuple(params, span)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `parser::ast::*` and `parser::parser::*` [INFO] [stdout] --> src/parser/mod.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | pub use crate::{parser::ast::*, parser::parser::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::Parser` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use clap::Parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cli::Cli` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use cli::Cli; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cli::Command` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use cli::Command; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::prelude::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::parser::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Sub` [INFO] [stdout] --> src/err.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Sub; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SourceOffset` [INFO] [stdout] --> src/err.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use miette::{SourceOffset, SourceSpan}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/jace_file.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/parser/expr.rs:249:33 [INFO] [stdout] | [INFO] [stdout] 249 | parse_identifier().map(|(i), span| Expr::IdentExpr(i, span)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 249 - parse_identifier().map(|(i), span| Expr::IdentExpr(i, span)), [INFO] [stdout] 249 + parse_identifier().map(|i, span| Expr::IdentExpr(i, span)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/parser/def.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | .map(|(defs), span| Module(defs, span)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - .map(|(defs), span| Module(defs, span)) [INFO] [stdout] 14 + .map(|defs, span| Module(defs, span)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/parser/def.rs:64:49 [INFO] [stdout] | [INFO] [stdout] 64 | parse_fn_type_params().map(|(params), span| TypeParam::Tuple(params, span)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - parse_fn_type_params().map(|(params), span| TypeParam::Tuple(params, span)), [INFO] [stdout] 64 + parse_fn_type_params().map(|params, span| TypeParam::Tuple(params, span)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `parser::ast::*` and `parser::parser::*` [INFO] [stdout] --> src/parser/mod.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | pub use crate::{parser::ast::*, parser::parser::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::Parser` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use clap::Parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cli::Cli` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use cli::Cli; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cli::Command` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use cli::Command; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::prelude::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::parser::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err1` [INFO] [stdout] --> src/parser/combinator.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | Err(err1) => match p2.parse(input) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_err1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err1` [INFO] [stdout] --> src/parser/combinator.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | Err(err1) => match p2.parse(input) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_err1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lexer/lexer.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | let bytes = operator.len(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/lexer/lexer.rs:275:18 [INFO] [stdout] | [INFO] [stdout] 275 | Some(c @ ('=' | '!' | '<' | '>' | '+' | '-' | '/' | '*')) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lexer/lexer.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | let bytes = operator.len(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/lexer/lexer.rs:275:18 [INFO] [stdout] | [INFO] [stdout] 275 | Some(c @ ('=' | '!' | '<' | '>' | '+' | '-' | '/' | '*')) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | _ => {}, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 44 | Ok((r, t, _)) => println!("{t:#?}"), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 45 | Err(e) => [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 46 | println!("{:?}", e.with_source_code(jcf.contents())), [INFO] [stdout] 47 | _ => {}, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | Ok((r, t, _)) => println!("{t:#?}"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut lexer = Lexer::new(jcf).into_iter(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let file_name = path.file_stem().unwrap().to_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compiler_pipeline` is never used [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn compiler_pipeline(path: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_maybe` is never used [INFO] [stdout] --> src/err.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn error_maybe(v: Result, msg: String) -> T { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JaceFileMap` is never constructed [INFO] [stdout] --> src/jace_file.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct JaceFileMap<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, and `get` are never used [INFO] [stdout] --> src/jace_file.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl<'a> JaceFileMap<'a> { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 56 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn add(&mut self, jace_file: JaceFile<'a>) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn get(&self, id: usize) -> Option<&JaceFile> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bool`, `integer`, `float`, and `identifier` are never used [INFO] [stdout] --> src/lexer/token.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 93 | impl TokenKind { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 94 | pub fn bool(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn integer(self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn float(self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn identifier(self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ModuleDef` is never constructed [INFO] [stdout] --> src/parser/ast.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum Def { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 42 | ModuleDef(String, Span), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Def` 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 `Exp` is never constructed [INFO] [stdout] --> src/parser/ast.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub enum MethodOperator { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 85 | Exp, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MethodOperator` 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: variants `UnaryOp` and `TypeConstructor` are never constructed [INFO] [stdout] --> src/parser/ast.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 111 | UnaryOp(UnaryOperator, P, Span), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | TypeConstructor(Identifier, Vec, Span), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: variants `Negative` and `Not` are never constructed [INFO] [stdout] --> src/parser/ast.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 178 | pub enum UnaryOperator { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 179 | Negative, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 180 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOperator` 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: methods `input`, `out`, and `span` are never used [INFO] [stdout] --> src/parser/parser.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait POut<'a, Out> { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 9 | fn err(err: ParserError) -> Self; [INFO] [stdout] 10 | fn input(self) -> Option<&'a [Token]>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | fn out(self) -> Option; [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | fn span(self) -> Option; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `and_then` is never used [INFO] [stdout] --> src/parser/parser.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait Parser<'a, Out> { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 46 | fn and_then(self, f: Func) -> BoxedParser<'a, NewOut> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `and_then` is never used [INFO] [stdout] --> src/parser/combinator.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn and_then<'a, P, F, A, B, NextP>(parser: P, f: F) -> impl Parser<'a, B> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `terminated` is never used [INFO] [stdout] --> src/parser/combinator.rs:185:8 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn terminated<'a, P, A>(parser_take: P, parser_terminator: P) -> impl Parser<'a, A> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `unexpected_eof` is never used [INFO] [stdout] --> src/parser/error.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl ParserError { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 36 | pub fn unexpected_eof() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_unary_op` is never used [INFO] [stdout] --> src/parser/expr.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn parse_unary_op(input: &[Token]) -> Output { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_unary_operator_from_token` is never used [INFO] [stdout] --> src/parser/expr.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn parse_unary_operator_from_token(input: &[Token]) -> Output { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_type_union_member` is never used [INFO] [stdout] --> src/parser/def.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn parse_type_union_member<'a>() -> impl Parser<'a, (Identifier, Option)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_class_method_type_params` is never used [INFO] [stdout] --> src/parser/def.rs:279:8 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn parse_class_method_type_params<'a>() -> impl Parser<'a, Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeCheckerError` is never used [INFO] [stdout] --> src/typecheck/mod.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TypeCheckerError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | _ => {}, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 44 | Ok((r, t, _)) => println!("{t:#?}"), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 45 | Err(e) => [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 46 | println!("{:?}", e.with_source_code(jcf.contents())), [INFO] [stdout] 47 | _ => {}, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | Ok((r, t, _)) => println!("{t:#?}"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut lexer = Lexer::new(jcf).into_iter(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let file_name = path.file_stem().unwrap().to_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compiler_pipeline` is never used [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn compiler_pipeline(path: PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_maybe` is never used [INFO] [stdout] --> src/err.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn error_maybe(v: Result, msg: String) -> T { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JaceFileMap` is never constructed [INFO] [stdout] --> src/jace_file.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct JaceFileMap<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, and `get` are never used [INFO] [stdout] --> src/jace_file.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl<'a> JaceFileMap<'a> { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 56 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn add(&mut self, jace_file: JaceFile<'a>) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn get(&self, id: usize) -> Option<&JaceFile> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bool`, `integer`, `float`, and `identifier` are never used [INFO] [stdout] --> src/lexer/token.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 93 | impl TokenKind { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 94 | pub fn bool(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn integer(self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn float(self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn identifier(self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ModuleDef` is never constructed [INFO] [stdout] --> src/parser/ast.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum Def { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 42 | ModuleDef(String, Span), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Def` 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 `Exp` is never constructed [INFO] [stdout] --> src/parser/ast.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub enum MethodOperator { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 85 | Exp, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MethodOperator` 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: variants `UnaryOp` and `TypeConstructor` are never constructed [INFO] [stdout] --> src/parser/ast.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 111 | UnaryOp(UnaryOperator, P, Span), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | TypeConstructor(Identifier, Vec, Span), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: variants `Negative` and `Not` are never constructed [INFO] [stdout] --> src/parser/ast.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 178 | pub enum UnaryOperator { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 179 | Negative, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 180 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOperator` 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: methods `input`, `out`, and `span` are never used [INFO] [stdout] --> src/parser/parser.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait POut<'a, Out> { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 9 | fn err(err: ParserError) -> Self; [INFO] [stdout] 10 | fn input(self) -> Option<&'a [Token]>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | fn out(self) -> Option; [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | fn span(self) -> Option; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `and_then` is never used [INFO] [stdout] --> src/parser/parser.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait Parser<'a, Out> { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 46 | fn and_then(self, f: Func) -> BoxedParser<'a, NewOut> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `and_then` is never used [INFO] [stdout] --> src/parser/combinator.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn and_then<'a, P, F, A, B, NextP>(parser: P, f: F) -> impl Parser<'a, B> [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `terminated` is never used [INFO] [stdout] --> src/parser/combinator.rs:185:8 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn terminated<'a, P, A>(parser_take: P, parser_terminator: P) -> impl Parser<'a, A> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `unexpected_eof` is never used [INFO] [stdout] --> src/parser/error.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl ParserError { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 36 | pub fn unexpected_eof() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_unary_op` is never used [INFO] [stdout] --> src/parser/expr.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn parse_unary_op(input: &[Token]) -> Output { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_unary_operator_from_token` is never used [INFO] [stdout] --> src/parser/expr.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn parse_unary_operator_from_token(input: &[Token]) -> Output { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_type_union_member` is never used [INFO] [stdout] --> src/parser/def.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn parse_type_union_member<'a>() -> impl Parser<'a, (Identifier, Option)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_class_method_type_params` is never used [INFO] [stdout] --> src/parser/def.rs:279:8 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn parse_class_method_type_params<'a>() -> impl Parser<'a, Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeCheckerError` is never used [INFO] [stdout] --> src/typecheck/mod.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TypeCheckerError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.02s [INFO] running `Command { std: "docker" "inspect" "a675fd02b9de0660ebdcb30de9c0968bcc9a31a6f7599176439322e2e9cf484f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a675fd02b9de0660ebdcb30de9c0968bcc9a31a6f7599176439322e2e9cf484f", kill_on_drop: false }` [INFO] [stdout] a675fd02b9de0660ebdcb30de9c0968bcc9a31a6f7599176439322e2e9cf484f