[INFO] cloning repository https://github.com/ClementChambard/rust_parser_generator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ClementChambard/rust_parser_generator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FClementChambard%2Frust_parser_generator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FClementChambard%2Frust_parser_generator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 15aed8bee210742eed2cfe81beec66d1fc6ca976 [INFO] checking ClementChambard/rust_parser_generator against 895980e0290783bb09b1ccf1b11f14eb09b10430 for pr-160186 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FClementChambard%2Frust_parser_generator" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ClementChambard/rust_parser_generator [INFO] finished tweaking git repo https://github.com/ClementChambard/rust_parser_generator [INFO] tweaked toml for git repo https://github.com/ClementChambard/rust_parser_generator written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ClementChambard/rust_parser_generator on toolchain 895980e0290783bb09b1ccf1b11f14eb09b10430 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ClementChambard/rust_parser_generator 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" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] b8e60f28250742f5d9df77e20b93dbefec037ecb52242437ebff0e417d174ff5 [INFO] running `Command { std: "docker" "start" "b8e60f28250742f5d9df77e20b93dbefec037ecb52242437ebff0e417d174ff5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b8e60f28250742f5d9df77e20b93dbefec037ecb52242437ebff0e417d174ff5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b8e60f28250742f5d9df77e20b93dbefec037ecb52242437ebff0e417d174ff5" "/opt/rustwide/cargo-home/bin/cargo" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b8e60f28250742f5d9df77e20b93dbefec037ecb52242437ebff0e417d174ff5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b8e60f28250742f5d9df77e20b93dbefec037ecb52242437ebff0e417d174ff5" "/opt/rustwide/cargo-home/bin/cargo" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.9 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling nano_parser_gen_macro v0.2.1 (/opt/rustwide/workdir/nano_parser_gen_macro) [INFO] [stderr] Checking nano_parser_gen v0.2.1 (/opt/rustwide/workdir/nano_parser_gen) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> nano_parser_gen/src/lexer/source_file.rs:91:18 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn quote(&self, lines: Range) -> SourceQuote { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 91 | pub fn quote(&self, lines: Range) -> SourceQuote<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> nano_parser_gen/src/lexer/source_file.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn quote_line(&self, line: usize) -> SourceQuote { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn quote_line(&self, line: usize) -> SourceQuote<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TemplateRule` [INFO] [stdout] --> nano_parser_gen_macro/src/grammar/template/mod.rs:45:63 [INFO] [stdout] | [INFO] [stdout] 45 | Template, TemplateArg, TemplateDepend, TemplateParamType, TemplateRule, TemplateRuleItem, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> nano_parser_gen_macro/src/grammar/template/definition.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | TArg(usize, TemplateParamType), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TemplateArg` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 - TArg(usize, TemplateParamType), [INFO] [stdout] 18 + TArg(usize, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> nano_parser_gen_macro/src/grammar/template/definition.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | TArg(usize, TemplateParamType), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TemplateRuleItem` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 41 - TArg(usize, TemplateParamType), [INFO] [stdout] 41 + TArg(usize, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> nano_parser_gen_macro/src/grammar/template/definition.rs:151:11 [INFO] [stdout] | [INFO] [stdout] 146 | &'a self, [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 147 | args: Vec, [INFO] [stdout] 148 | templates: &'a [Template], [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] ... [INFO] [stdout] 151 | ) -> (TemplateInstance, Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ -- the same lifetime is named here [INFO] [stdout] | | [INFO] [stdout] | the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 151 | ) -> (TemplateInstance<'a>, Vec>) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rust_parser_generator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/example1/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BinOp` is never used [INFO] [stdout] --> src/example1/ast.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum BinOp { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UnOp` is never used [INFO] [stdout] --> src/example1/ast.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum UnOp { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expr` is never used [INFO] [stdout] --> src/example1/ast.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Param` is never used [INFO] [stdout] --> src/example1/ast.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum Param { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sub` is never constructed [INFO] [stdout] --> src/example1/ast.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Sub { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `flatten_bloc` is never used [INFO] [stdout] --> src/example1/ast.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn flatten_bloc(bloc: &[Instr]) -> (Vec, bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/example1/ast.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 140 | impl Sub { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 141 | pub fn new(name: String, params: Vec, bloc: Vec, max_offset: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ecl` is never constructed [INFO] [stdout] --> src/example1/ast.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct Ecl { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rank_label_spec` is never used [INFO] [stdout] --> src/example1/ast.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn rank_label_spec(s: String) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Instr` is never constructed [INFO] [stdout] --> src/example1/ast.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct Instr { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `none`, `bloc`, and `is_some` are never used [INFO] [stdout] --> src/example1/ast.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl Instr { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 191 | pub fn new(ty: InstrType, time: usize, diff: u8, i: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn none() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn bloc(b: Vec) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn is_some(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstrType` is never used [INFO] [stdout] --> src/example1/ast.rs:227:10 [INFO] [stdout] | [INFO] [stdout] 227 | pub enum InstrType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstrSub` is never used [INFO] [stdout] --> src/example1/parse/util.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum InstrSub { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BinExprPart` is never used [INFO] [stdout] --> src/example1/parse/util.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum BinExprPart { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `merge` and `chain` are never used [INFO] [stdout] --> src/example1/parse/util.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl BinExprPart { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 19 | pub fn merge(self, left: ast::Expr) -> ast::Expr { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn chain(self, left: ast::Expr, op: ast::BinOp) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Binding` is never constructed [INFO] [stdout] --> src/example1/parse/util.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Binding { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BindingT` is never used [INFO] [stdout] --> src/example1/parse/util.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum BindingT { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `use_it` is never used [INFO] [stdout] --> src/example1/parse/util.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl BindingT { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 49 | fn use_it(&mut self, i: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scope` is never constructed [INFO] [stdout] --> src/example1/parse/util.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Scope { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/example1/parse/util.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 73 | impl Scope { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 74 | fn check_duplicate(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn add_int(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn add_int_alloced(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn add_float(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn add_float_alloced(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn use_binding(&mut self, name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn assign_binding( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Label` is never constructed [INFO] [stdout] --> src/example1/parse/util.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | pub struct Label { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParserData` is never constructed [INFO] [stdout] --> src/example1/parse/util.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub struct ParserData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/example1/parse/util.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 199 | impl ParserData { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 200 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn add_label(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn add_int(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn add_int_alloced(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn add_float(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn add_float_alloced(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn use_binding(&mut self, name: String) -> ast::Expr { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn push_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn assign_binding(&mut self, name: &str, e: ast::Expr) -> ast::Instr { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn max_offset(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn pop_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/example2/parse.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | Str(String), [INFO] [stdout] | --- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 - Str(String), [INFO] [stdout] 3 + Str(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/example2/parse.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | Num(f64), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 - Num(f64), [INFO] [stdout] 4 + Num(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/example2/parse.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Bool(bool), [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Bool(bool), [INFO] [stdout] 5 + Bool(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/example2/parse.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | Array(Vec), [INFO] [stdout] | ----- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - Array(Vec), [INFO] [stdout] 7 + Array(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/example2/parse.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | Object(Vec<(String, Element)>), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 - Object(Vec<(String, Element)>), [INFO] [stdout] 8 + Object(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/example1/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BinOp` is never used [INFO] [stdout] --> src/example1/ast.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum BinOp { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UnOp` is never used [INFO] [stdout] --> src/example1/ast.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum UnOp { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expr` is never used [INFO] [stdout] --> src/example1/ast.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Param` is never used [INFO] [stdout] --> src/example1/ast.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum Param { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sub` is never constructed [INFO] [stdout] --> src/example1/ast.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Sub { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `flatten_bloc` is never used [INFO] [stdout] --> src/example1/ast.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn flatten_bloc(bloc: &[Instr]) -> (Vec, bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/example1/ast.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 140 | impl Sub { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 141 | pub fn new(name: String, params: Vec, bloc: Vec, max_offset: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ecl` is never constructed [INFO] [stdout] --> src/example1/ast.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct Ecl { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rank_label_spec` is never used [INFO] [stdout] --> src/example1/ast.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn rank_label_spec(s: String) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Instr` is never constructed [INFO] [stdout] --> src/example1/ast.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct Instr { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `none`, `bloc`, and `is_some` are never used [INFO] [stdout] --> src/example1/ast.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl Instr { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 191 | pub fn new(ty: InstrType, time: usize, diff: u8, i: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn none() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn bloc(b: Vec) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn is_some(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstrType` is never used [INFO] [stdout] --> src/example1/ast.rs:227:10 [INFO] [stdout] | [INFO] [stdout] 227 | pub enum InstrType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstrSub` is never used [INFO] [stdout] --> src/example1/parse/util.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum InstrSub { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BinExprPart` is never used [INFO] [stdout] --> src/example1/parse/util.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum BinExprPart { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `merge` and `chain` are never used [INFO] [stdout] --> src/example1/parse/util.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl BinExprPart { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 19 | pub fn merge(self, left: ast::Expr) -> ast::Expr { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn chain(self, left: ast::Expr, op: ast::BinOp) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Binding` is never constructed [INFO] [stdout] --> src/example1/parse/util.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Binding { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BindingT` is never used [INFO] [stdout] --> src/example1/parse/util.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum BindingT { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `use_it` is never used [INFO] [stdout] --> src/example1/parse/util.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl BindingT { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 49 | fn use_it(&mut self, i: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scope` is never constructed [INFO] [stdout] --> src/example1/parse/util.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Scope { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/example1/parse/util.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 73 | impl Scope { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 74 | fn check_duplicate(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn add_int(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn add_int_alloced(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn add_float(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn add_float_alloced(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn use_binding(&mut self, name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn assign_binding( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Label` is never constructed [INFO] [stdout] --> src/example1/parse/util.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | pub struct Label { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParserData` is never constructed [INFO] [stdout] --> src/example1/parse/util.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub struct ParserData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/example1/parse/util.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 199 | impl ParserData { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 200 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn add_label(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn add_int(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn add_int_alloced(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn add_float(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn add_float_alloced(&mut self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn use_binding(&mut self, name: String) -> ast::Expr { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn push_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn assign_binding(&mut self, name: &str, e: ast::Expr) -> ast::Instr { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn max_offset(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn pop_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/example2/parse.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | Str(String), [INFO] [stdout] | --- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 - Str(String), [INFO] [stdout] 3 + Str(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/example2/parse.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | Num(f64), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 - Num(f64), [INFO] [stdout] 4 + Num(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/example2/parse.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Bool(bool), [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Bool(bool), [INFO] [stdout] 5 + Bool(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/example2/parse.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | Array(Vec), [INFO] [stdout] | ----- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - Array(Vec), [INFO] [stdout] 7 + Array(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/example2/parse.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | Object(Vec<(String, Element)>), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 - Object(Vec<(String, Element)>), [INFO] [stdout] 8 + Object(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.99s [INFO] running `Command { std: "docker" "inspect" "b8e60f28250742f5d9df77e20b93dbefec037ecb52242437ebff0e417d174ff5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8e60f28250742f5d9df77e20b93dbefec037ecb52242437ebff0e417d174ff5", kill_on_drop: false }` [INFO] [stdout] b8e60f28250742f5d9df77e20b93dbefec037ecb52242437ebff0e417d174ff5