[INFO] fetching crate bnf_syntax_parser 0.1.0... [INFO] checking bnf_syntax_parser-0.1.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate bnf_syntax_parser 0.1.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate bnf_syntax_parser 0.1.0 [INFO] finished tweaking crates.io crate bnf_syntax_parser 0.1.0 [INFO] tweaked toml for crates.io crate bnf_syntax_parser 0.1.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate bnf_syntax_parser 0.1.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd14663b222629643d8359b45a0df03cfe2019ea55b99d62dc2116a6062f7229 [INFO] running `Command { std: "docker" "start" "-a" "cd14663b222629643d8359b45a0df03cfe2019ea55b99d62dc2116a6062f7229", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd14663b222629643d8359b45a0df03cfe2019ea55b99d62dc2116a6062f7229", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd14663b222629643d8359b45a0df03cfe2019ea55b99d62dc2116a6062f7229", kill_on_drop: false }` [INFO] [stdout] cd14663b222629643d8359b45a0df03cfe2019ea55b99d62dc2116a6062f7229 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 155e5be5ada8fea8df81381a536baa21cdaaa8255bc879b1e1609b15b32f6da7 [INFO] running `Command { std: "docker" "start" "-a" "155e5be5ada8fea8df81381a536baa21cdaaa8255bc879b1e1609b15b32f6da7", kill_on_drop: false }` [INFO] [stderr] Checking bnf_syntax_parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/bnf_rules.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, fmt::{Display, Write}}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MatchRecord`, `ParseErrorType`, `TokenIndex`, and `Token` [INFO] [stdout] --> src/bnf_rules.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | ...or, ParseErrorType, RuleParseError}, DescriptionIndex, MatchRecord, ParseTree, ParseTreeNode, Parser, RuleIndex, Token, TokenIndex, To... [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BNFDescription` [INFO] [stdout] --> src/error.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{parser::LocationRecord, BNFDescription, DescriptionIndex, RuleIndex, TokenIndex}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `marker::PhantomData` [INFO] [stdout] --> src/format.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::{Display, Write}, marker::PhantomData}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/format.rs:3:187 [INFO] [stdout] | [INFO] [stdout] 3 | ...iptionIndex, ParseTree, ParseTreeNode, RuleIndex, TokenIndex, TokenType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/parser.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseTree` [INFO] [stdout] --> src/rules_parser_generator.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{BNFDescription, BNFRule, BNFRules, ParseTree, Parser, RuleIndex}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/bnf_rules.rs:3:39 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, fmt::{Display, Write}}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MatchRecord`, `ParseErrorType`, `TokenIndex`, and `Token` [INFO] [stdout] --> src/bnf_rules.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | ...or, ParseErrorType, RuleParseError}, DescriptionIndex, MatchRecord, ParseTree, ParseTreeNode, Parser, RuleIndex, Token, TokenIndex, To... [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BNFDescription` [INFO] [stdout] --> src/error.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{parser::LocationRecord, BNFDescription, DescriptionIndex, RuleIndex, TokenIndex}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `marker::PhantomData` [INFO] [stdout] --> src/format.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::{Display, Write}, marker::PhantomData}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/format.rs:3:187 [INFO] [stdout] | [INFO] [stdout] 3 | ...iptionIndex, ParseTree, ParseTreeNode, RuleIndex, TokenIndex, TokenType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/parser.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParseTree` [INFO] [stdout] --> src/rules_parser_generator.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{BNFDescription, BNFRule, BNFRules, ParseTree, Parser, RuleIndex}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/bnf_rules.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, fmt::{Display, Write}}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/parser.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ChoiceEnd` [INFO] [stdout] --> src/bnf_rules.rs:93:46 [INFO] [stdout] | [INFO] [stdout] 93 | BNFDescription::ChoiceMidEnd(ChoiceEnd) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ChoiceEnd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ChoiceEnd` [INFO] [stdout] --> src/bnf_rules.rs:96:68 [INFO] [stdout] | [INFO] [stdout] 96 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ChoiceEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ChoiceEnd` [INFO] [stdout] --> src/bnf_rules.rs:97:71 [INFO] [stdout] | [INFO] [stdout] 97 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ChoiceEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ChoiceEnd` [INFO] [stdout] --> src/bnf_rules.rs:108:68 [INFO] [stdout] | [INFO] [stdout] 108 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ChoiceEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ChoiceEnd` [INFO] [stdout] --> src/bnf_rules.rs:109:71 [INFO] [stdout] | [INFO] [stdout] 109 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ChoiceEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `NextChoiceMid` [INFO] [stdout] --> src/bnf_rules.rs:114:57 [INFO] [stdout] | [INFO] [stdout] 114 | ... BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => {*ChoiceEnd = i; break}, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_NextChoiceMid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `NextChoiceMid` [INFO] [stdout] --> src/bnf_rules.rs:115:60 [INFO] [stdout] | [INFO] [stdout] 115 | ... BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *ChoiceEnd = i, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_NextChoiceMid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/bnf_rules.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, fmt::{Display, Write}}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/parser.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/debug_recorder.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn set_active_recorder(index: usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_index` [INFO] [stdout] --> src/debug_recorder.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn record_step(token_index: TokenIndex, rule_location: LocationRecord) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rule_location` [INFO] [stdout] --> src/debug_recorder.rs:61:45 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn record_step(token_index: TokenIndex, rule_location: LocationRecord) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rule_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/debug_recorder.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn record_rule_end(s: String) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_index` [INFO] [stdout] --> src/debug_recorder.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn record_traceback_record(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rule_location` [INFO] [stdout] --> src/debug_recorder.rs:71:57 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn record_traceback_record(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rule_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `traceback_record_index` [INFO] [stdout] --> src/debug_recorder.rs:71:88 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn record_traceback_record(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_traceback_record_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_index` [INFO] [stdout] --> src/debug_recorder.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn record_traceback(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rule_location` [INFO] [stdout] --> src/debug_recorder.rs:76:50 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn record_traceback(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rule_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `traceback_record_index` [INFO] [stdout] --> src/debug_recorder.rs:76:81 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn record_traceback(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_traceback_record_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_best_match` [INFO] [stdout] --> src/debug_recorder.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn record_best_match(new_best_match: &[MatchRecord]) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_best_match` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ChoiceEnd` [INFO] [stdout] --> src/bnf_rules.rs:93:46 [INFO] [stdout] | [INFO] [stdout] 93 | BNFDescription::ChoiceMidEnd(ChoiceEnd) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ChoiceEnd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ChoiceEnd` [INFO] [stdout] --> src/bnf_rules.rs:96:68 [INFO] [stdout] | [INFO] [stdout] 96 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ChoiceEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ChoiceEnd` [INFO] [stdout] --> src/bnf_rules.rs:97:71 [INFO] [stdout] | [INFO] [stdout] 97 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ChoiceEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ChoiceEnd` [INFO] [stdout] --> src/bnf_rules.rs:108:68 [INFO] [stdout] | [INFO] [stdout] 108 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ChoiceEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ChoiceEnd` [INFO] [stdout] --> src/bnf_rules.rs:109:71 [INFO] [stdout] | [INFO] [stdout] 109 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ChoiceEnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `NextChoiceMid` [INFO] [stdout] --> src/bnf_rules.rs:114:57 [INFO] [stdout] | [INFO] [stdout] 114 | ... BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => {*ChoiceEnd = i; break}, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_NextChoiceMid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `NextChoiceMid` [INFO] [stdout] --> src/bnf_rules.rs:115:60 [INFO] [stdout] | [INFO] [stdout] 115 | ... BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *ChoiceEnd = i, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_NextChoiceMid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/debug_recorder.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn set_active_recorder(index: usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_index` [INFO] [stdout] --> src/debug_recorder.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn record_step(token_index: TokenIndex, rule_location: LocationRecord) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rule_location` [INFO] [stdout] --> src/debug_recorder.rs:61:45 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn record_step(token_index: TokenIndex, rule_location: LocationRecord) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rule_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/debug_recorder.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn record_rule_end(s: String) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_index` [INFO] [stdout] --> src/debug_recorder.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn record_traceback_record(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rule_location` [INFO] [stdout] --> src/debug_recorder.rs:71:57 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn record_traceback_record(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rule_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `traceback_record_index` [INFO] [stdout] --> src/debug_recorder.rs:71:88 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn record_traceback_record(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_traceback_record_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_index` [INFO] [stdout] --> src/debug_recorder.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn record_traceback(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rule_location` [INFO] [stdout] --> src/debug_recorder.rs:76:50 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn record_traceback(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rule_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `traceback_record_index` [INFO] [stdout] --> src/debug_recorder.rs:76:81 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn record_traceback(token_index: TokenIndex, rule_location: LocationRecord, traceback_record_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_traceback_record_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_best_match` [INFO] [stdout] --> src/debug_recorder.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn record_best_match(new_best_match: &[MatchRecord]) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_best_match` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/format.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | for r in &self.best_match { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/format.rs:196:44 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn format_best_match(&self, f: &mut F) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/format.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | for r in &self.best_match { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/format.rs:196:44 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn format_best_match(&self, f: &mut F) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `try_into` is never used [INFO] [stdout] --> src/bnf_rules.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl BNFDescription { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 24 | fn try_into(self) -> Result, E> where TT2: TryFrom { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `active_recorder_mut` is never used [INFO] [stdout] --> src/debug_recorder.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn active_recorder_mut() -> Option<&'static mut Recorder> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate_bnf_rules_parser` is never used [INFO] [stdout] --> src/rules_parser_generator.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl RulesParserGenerator { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn generate_bnf_rules_parser(&mut self) -> Parser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:41:41 [INFO] [stdout] | [INFO] [stdout] 41 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:41:56 [INFO] [stdout] | [INFO] [stdout] 41 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:42:42 [INFO] [stdout] | [INFO] [stdout] 42 | BNFDescription::ChoiceMidEnd(ChoiceEnd) => BNFDescription::ChoiceMidEnd(ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:43:44 [INFO] [stdout] | [INFO] [stdout] 43 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:43:59 [INFO] [stdout] | [INFO] [stdout] 43 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | BNFDescription::OptionStart(OptionEnd) => BNFDescription::OptionStart(OptionEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:47:45 [INFO] [stdout] | [INFO] [stdout] 47 | BNFDescription::RepetitionStart(RepetitionEnd) => BNFDescription::RepetitionStart(RepetitionEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:48:43 [INFO] [stdout] | [INFO] [stdout] 48 | BNFDescription::RepetitionEnd(RepetitionStart) => BNFDescription::RepetitionEnd(RepetitionStart), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:55:41 [INFO] [stdout] | [INFO] [stdout] 55 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceStart(*NextChoiceMid, *ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:55:56 [INFO] [stdout] | [INFO] [stdout] 55 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceStart(*NextChoiceMid, *ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:56:42 [INFO] [stdout] | [INFO] [stdout] 56 | BNFDescription::ChoiceMidEnd(ChoiceEnd) => BNFDescription::ChoiceMidEnd(*ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:57:44 [INFO] [stdout] | [INFO] [stdout] 57 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceMidStart(*NextChoiceMid, *ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:57:59 [INFO] [stdout] | [INFO] [stdout] 57 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceMidStart(*NextChoiceMid, *ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:59:41 [INFO] [stdout] | [INFO] [stdout] 59 | BNFDescription::OptionStart(OptionEnd) => BNFDescription::OptionStart(*OptionEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:61:45 [INFO] [stdout] | [INFO] [stdout] 61 | BNFDescription::RepetitionStart(RepetitionEnd) => BNFDescription::RepetitionStart(*RepetitionEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:62:43 [INFO] [stdout] | [INFO] [stdout] 62 | BNFDescription::RepetitionEnd(RepetitionStart) => BNFDescription::RepetitionEnd(*RepetitionStart), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:93:46 [INFO] [stdout] | [INFO] [stdout] 93 | BNFDescription::ChoiceMidEnd(ChoiceEnd) => { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:96:53 [INFO] [stdout] | [INFO] [stdout] 96 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:96:68 [INFO] [stdout] | [INFO] [stdout] 96 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:97:56 [INFO] [stdout] | [INFO] [stdout] 97 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:97:71 [INFO] [stdout] | [INFO] [stdout] 97 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:108:53 [INFO] [stdout] | [INFO] [stdout] 108 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:108:68 [INFO] [stdout] | [INFO] [stdout] 108 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:109:56 [INFO] [stdout] | [INFO] [stdout] 109 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:109:71 [INFO] [stdout] | [INFO] [stdout] 109 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:114:57 [INFO] [stdout] | [INFO] [stdout] 114 | ... BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => {*ChoiceEnd = i; break}, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:114:72 [INFO] [stdout] | [INFO] [stdout] 114 | ... BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => {*ChoiceEnd = i; break}, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:115:60 [INFO] [stdout] | [INFO] [stdout] 115 | ... BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *ChoiceEnd = i, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:115:75 [INFO] [stdout] | [INFO] [stdout] 115 | ... BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *ChoiceEnd = i, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:116:58 [INFO] [stdout] | [INFO] [stdout] 116 | ... BNFDescription::ChoiceMidEnd(ChoiceEnd) => *ChoiceEnd = i, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:122:49 [INFO] [stdout] | [INFO] [stdout] 122 | BNFDescription::OptionStart(OptionEnd) => *OptionEnd = i, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:128:55 [INFO] [stdout] | [INFO] [stdout] 128 | BNFDescription::RepetitionEnd(RepetitionStart) => *RepetitionStart = repetition_start, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:132:57 [INFO] [stdout] | [INFO] [stdout] 132 | BNFDescription::RepetitionStart(RepetitionEnd) => *RepetitionEnd = i, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/debug_recorder.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | RECORDERS.get(ACTIVE_RECORD) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/debug_recorder.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | RECORDERS.get_mut(ACTIVE_RECORD) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/debug_recorder.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | RECORDERS.push(Recorder::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/debug_recorder.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | ACTIVE_RECORD = RECORDERS.len() - 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/debug_recorder.rs:57:25 [INFO] [stdout] | [INFO] [stdout] 57 | ACTIVE_RECORD = RECORDERS.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/format.rs:24:41 [INFO] [stdout] | [INFO] [stdout] 24 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => write!(f, "ChoiceStart({}, {})", NextChoiceMid, ChoiceEnd)?, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/format.rs:24:56 [INFO] [stdout] | [INFO] [stdout] 24 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => write!(f, "ChoiceStart({}, {})", NextChoiceMid, ChoiceEnd)?, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/format.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | BNFDescription::ChoiceMidEnd(ChoiceEnd) => write!(f, "ChoiceMidEnd({})", ChoiceEnd)?, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/format.rs:26:44 [INFO] [stdout] | [INFO] [stdout] 26 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => write!(f, "ChoiceMidStart({}, {})", NextChoiceMid, ChoiceEnd)?, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/format.rs:26:59 [INFO] [stdout] | [INFO] [stdout] 26 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => write!(f, "ChoiceMidStart({}, {})", NextChoiceMid, ChoiceEnd)?, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/format.rs:28:41 [INFO] [stdout] | [INFO] [stdout] 28 | BNFDescription::OptionStart(OptionEnd) => write!(f, "OptionStart({})", OptionEnd)?, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/format.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | BNFDescription::RepetitionStart(RepetitionEnd) => write!(f, "RepetitionStart({})", RepetitionEnd)?, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/format.rs:31:43 [INFO] [stdout] | [INFO] [stdout] 31 | BNFDescription::RepetitionEnd(RepetitionStart) => write!(f, "RepetitionEnd({})", RepetitionStart)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/parser.rs:50:99 [INFO] [stdout] | [INFO] [stdout] 50 | ...nstance_id: RuleInstanceId, RepetitionStart: DescriptionIndex, token_index: &TokenIndex, description_index: DescriptionIndex) -> Parse... [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/parser.rs:85:41 [INFO] [stdout] | [INFO] [stdout] 85 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => if NextChoiceMid == ChoiceEnd { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:85:56 [INFO] [stdout] | [INFO] [stdout] 85 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => if NextChoiceMid == ChoiceEnd { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/parser.rs:91:44 [INFO] [stdout] | [INFO] [stdout] 91 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => if NextChoiceMid == ChoiceEnd { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:91:59 [INFO] [stdout] | [INFO] [stdout] 91 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => if NextChoiceMid == ChoiceEnd { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | BNFDescription::OptionStart(OptionEnd) => OptionEnd + 1, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:98:45 [INFO] [stdout] | [INFO] [stdout] 98 | BNFDescription::RepetitionStart(RepetitionEnd) => RepetitionEnd + 1, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:237:46 [INFO] [stdout] | [INFO] [stdout] 237 | ... BNFDescription::ChoiceMidEnd(ChoiceEnd) => rule_location.description_index = *ChoiceEnd, // 之后会description_index += 1,直接跳过BNFDescripti ... [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:239:45 [INFO] [stdout] | [INFO] [stdout] 239 | BNFDescription::OptionStart(OptionEnd) => RecordOrJump!(*OptionEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:241:49 [INFO] [stdout] | [INFO] [stdout] 241 | BNFDescription::RepetitionStart(RepetitionEnd) => RecordOrJump!(*RepetitionEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/parser.rs:242:47 [INFO] [stdout] | [INFO] [stdout] 242 | ... BNFDescription::RepetitionEnd(RepetitionStart) => if *token_index < tokens.len() { // 如果 token 没有匹配完,需要检查是否无限循环 [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_BLOCK_COMMENT_CONTENT` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:98:34 [INFO] [stdout] | [INFO] [stdout] 98 | Some((block_comment, BNFRule_BLOCK_COMMENT_CONTENT)) => (Some(block_comment), Some(BNFRule_BLOCK_COMMENT_CONTENT)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_block_comment_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_BLOCK_COMMENT_CONTENT` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:72:29 [INFO] [stdout] | [INFO] [stdout] 72 | ... let (block_comment, BNFRule_BLOCK_COMMENT_CONTENT) = match self.block_comment_start_end.as_ref().map(|(block_comment_start, block_c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_block_comment_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_SINGLE_SPACE` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let BNFRule_SINGLE_SPACE: Option> = (line_comment.is_some() || block_comment.is_some()).then(|| [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_single_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFDescription_SINGLE_SPACE` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let BNFDescription_SINGLE_SPACE = match BNFRule_SINGLE_SPACE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfdescription_single_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_IDENTIFIER` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let BNFRule_IDENTIFIER = BNFRule::new(IDENTIFIER, vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_STRING` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | let BNFRule_STRING = BNFRule::new(STRING, vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_BNF_RULE` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | let BNFRule_BNF_RULE = BNFRule::new(BNF_RULE, vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_bnf_rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_BNF_RULES` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let BNFRule_BNF_RULES = BNFRule::new(BNF_RULES, vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_bnf_rules` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `try_into` is never used [INFO] [stdout] --> src/bnf_rules.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl BNFDescription { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 24 | fn try_into(self) -> Result, E> where TT2: TryFrom { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `active_recorder_mut` is never used [INFO] [stdout] --> src/debug_recorder.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn active_recorder_mut() -> Option<&'static mut Recorder> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate_bnf_rules_parser` is never used [INFO] [stdout] --> src/rules_parser_generator.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl RulesParserGenerator { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn generate_bnf_rules_parser(&mut self) -> Parser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:41:41 [INFO] [stdout] | [INFO] [stdout] 41 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:41:56 [INFO] [stdout] | [INFO] [stdout] 41 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:42:42 [INFO] [stdout] | [INFO] [stdout] 42 | BNFDescription::ChoiceMidEnd(ChoiceEnd) => BNFDescription::ChoiceMidEnd(ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:43:44 [INFO] [stdout] | [INFO] [stdout] 43 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:43:59 [INFO] [stdout] | [INFO] [stdout] 43 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | BNFDescription::OptionStart(OptionEnd) => BNFDescription::OptionStart(OptionEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:47:45 [INFO] [stdout] | [INFO] [stdout] 47 | BNFDescription::RepetitionStart(RepetitionEnd) => BNFDescription::RepetitionStart(RepetitionEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:48:43 [INFO] [stdout] | [INFO] [stdout] 48 | BNFDescription::RepetitionEnd(RepetitionStart) => BNFDescription::RepetitionEnd(RepetitionStart), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:55:41 [INFO] [stdout] | [INFO] [stdout] 55 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceStart(*NextChoiceMid, *ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:55:56 [INFO] [stdout] | [INFO] [stdout] 55 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceStart(*NextChoiceMid, *ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:56:42 [INFO] [stdout] | [INFO] [stdout] 56 | BNFDescription::ChoiceMidEnd(ChoiceEnd) => BNFDescription::ChoiceMidEnd(*ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:57:44 [INFO] [stdout] | [INFO] [stdout] 57 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceMidStart(*NextChoiceMid, *ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:57:59 [INFO] [stdout] | [INFO] [stdout] 57 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => BNFDescription::ChoiceMidStart(*NextChoiceMid, *ChoiceEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:59:41 [INFO] [stdout] | [INFO] [stdout] 59 | BNFDescription::OptionStart(OptionEnd) => BNFDescription::OptionStart(*OptionEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:61:45 [INFO] [stdout] | [INFO] [stdout] 61 | BNFDescription::RepetitionStart(RepetitionEnd) => BNFDescription::RepetitionStart(*RepetitionEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:62:43 [INFO] [stdout] | [INFO] [stdout] 62 | BNFDescription::RepetitionEnd(RepetitionStart) => BNFDescription::RepetitionEnd(*RepetitionStart), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:93:46 [INFO] [stdout] | [INFO] [stdout] 93 | BNFDescription::ChoiceMidEnd(ChoiceEnd) => { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:96:53 [INFO] [stdout] | [INFO] [stdout] 96 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:96:68 [INFO] [stdout] | [INFO] [stdout] 96 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:97:56 [INFO] [stdout] | [INFO] [stdout] 97 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:97:71 [INFO] [stdout] | [INFO] [stdout] 97 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i + 1, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:108:53 [INFO] [stdout] | [INFO] [stdout] 108 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:108:68 [INFO] [stdout] | [INFO] [stdout] 108 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:109:56 [INFO] [stdout] | [INFO] [stdout] 109 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:109:71 [INFO] [stdout] | [INFO] [stdout] 109 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *NextChoiceMid = i, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:114:57 [INFO] [stdout] | [INFO] [stdout] 114 | ... BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => {*ChoiceEnd = i; break}, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:114:72 [INFO] [stdout] | [INFO] [stdout] 114 | ... BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => {*ChoiceEnd = i; break}, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:115:60 [INFO] [stdout] | [INFO] [stdout] 115 | ... BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *ChoiceEnd = i, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:115:75 [INFO] [stdout] | [INFO] [stdout] 115 | ... BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => *ChoiceEnd = i, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:116:58 [INFO] [stdout] | [INFO] [stdout] 116 | ... BNFDescription::ChoiceMidEnd(ChoiceEnd) => *ChoiceEnd = i, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:122:49 [INFO] [stdout] | [INFO] [stdout] 122 | BNFDescription::OptionStart(OptionEnd) => *OptionEnd = i, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:128:55 [INFO] [stdout] | [INFO] [stdout] 128 | BNFDescription::RepetitionEnd(RepetitionStart) => *RepetitionStart = repetition_start, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/bnf_rules.rs:132:57 [INFO] [stdout] | [INFO] [stdout] 132 | BNFDescription::RepetitionStart(RepetitionEnd) => *RepetitionEnd = i, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/debug_recorder.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | RECORDERS.get(ACTIVE_RECORD) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/debug_recorder.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | RECORDERS.get_mut(ACTIVE_RECORD) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/debug_recorder.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | RECORDERS.push(Recorder::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/debug_recorder.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | ACTIVE_RECORD = RECORDERS.len() - 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/debug_recorder.rs:57:25 [INFO] [stdout] | [INFO] [stdout] 57 | ACTIVE_RECORD = RECORDERS.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/format.rs:24:41 [INFO] [stdout] | [INFO] [stdout] 24 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => write!(f, "ChoiceStart({}, {})", NextChoiceMid, ChoiceEnd)?, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/format.rs:24:56 [INFO] [stdout] | [INFO] [stdout] 24 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => write!(f, "ChoiceStart({}, {})", NextChoiceMid, ChoiceEnd)?, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/format.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | BNFDescription::ChoiceMidEnd(ChoiceEnd) => write!(f, "ChoiceMidEnd({})", ChoiceEnd)?, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/format.rs:26:44 [INFO] [stdout] | [INFO] [stdout] 26 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => write!(f, "ChoiceMidStart({}, {})", NextChoiceMid, ChoiceEnd)?, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/format.rs:26:59 [INFO] [stdout] | [INFO] [stdout] 26 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => write!(f, "ChoiceMidStart({}, {})", NextChoiceMid, ChoiceEnd)?, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/format.rs:28:41 [INFO] [stdout] | [INFO] [stdout] 28 | BNFDescription::OptionStart(OptionEnd) => write!(f, "OptionStart({})", OptionEnd)?, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/format.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | BNFDescription::RepetitionStart(RepetitionEnd) => write!(f, "RepetitionStart({})", RepetitionEnd)?, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/format.rs:31:43 [INFO] [stdout] | [INFO] [stdout] 31 | BNFDescription::RepetitionEnd(RepetitionStart) => write!(f, "RepetitionEnd({})", RepetitionStart)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/parser.rs:50:99 [INFO] [stdout] | [INFO] [stdout] 50 | ...nstance_id: RuleInstanceId, RepetitionStart: DescriptionIndex, token_index: &TokenIndex, description_index: DescriptionIndex) -> Parse... [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/parser.rs:85:41 [INFO] [stdout] | [INFO] [stdout] 85 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => if NextChoiceMid == ChoiceEnd { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:85:56 [INFO] [stdout] | [INFO] [stdout] 85 | BNFDescription::ChoiceStart(NextChoiceMid, ChoiceEnd) => if NextChoiceMid == ChoiceEnd { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NextChoiceMid` should have a snake case name [INFO] [stdout] --> src/parser.rs:91:44 [INFO] [stdout] | [INFO] [stdout] 91 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => if NextChoiceMid == ChoiceEnd { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_choice_mid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:91:59 [INFO] [stdout] | [INFO] [stdout] 91 | BNFDescription::ChoiceMidStart(NextChoiceMid, ChoiceEnd) => if NextChoiceMid == ChoiceEnd { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | BNFDescription::OptionStart(OptionEnd) => OptionEnd + 1, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:98:45 [INFO] [stdout] | [INFO] [stdout] 98 | BNFDescription::RepetitionStart(RepetitionEnd) => RepetitionEnd + 1, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ChoiceEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:237:46 [INFO] [stdout] | [INFO] [stdout] 237 | ... BNFDescription::ChoiceMidEnd(ChoiceEnd) => rule_location.description_index = *ChoiceEnd, // 之后会description_index += 1,直接跳过BNFDescripti ... [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `choice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `OptionEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:239:45 [INFO] [stdout] | [INFO] [stdout] 239 | BNFDescription::OptionStart(OptionEnd) => RecordOrJump!(*OptionEnd), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `option_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionEnd` should have a snake case name [INFO] [stdout] --> src/parser.rs:241:49 [INFO] [stdout] | [INFO] [stdout] 241 | BNFDescription::RepetitionStart(RepetitionEnd) => RecordOrJump!(*RepetitionEnd), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RepetitionStart` should have a snake case name [INFO] [stdout] --> src/parser.rs:242:47 [INFO] [stdout] | [INFO] [stdout] 242 | ... BNFDescription::RepetitionEnd(RepetitionStart) => if *token_index < tokens.len() { // 如果 token 没有匹配完,需要检查是否无限循环 [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `repetition_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_BLOCK_COMMENT_CONTENT` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:98:34 [INFO] [stdout] | [INFO] [stdout] 98 | Some((block_comment, BNFRule_BLOCK_COMMENT_CONTENT)) => (Some(block_comment), Some(BNFRule_BLOCK_COMMENT_CONTENT)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_block_comment_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_BLOCK_COMMENT_CONTENT` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:72:29 [INFO] [stdout] | [INFO] [stdout] 72 | ... let (block_comment, BNFRule_BLOCK_COMMENT_CONTENT) = match self.block_comment_start_end.as_ref().map(|(block_comment_start, block_c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_block_comment_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_SINGLE_SPACE` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let BNFRule_SINGLE_SPACE: Option> = (line_comment.is_some() || block_comment.is_some()).then(|| [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_single_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFDescription_SINGLE_SPACE` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let BNFDescription_SINGLE_SPACE = match BNFRule_SINGLE_SPACE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfdescription_single_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_IDENTIFIER` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let BNFRule_IDENTIFIER = BNFRule::new(IDENTIFIER, vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_identifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_STRING` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | let BNFRule_STRING = BNFRule::new(STRING, vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_BNF_RULE` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | let BNFRule_BNF_RULE = BNFRule::new(BNF_RULE, vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_bnf_rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BNFRule_BNF_RULES` should have a snake case name [INFO] [stdout] --> src/rules_parser_generator.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let BNFRule_BNF_RULES = BNFRule::new(BNF_RULES, vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bnfrule_bnf_rules` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BNFRule` and `MatchRecord` [INFO] [stdout] --> tests/integration_test.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | use bnf_syntax_parser::{TokenType, Token, BNFRule, BNFRules, Parser, MatchRecord, ParseTree}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> tests/integration_test.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let parser = Parser::new(rules.rules.clone(), rules.start_rule_index.unwrap()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> tests/integration_test.rs:111:16 [INFO] [stdout] | [INFO] [stdout] 111 | Ok(r) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TOKEN_TYPE_CONVERTER` should have a snake case name [INFO] [stdout] --> tests/integration_test.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let TOKEN_TYPE_CONVERTER = HashMap::from([ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `token_type_converter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TOKEN_CONVERTER` should have a snake case name [INFO] [stdout] --> tests/integration_test.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let TOKEN_CONVERTER = HashMap::from([ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `token_converter` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.50s [INFO] running `Command { std: "docker" "inspect" "155e5be5ada8fea8df81381a536baa21cdaaa8255bc879b1e1609b15b32f6da7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "155e5be5ada8fea8df81381a536baa21cdaaa8255bc879b1e1609b15b32f6da7", kill_on_drop: false }` [INFO] [stdout] 155e5be5ada8fea8df81381a536baa21cdaaa8255bc879b1e1609b15b32f6da7