[INFO] cloning repository https://github.com/mmaloney-sf/firrtlizer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mmaloney-sf/firrtlizer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmaloney-sf%2Ffirrtlizer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmaloney-sf%2Ffirrtlizer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a3d5e4a3f63c418d0aab9ff9dbd35a56024b1963 [INFO] building mmaloney-sf/firrtlizer against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmaloney-sf%2Ffirrtlizer" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mmaloney-sf/firrtlizer [INFO] finished tweaking git repo https://github.com/mmaloney-sf/firrtlizer [INFO] tweaked toml for git repo https://github.com/mmaloney-sf/firrtlizer written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mmaloney-sf/firrtlizer on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mmaloney-sf/firrtlizer 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded logos-derive v0.15.0 [INFO] [stderr] Downloaded logos-codegen v0.15.0 [INFO] [stderr] Downloaded libc v0.2.173 [INFO] [stderr] Downloaded logos v0.15.0 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d1acb34361fa38c81b97c9b06ef1fa228b667df1174730f4f78078eeccb833e3 [INFO] running `Command { std: "docker" "start" "-a" "d1acb34361fa38c81b97c9b06ef1fa228b667df1174730f4f78078eeccb833e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d1acb34361fa38c81b97c9b06ef1fa228b667df1174730f4f78078eeccb833e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1acb34361fa38c81b97c9b06ef1fa228b667df1174730f4f78078eeccb833e3", kill_on_drop: false }` [INFO] [stdout] d1acb34361fa38c81b97c9b06ef1fa228b667df1174730f4f78078eeccb833e3 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2343104ec8ec005ec72ba1574b0cbef1df1c96d96adb5b6add48d6176dc7ac6 [INFO] running `Command { std: "docker" "start" "-a" "d2343104ec8ec005ec72ba1574b0cbef1df1c96d96adb5b6add48d6176dc7ac6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling libc v0.2.173 [INFO] [stderr] Compiling logos-codegen v0.15.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling syn v2.0.103 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling term v1.0.2 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling keccak v0.1.5 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling fixedbitset v0.5.7 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling petgraph v0.7.1 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling ascii-canvas v4.0.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling lalrpop-util v0.22.2 [INFO] [stderr] Compiling lalrpop v0.22.2 [INFO] [stderr] Compiling tracing-attributes v0.1.29 [INFO] [stderr] Compiling logos-derive v0.15.0 [INFO] [stderr] Compiling logos v0.15.0 [INFO] [stderr] Compiling tokenizer v0.1.0 (/opt/rustwide/workdir/tokenizer) [INFO] [stdout] warning: unused import: `logos::Filter` [INFO] [stdout] --> tokenizer/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use logos::Filter; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Skip` [INFO] [stdout] --> tokenizer/src/lib.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use logos::{Lexer, Logos, Skip}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> tokenizer/src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> tokenizer/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stdout] warning: unused variable: `lex` [INFO] [stdout] --> tokenizer/src/lib.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | fn word_callback(lex: &mut Lexer) -> (usize, usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tokenizer/src/lib.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | let mut lex = LexToken::lexer(s); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `word_callback` is never used [INFO] [stdout] --> tokenizer/src/lib.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn word_callback(lex: &mut Lexer) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> tokenizer/src/lib.rs:261:19 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn new(s: &str) -> FirrtlLexer { [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] 261 | pub fn new(s: &str) -> FirrtlLexer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling parsing v0.1.0 (/opt/rustwide/workdir/parsing) [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> parsing/src/grammar.rs:409:21 [INFO] [stdout] | [INFO] [stdout] 409 | for (index, symbol) in self.symbols.iter().enumerate() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> parsing/src/lr0.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | let mut actions = actions.get_mut(&(src_state_index, Some(symbol))).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> parsing/src/lr0.rs:129:33 [INFO] [stdout] | [INFO] [stdout] 129 | ... let mut actions = actions.get_mut(&(src_state_index, Some(symbol))).unwrap(); [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] --> parsing/src/lr0.rs:134:29 [INFO] [stdout] | [INFO] [stdout] 134 | let mut actions = actions.get_mut(&(src_state_index, None)).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> parsing/src/lr0.rs:278:17 [INFO] [stdout] | [INFO] [stdout] 278 | let mut i = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `insert` is never used [INFO] [stdout] --> parsing/src/grammar.rs:326:19 [INFO] [stdout] | [INFO] [stdout] 312 | impl<'a> ItemSet<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 326 | pub(crate) fn insert(&mut self, item: Item<'a>) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> parsing/src/lr0.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Node<'a>(Rc>); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeData` is never constructed [INFO] [stdout] --> parsing/src/lr0.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct NodeData<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `state`, `symbol`, and `actions` are never read [INFO] [stdout] --> parsing/src/lr0.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct Conflict<'a> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 183 | state: StateIndex, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 184 | symbol: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 185 | actions: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Conflict` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> parsing/src/grammar.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | write!(f, "{lhs} ->"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 247 | let _ = write!(f, "{lhs} ->"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:403:23 [INFO] [stdout] | [INFO] [stdout] 403 | pub fn start_rule(&self) -> Rule { [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] 403 | pub fn start_rule(&self) -> Rule<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:407:20 [INFO] [stdout] | [INFO] [stdout] 407 | pub fn symbols(&self) -> Vec { [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] 407 | pub fn symbols(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:418:22 [INFO] [stdout] | [INFO] [stdout] 418 | pub fn terminals(&self) -> Vec { [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] 418 | pub fn terminals(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:422:25 [INFO] [stdout] | [INFO] [stdout] 422 | pub fn nonterminals(&self) -> Vec { [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] 422 | pub fn nonterminals(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:426:19 [INFO] [stdout] | [INFO] [stdout] 426 | pub fn symbol(&self, name: &str) -> Option { [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] 426 | pub fn symbol(&self, name: &str) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:439:18 [INFO] [stdout] | [INFO] [stdout] 439 | pub fn rules(&self) -> Vec { [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] 439 | pub fn rules(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:457:22 [INFO] [stdout] | [INFO] [stdout] 457 | pub fn nullables(&self) -> HashSet { [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] 457 | pub fn nullables(&self) -> HashSet> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:479:26 [INFO] [stdout] | [INFO] [stdout] 479 | pub fn first_follows(&self) -> FirstFollows { [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] 479 | pub fn first_follows(&self) -> FirstFollows<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/lr0.rs:154:22 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn conflicts(&self) -> Vec { [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] 154 | pub fn conflicts(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, `any::Any`, `ops::Deref`, and `rc::Rc` [INFO] [stdout] --> parsing/src/main.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{any::Any, collections::{HashMap, HashSet}, ops::Deref, rc::Rc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lex` [INFO] [stdout] --> parsing/src/main.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let lex = tokenizer::FirrtlLexer::new(&source); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling metagrammar v0.1.0 (/opt/rustwide/workdir/metagrammar) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> metagrammar/src/main.rs:486:25 [INFO] [stdout] | [INFO] [stdout] 483 | tokenizer::LexToken::KwAsClock => r#""asClock""#, [INFO] [stdout] | ------------------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 486 | tokenizer::LexToken::KwAsClock => r#""asClock""#, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> metagrammar/src/main.rs:489:25 [INFO] [stdout] | [INFO] [stdout] 487 | tokenizer::LexToken::KwAsAsyncReset => r#""asAsyncReset""#, [INFO] [stdout] | ----------------------------------- matches all the relevant values [INFO] [stdout] 488 | tokenizer::LexToken::KwCvt => r#""cvt""#, [INFO] [stdout] 489 | tokenizer::LexToken::KwAsAsyncReset => r#""asAsyncReset""#, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es` [INFO] [stdout] --> metagrammar/src/main.rs:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | SymbolExpr::Seq(es) => vec![self.clone()], [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_es` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> metagrammar/src/main.rs:120:31 [INFO] [stdout] | [INFO] [stdout] 120 | SymbolExpr::Group(e) => true, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es` [INFO] [stdout] --> metagrammar/src/main.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | SymbolExpr::Alt(es) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_es` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> metagrammar/src/main.rs:227:58 [INFO] [stdout] | [INFO] [stdout] 227 | lalrpop_util::ParseError::InvalidToken { location } => todo!(), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `location: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> metagrammar/src/main.rs:228:61 [INFO] [stdout] | [INFO] [stdout] 228 | lalrpop_util::ParseError::UnrecognizedEof { location, expected } => todo!(), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `location: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> metagrammar/src/main.rs:228:71 [INFO] [stdout] | [INFO] [stdout] 228 | lalrpop_util::ParseError::UnrecognizedEof { location, expected } => todo!(), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `expected: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> metagrammar/src/main.rs:229:70 [INFO] [stdout] | [INFO] [stdout] 229 | lalrpop_util::ParseError::UnrecognizedToken { token, expected } => { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `expected: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> metagrammar/src/main.rs:235:56 [INFO] [stdout] | [INFO] [stdout] 235 | lalrpop_util::ParseError::ExtraToken { token } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> metagrammar/src/main.rs:236:50 [INFO] [stdout] | [INFO] [stdout] 236 | lalrpop_util::ParseError::User { error } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `error: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s [INFO] running `Command { std: "docker" "inspect" "d2343104ec8ec005ec72ba1574b0cbef1df1c96d96adb5b6add48d6176dc7ac6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2343104ec8ec005ec72ba1574b0cbef1df1c96d96adb5b6add48d6176dc7ac6", kill_on_drop: false }` [INFO] [stdout] d2343104ec8ec005ec72ba1574b0cbef1df1c96d96adb5b6add48d6176dc7ac6 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac57deed6cf813dc93eb46eed4a033559def06fd2f1ec1bcd40e1862dd2edb1c [INFO] running `Command { std: "docker" "start" "-a" "ac57deed6cf813dc93eb46eed4a033559def06fd2f1ec1bcd40e1862dd2edb1c", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `logos::Filter` [INFO] [stdout] --> tokenizer/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use logos::Filter; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Skip` [INFO] [stdout] --> tokenizer/src/lib.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use logos::{Lexer, Logos, Skip}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> tokenizer/src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> tokenizer/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lex` [INFO] [stdout] --> tokenizer/src/lib.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | fn word_callback(lex: &mut Lexer) -> (usize, usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tokenizer/src/lib.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | let mut lex = LexToken::lexer(s); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `word_callback` is never used [INFO] [stdout] --> tokenizer/src/lib.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn word_callback(lex: &mut Lexer) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> tokenizer/src/lib.rs:261:19 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn new(s: &str) -> FirrtlLexer { [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] 261 | pub fn new(s: &str) -> FirrtlLexer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> parsing/src/grammar.rs:409:21 [INFO] [stdout] | [INFO] [stdout] 409 | for (index, symbol) in self.symbols.iter().enumerate() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> parsing/src/lr0.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | let mut actions = actions.get_mut(&(src_state_index, Some(symbol))).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> parsing/src/lr0.rs:129:33 [INFO] [stdout] | [INFO] [stdout] 129 | ... let mut actions = actions.get_mut(&(src_state_index, Some(symbol))).unwrap(); [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] --> parsing/src/lr0.rs:134:29 [INFO] [stdout] | [INFO] [stdout] 134 | let mut actions = actions.get_mut(&(src_state_index, None)).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> parsing/src/lr0.rs:278:17 [INFO] [stdout] | [INFO] [stdout] 278 | let mut i = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `insert` is never used [INFO] [stdout] --> parsing/src/grammar.rs:326:19 [INFO] [stdout] | [INFO] [stdout] 312 | impl<'a> ItemSet<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 326 | pub(crate) fn insert(&mut self, item: Item<'a>) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> parsing/src/lr0.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Node<'a>(Rc>); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeData` is never constructed [INFO] [stdout] --> parsing/src/lr0.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct NodeData<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `state`, `symbol`, and `actions` are never read [INFO] [stdout] --> parsing/src/lr0.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct Conflict<'a> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 183 | state: StateIndex, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 184 | symbol: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 185 | actions: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Conflict` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> parsing/src/grammar.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | write!(f, "{lhs} ->"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 247 | let _ = write!(f, "{lhs} ->"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:403:23 [INFO] [stdout] | [INFO] [stdout] 403 | pub fn start_rule(&self) -> Rule { [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] 403 | pub fn start_rule(&self) -> Rule<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:407:20 [INFO] [stdout] | [INFO] [stdout] 407 | pub fn symbols(&self) -> Vec { [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] 407 | pub fn symbols(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:418:22 [INFO] [stdout] | [INFO] [stdout] 418 | pub fn terminals(&self) -> Vec { [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] 418 | pub fn terminals(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:422:25 [INFO] [stdout] | [INFO] [stdout] 422 | pub fn nonterminals(&self) -> Vec { [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] 422 | pub fn nonterminals(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:426:19 [INFO] [stdout] | [INFO] [stdout] 426 | pub fn symbol(&self, name: &str) -> Option { [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] 426 | pub fn symbol(&self, name: &str) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling parsing v0.1.0 (/opt/rustwide/workdir/parsing) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:439:18 [INFO] [stdout] | [INFO] [stdout] 439 | pub fn rules(&self) -> Vec { [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] 439 | pub fn rules(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tokenizer v0.1.0 (/opt/rustwide/workdir/tokenizer) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:457:22 [INFO] [stdout] | [INFO] [stdout] 457 | pub fn nullables(&self) -> HashSet { [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] 457 | pub fn nullables(&self) -> HashSet> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:479:26 [INFO] [stdout] | [INFO] [stdout] 479 | pub fn first_follows(&self) -> FirstFollows { [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] 479 | pub fn first_follows(&self) -> FirstFollows<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/lr0.rs:154:22 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn conflicts(&self) -> Vec { [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] 154 | pub fn conflicts(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling metagrammar v0.1.0 (/opt/rustwide/workdir/metagrammar) [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, `any::Any`, `ops::Deref`, and `rc::Rc` [INFO] [stdout] --> parsing/src/main.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{any::Any, collections::{HashMap, HashSet}, ops::Deref, rc::Rc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lex` [INFO] [stdout] --> parsing/src/main.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let lex = tokenizer::FirrtlLexer::new(&source); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> metagrammar/src/main.rs:486:25 [INFO] [stdout] | [INFO] [stdout] 483 | tokenizer::LexToken::KwAsClock => r#""asClock""#, [INFO] [stdout] | ------------------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 486 | tokenizer::LexToken::KwAsClock => r#""asClock""#, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> metagrammar/src/main.rs:489:25 [INFO] [stdout] | [INFO] [stdout] 487 | tokenizer::LexToken::KwAsAsyncReset => r#""asAsyncReset""#, [INFO] [stdout] | ----------------------------------- matches all the relevant values [INFO] [stdout] 488 | tokenizer::LexToken::KwCvt => r#""cvt""#, [INFO] [stdout] 489 | tokenizer::LexToken::KwAsAsyncReset => r#""asAsyncReset""#, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> parsing/src/test.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let x = grammar.symbol("x").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> parsing/src/test.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let x = grammar.symbol("x").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> parsing/src/test.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | let a = grammar.symbol("A").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> parsing/src/test.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | let c = grammar.symbol("C").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> parsing/src/test.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | let d = grammar.symbol("D").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> parsing/src/test.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | let e = grammar.symbol("E").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> parsing/src/test.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let x = grammar.symbol("x").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> parsing/src/grammar.rs:409:21 [INFO] [stdout] | [INFO] [stdout] 409 | for (index, symbol) in self.symbols.iter().enumerate() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es` [INFO] [stdout] --> metagrammar/src/main.rs:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | SymbolExpr::Seq(es) => vec![self.clone()], [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_es` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> metagrammar/src/main.rs:120:31 [INFO] [stdout] | [INFO] [stdout] 120 | SymbolExpr::Group(e) => true, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es` [INFO] [stdout] --> metagrammar/src/main.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | SymbolExpr::Alt(es) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_es` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> metagrammar/src/main.rs:227:58 [INFO] [stdout] | [INFO] [stdout] 227 | lalrpop_util::ParseError::InvalidToken { location } => todo!(), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `location: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> metagrammar/src/main.rs:228:61 [INFO] [stdout] | [INFO] [stdout] 228 | lalrpop_util::ParseError::UnrecognizedEof { location, expected } => todo!(), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `location: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> metagrammar/src/main.rs:228:71 [INFO] [stdout] | [INFO] [stdout] 228 | lalrpop_util::ParseError::UnrecognizedEof { location, expected } => todo!(), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `expected: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> metagrammar/src/main.rs:229:70 [INFO] [stdout] | [INFO] [stdout] 229 | lalrpop_util::ParseError::UnrecognizedToken { token, expected } => { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `expected: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> metagrammar/src/main.rs:235:56 [INFO] [stdout] | [INFO] [stdout] 235 | lalrpop_util::ParseError::ExtraToken { token } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> metagrammar/src/main.rs:236:50 [INFO] [stdout] | [INFO] [stdout] 236 | lalrpop_util::ParseError::User { error } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `error: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> parsing/src/lr0.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | let mut actions = actions.get_mut(&(src_state_index, Some(symbol))).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> parsing/src/lr0.rs:129:33 [INFO] [stdout] | [INFO] [stdout] 129 | ... let mut actions = actions.get_mut(&(src_state_index, Some(symbol))).unwrap(); [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] --> parsing/src/lr0.rs:134:29 [INFO] [stdout] | [INFO] [stdout] 134 | let mut actions = actions.get_mut(&(src_state_index, None)).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> parsing/src/lr0.rs:278:17 [INFO] [stdout] | [INFO] [stdout] 278 | let mut i = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `insert` is never used [INFO] [stdout] --> parsing/src/grammar.rs:326:19 [INFO] [stdout] | [INFO] [stdout] 312 | impl<'a> ItemSet<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 326 | pub(crate) fn insert(&mut self, item: Item<'a>) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> parsing/src/lr0.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Node<'a>(Rc>); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeData` is never constructed [INFO] [stdout] --> parsing/src/lr0.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct NodeData<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `state`, `symbol`, and `actions` are never read [INFO] [stdout] --> parsing/src/lr0.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct Conflict<'a> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 183 | state: StateIndex, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 184 | symbol: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 185 | actions: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Conflict` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> parsing/src/grammar.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | write!(f, "{lhs} ->"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 247 | let _ = write!(f, "{lhs} ->"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:403:23 [INFO] [stdout] | [INFO] [stdout] 403 | pub fn start_rule(&self) -> Rule { [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] 403 | pub fn start_rule(&self) -> Rule<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:407:20 [INFO] [stdout] | [INFO] [stdout] 407 | pub fn symbols(&self) -> Vec { [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] 407 | pub fn symbols(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:418:22 [INFO] [stdout] | [INFO] [stdout] 418 | pub fn terminals(&self) -> Vec { [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] 418 | pub fn terminals(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:422:25 [INFO] [stdout] | [INFO] [stdout] 422 | pub fn nonterminals(&self) -> Vec { [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] 422 | pub fn nonterminals(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:426:19 [INFO] [stdout] | [INFO] [stdout] 426 | pub fn symbol(&self, name: &str) -> Option { [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] 426 | pub fn symbol(&self, name: &str) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:439:18 [INFO] [stdout] | [INFO] [stdout] 439 | pub fn rules(&self) -> Vec { [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] 439 | pub fn rules(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:457:22 [INFO] [stdout] | [INFO] [stdout] 457 | pub fn nullables(&self) -> HashSet { [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] 457 | pub fn nullables(&self) -> HashSet> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/grammar.rs:479:26 [INFO] [stdout] | [INFO] [stdout] 479 | pub fn first_follows(&self) -> FirstFollows { [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] 479 | pub fn first_follows(&self) -> FirstFollows<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> parsing/src/lr0.rs:154:22 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn conflicts(&self) -> Vec { [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] 154 | pub fn conflicts(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `logos::Filter` [INFO] [stdout] --> tokenizer/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use logos::Filter; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Skip` [INFO] [stdout] --> tokenizer/src/lib.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use logos::{Lexer, Logos, Skip}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> tokenizer/src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> tokenizer/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lex` [INFO] [stdout] --> tokenizer/src/lib.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | fn word_callback(lex: &mut Lexer) -> (usize, usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tokenizer/src/lib.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | let mut lex = LexToken::lexer(s); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `word_callback` is never used [INFO] [stdout] --> tokenizer/src/lib.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn word_callback(lex: &mut Lexer) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> tokenizer/src/lib.rs:261:19 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn new(s: &str) -> FirrtlLexer { [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] 261 | pub fn new(s: &str) -> FirrtlLexer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.87s [INFO] running `Command { std: "docker" "inspect" "ac57deed6cf813dc93eb46eed4a033559def06fd2f1ec1bcd40e1862dd2edb1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac57deed6cf813dc93eb46eed4a033559def06fd2f1ec1bcd40e1862dd2edb1c", kill_on_drop: false }` [INFO] [stdout] ac57deed6cf813dc93eb46eed4a033559def06fd2f1ec1bcd40e1862dd2edb1c