[INFO] fetching crate antlr4rust 0.5.2... [INFO] linting antlr4rust-0.5.2 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate antlr4rust 0.5.2 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate antlr4rust 0.5.2 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate antlr4rust 0.5.2 [INFO] tweaked toml for crates.io crate antlr4rust 0.5.2 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate antlr4rust 0.5.2 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate antlr4rust 0.5.2 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded murmur3 v0.4.1 [INFO] [stderr] Downloaded better_any v0.2.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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] daf1f5c3139526fa79cda1b7a7cec44611a5787d705d09f3e83a9112ff316e0b [INFO] running `Command { std: "docker" "start" "-a" "daf1f5c3139526fa79cda1b7a7cec44611a5787d705d09f3e83a9112ff316e0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "daf1f5c3139526fa79cda1b7a7cec44611a5787d705d09f3e83a9112ff316e0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "daf1f5c3139526fa79cda1b7a7cec44611a5787d705d09f3e83a9112ff316e0b", kill_on_drop: false }` [INFO] [stdout] daf1f5c3139526fa79cda1b7a7cec44611a5787d705d09f3e83a9112ff316e0b [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2af8621a581450c6ebc510fc0a6fc3faba03b5c106c68f39ae133c0864e14a76 [INFO] running `Command { std: "docker" "start" "-a" "2af8621a581450c6ebc510fc0a6fc3faba03b5c106c68f39ae133c0864e14a76", kill_on_drop: false }` [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Checking better_any v0.2.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking murmur3 v0.4.1 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking antlr4rust v0.5.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/int_stream.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | /// This method has the following [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] = note: `#[warn(clippy::tabs_in_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/int_stream.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | /// before calling this method is less than the value of `index` [INFO] [stdout] | ^^^^^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/int_stream.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | /// after calling this method. [INFO] [stdout] | ^^^^^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/int_stream.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | /// calling this method becomes the value of {@code LA(-1)} after calling [INFO] [stdout] | ^^^^^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/int_stream.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | /// this method. [INFO] [stdout] | ^^^^^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/int_stream.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | /// This method has the following [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] = note: `#[warn(clippy::tabs_in_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/int_stream.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | /// before calling this method is less than the value of `index` [INFO] [stdout] | ^^^^^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/int_stream.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | /// after calling this method. [INFO] [stdout] | ^^^^^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/int_stream.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | /// calling this method becomes the value of {@code LA(-1)} after calling [INFO] [stdout] | ^^^^^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/int_stream.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | /// this method. [INFO] [stdout] | ^^^^^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/tree.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | /// added to the parse trees, they will not appear in the output of this [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/tree.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | /// method. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/tree.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | / /// Already implemented for all rule contexts [INFO] [stdout] ... | [INFO] [stdout] 116 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub struct NoError; [INFO] [stdout] | ------------------ the comment documents this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the doc comment should not document struct `NoError` then comment it out [INFO] [stdout] | [INFO] [stdout] 95 ~ // /// text of the node. [INFO] [stdout] 96 ~ // /// Already implemented for all rule contexts [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/tree.rs:328:5 [INFO] [stdout] | [INFO] [stdout] 328 | / /// just to make api closer to java [INFO] [stdout] 329 | | [INFO] [stdout] | |_^ [INFO] [stdout] 330 | /// Called on terminal(leaf) node [INFO] [stdout] 331 | fn visit_terminal(&mut self, _node: &TerminalNode<'input, Node>) {} [INFO] [stdout] | ----------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 329 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/tree.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | /// added to the parse trees, they will not appear in the output of this [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> src/tree.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | /// method. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/tree.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | / /// Already implemented for all rule contexts [INFO] [stdout] ... | [INFO] [stdout] 116 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub struct NoError; [INFO] [stdout] | ------------------ the comment documents this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the doc comment should not document struct `NoError` then comment it out [INFO] [stdout] | [INFO] [stdout] 95 ~ // /// text of the node. [INFO] [stdout] 96 ~ // /// Already implemented for all rule contexts [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/tree.rs:328:5 [INFO] [stdout] | [INFO] [stdout] 328 | / /// just to make api closer to java [INFO] [stdout] 329 | | [INFO] [stdout] | |_^ [INFO] [stdout] 330 | /// Called on terminal(leaf) node [INFO] [stdout] 331 | fn visit_terminal(&mut self, _node: &TerminalNode<'input, Node>) {} [INFO] [stdout] | ----------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 329 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/atn_config.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | state.write_i32(self.get_state() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.get_state()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/atn_config.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | state.write_i32(self.get_alt() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `self.get_alt()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/int_stream.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | /// before calling this method is less than the value of `index` [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 19 | /// before calling this method is less than the value of `index` [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/int_stream.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | /// after calling this method. [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 20 | /// after calling this method. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/int_stream.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | /// calling this method becomes the value of {@code LA(-1)} after calling [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 22 | /// calling this method becomes the value of {@code LA(-1)} after calling [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/int_stream.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | /// this method. [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 23 | /// this method. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same prefix: `Lexer` [INFO] [stdout] --> src/lexer_action.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / pub(crate) enum LexerAction { [INFO] [stdout] 16 | | LexerChannelAction(i32), [INFO] [stdout] 17 | | LexerCustomAction { [INFO] [stdout] 18 | | rule_index: i32, [INFO] [stdout] ... | [INFO] [stdout] 30 | | }, [INFO] [stdout] 31 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the prefixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/lexer_action.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | / match self { [INFO] [stdout] 40 | | LexerAction::LexerCustomAction { .. } [INFO] [stdout] 41 | | | LexerAction::LexerIndexedCustomAction { .. } => true, [INFO] [stdout] 42 | | _ => false, [INFO] [stdout] 43 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 39 ~ matches!(self, LexerAction::LexerCustomAction { .. } [INFO] [stdout] 40 + | LexerAction::LexerIndexedCustomAction { .. }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/ll1_analyzer.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | / fn look_work( [INFO] [stdout] 53 | | &self, [INFO] [stdout] 54 | | // atn:&ATN, [INFO] [stdout] 55 | | s: &dyn ATNState, [INFO] [stdout] ... | [INFO] [stdout] 62 | | add_eof: bool, [INFO] [stdout] 63 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/ll1_analyzer.rs:129:25 [INFO] [stdout] | [INFO] [stdout] 129 | rule_tr.follow_state as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `rule_tr.follow_state` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/token_factory.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / fn create( [INFO] [stdout] 59 | | &'a self, [INFO] [stdout] 60 | | source: Option<&mut T>, [INFO] [stdout] 61 | | ttype: i32, [INFO] [stdout] ... | [INFO] [stdout] 67 | | column: isize, [INFO] [stdout] 68 | | ) -> Self::Tok [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/atn_state.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | / { [INFO] [stdout] 182 | | already_present = true; [INFO] [stdout] 183 | | break; [INFO] [stdout] 184 | | } else if existing.is_epsilon() && trans.is_epsilon() { [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/atn_state.rs:184:71 [INFO] [stdout] | [INFO] [stdout] 184 | } else if existing.is_epsilon() && trans.is_epsilon() { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 185 | | already_present = true; [INFO] [stdout] 186 | | break; [INFO] [stdout] 187 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] = note: `#[warn(clippy::if_same_then_else)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `InputData` has a `len` method but no (possibly inherited) `is_empty` method [INFO] [stdout] --> src/char_stream.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / pub trait InputData: [INFO] [stdout] 21 | | Index, Output = Self> [INFO] [stdout] 22 | | + Index, Output = Self> [INFO] [stdout] 23 | | + ToOwned [INFO] [stdout] ... | [INFO] [stdout] 42 | | fn to_display(&self) -> String; [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stdout] = note: `#[warn(clippy::len_without_is_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/prediction_context.rs:194:34 [INFO] [stdout] | [INFO] [stdout] 194 | hasher.write_i32(*return_state as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: try: `(*return_state)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/prediction_context.rs:209:52 [INFO] [stdout] | [INFO] [stdout] 209 | .for_each(|x| hasher.write_i32(*x as i32)); [INFO] [stdout] | ^^^^^^^^^ help: try: `(*x)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/prediction_context.rs:536:56 [INFO] [stdout] | [INFO] [stdout] 536 | PredictionContext::new_singleton(Some(parent), transition.follow_state as i32).alloc() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `transition.follow_state` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/dfa.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | usize::max_value(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 70 - usize::max_value(), [INFO] [stdout] 70 + usize::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/tree.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | usize::max_value() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 140 - usize::max_value() [INFO] [stdout] 140 + usize::MAX [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:396:58 [INFO] [stdout] | [INFO] [stdout] 396 | fn enter_every_rule(&mut self, _ctx: &Node::Type) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:400:57 [INFO] [stdout] | [INFO] [stdout] 400 | fn exit_every_rule(&mut self, _ctx: &Node::Type) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:409:43 [INFO] [stdout] | [INFO] [stdout] 409 | fn enter(&self, _listener: &mut T) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:413:42 [INFO] [stdout] | [INFO] [stdout] 413 | fn exit(&self, _listener: &mut T) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:443:10 [INFO] [stdout] | [INFO] [stdout] 443 | ) -> Result, ANTLRError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:458:56 [INFO] [stdout] | [INFO] [stdout] 458 | fn walk_inner(listener: &mut T, t: &Node::Type) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Vec` is already on the heap, the boxing is unnecessary [INFO] [stdout] --> src/atn_config_set.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) configs: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `Vec` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_box [INFO] [stdout] = note: `#[warn(clippy::vec_box)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/atn_deserializer.rs:275:33 [INFO] [stdout] | [INFO] [stdout] 275 | ... target.get_rule_index() as i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `target.get_rule_index()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/atn_config.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | state.write_i32(self.get_state() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.get_state()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/atn_config.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | state.write_i32(self.get_alt() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `self.get_alt()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/atn_deserializer.rs:411:5 [INFO] [stdout] | [INFO] [stdout] 411 | / fn edge_factory( [INFO] [stdout] 412 | | &self, [INFO] [stdout] 413 | | _atn: &ATN, [INFO] [stdout] 414 | | type_index: i32, [INFO] [stdout] ... | [INFO] [stdout] 420 | | sets: &Vec, [INFO] [stdout] 421 | | ) -> Box { [INFO] [stdout] | |____________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/atn_deserializer.rs:420:15 [INFO] [stdout] | [INFO] [stdout] 420 | sets: &Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 420 - sets: &Vec, [INFO] [stdout] 420 + sets: &[IntervalSet], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/int_stream.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | /// before calling this method is less than the value of `index` [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 19 | /// before calling this method is less than the value of `index` [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/int_stream.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | /// after calling this method. [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 20 | /// after calling this method. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/int_stream.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | /// calling this method becomes the value of {@code LA(-1)} after calling [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 22 | /// calling this method becomes the value of {@code LA(-1)} after calling [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/int_stream.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | /// this method. [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 23 | /// this method. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same prefix: `Lexer` [INFO] [stdout] --> src/lexer_action.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / pub(crate) enum LexerAction { [INFO] [stdout] 16 | | LexerChannelAction(i32), [INFO] [stdout] 17 | | LexerCustomAction { [INFO] [stdout] 18 | | rule_index: i32, [INFO] [stdout] ... | [INFO] [stdout] 30 | | }, [INFO] [stdout] 31 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the prefixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/lexer_action.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | / match self { [INFO] [stdout] 40 | | LexerAction::LexerCustomAction { .. } [INFO] [stdout] 41 | | | LexerAction::LexerIndexedCustomAction { .. } => true, [INFO] [stdout] 42 | | _ => false, [INFO] [stdout] 43 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 39 ~ matches!(self, LexerAction::LexerCustomAction { .. } [INFO] [stdout] 40 + | LexerAction::LexerIndexedCustomAction { .. }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/error_listener.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / fn report_ambiguity( [INFO] [stdout] 41 | | &self, [INFO] [stdout] 42 | | _recognizer: &T, [INFO] [stdout] 43 | | _dfa: &DFA, [INFO] [stdout] ... | [INFO] [stdout] 48 | | _configs: &ATNConfigSet, [INFO] [stdout] 49 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/ll1_analyzer.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | / fn look_work( [INFO] [stdout] 53 | | &self, [INFO] [stdout] 54 | | // atn:&ATN, [INFO] [stdout] 55 | | s: &dyn ATNState, [INFO] [stdout] ... | [INFO] [stdout] 62 | | add_eof: bool, [INFO] [stdout] 63 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | /// grammar can match the input. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 189 | /// grammar can match the input. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | /// prediction resolved an SLL conflict to a unique alternative which equaled the [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 191 | /// prediction resolved an SLL conflict to a unique alternative which equaled the [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:192:5 [INFO] [stdout] | [INFO] [stdout] 192 | /// minimum alternative of the SLL conflict. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 192 | /// minimum alternative of the SLL conflict. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/ll1_analyzer.rs:129:25 [INFO] [stdout] | [INFO] [stdout] 129 | rule_tr.follow_state as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `rule_tr.follow_state` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 194 | /// full-context prediction resolved an SLL conflict to a unique alternative, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 194 | /// full-context prediction resolved an SLL conflict to a unique alternative, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:195:5 [INFO] [stdout] | [INFO] [stdout] 195 | /// *and* the minimum alternative of the SLL conflict was found to not be [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 195 | /// *and* the minimum alternative of the SLL conflict was found to not be [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | /// a truly viable alternative. Two-stage parsing cannot be used for inputs where [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 196 | /// a truly viable alternative. Two-stage parsing cannot be used for inputs where [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | /// this situation occurs. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 197 | /// this situation occurs. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | /// the available alternatives could possibly match) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 30 | /// the available alternatives could possibly match) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/error_strategy.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | ) -> Result<>::Tok, ANTLRError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/error_strategy.rs:65:66 [INFO] [stdout] | [INFO] [stdout] 65 | fn recover(&mut self, recognizer: &mut T, e: &ANTLRError) -> Result<(), ANTLRError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/token_factory.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / fn create( [INFO] [stdout] 59 | | &'a self, [INFO] [stdout] 60 | | source: Option<&mut T>, [INFO] [stdout] 61 | | ttype: i32, [INFO] [stdout] ... | [INFO] [stdout] 67 | | column: isize, [INFO] [stdout] 68 | | ) -> Self::Tok [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/error_strategy.rs:74:47 [INFO] [stdout] | [INFO] [stdout] 74 | fn sync(&mut self, recognizer: &mut T) -> Result<(), ANTLRError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/error_strategy.rs:317:35 [INFO] [stdout] | [INFO] [stdout] 317 | let expected_token_type = expected.get_min().unwrap_or(TOKEN_INVALID_TYPE) as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `expected.get_min().unwrap_or(TOKEN_INVALID_TYPE)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/error_strategy.rs:325:39 [INFO] [stdout] | [INFO] [stdout] 325 | .get_display_name(expected_token_type as i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `expected_token_type` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/atn_state.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | / { [INFO] [stdout] 182 | | already_present = true; [INFO] [stdout] 183 | | break; [INFO] [stdout] 184 | | } else if existing.is_epsilon() && trans.is_epsilon() { [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/atn_state.rs:184:71 [INFO] [stdout] | [INFO] [stdout] 184 | } else if existing.is_epsilon() && trans.is_epsilon() { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 185 | | already_present = true; [INFO] [stdout] 186 | | break; [INFO] [stdout] 187 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] = note: `#[warn(clippy::if_same_then_else)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:543:5 [INFO] [stdout] | [INFO] [stdout] 543 | /// stage of two-stage parsing to immediately terminate if an error is [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 543 | /// stage of two-stage parsing to immediately terminate if an error is [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `InputData` has a `len` method but no (possibly inherited) `is_empty` method [INFO] [stdout] --> src/char_stream.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / pub trait InputData: [INFO] [stdout] 21 | | Index, Output = Self> [INFO] [stdout] 22 | | + Index, Output = Self> [INFO] [stdout] 23 | | + ToOwned [INFO] [stdout] ... | [INFO] [stdout] 42 | | fn to_display(&self) -> String; [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stdout] = note: `#[warn(clippy::len_without_is_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:544:5 [INFO] [stdout] | [INFO] [stdout] 544 | /// encountered, and immediately fall back to the second stage. In addition to [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 544 | /// encountered, and immediately fall back to the second stage. In addition to [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:545:5 [INFO] [stdout] | [INFO] [stdout] 545 | /// avoiding wasted work by attempting to recover from errors here, the empty [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 545 | /// avoiding wasted work by attempting to recover from errors here, the empty [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:546:5 [INFO] [stdout] | [INFO] [stdout] 546 | /// implementation of `sync` improves the performance of [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 546 | /// implementation of `sync` improves the performance of [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:547:5 [INFO] [stdout] | [INFO] [stdout] 547 | /// the first stage. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 547 | /// the first stage. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:549:5 [INFO] [stdout] | [INFO] [stdout] 549 | /// reported or logged, and the parse result is simply ignored if errors occur, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 549 | /// reported or logged, and the parse result is simply ignored if errors occur, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:550:5 [INFO] [stdout] | [INFO] [stdout] 550 | /// the `BailErrorStrategy` avoids wasting work on recovering from errors [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 550 | /// the `BailErrorStrategy` avoids wasting work on recovering from errors [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:551:5 [INFO] [stdout] | [INFO] [stdout] 551 | /// when the result will be ignored either way. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 551 | /// when the result will be ignored either way. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> src/errors.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | / pub fn new<'a, T: Parser<'a>>( [INFO] [stdout] 231 | | recog: &mut T, [INFO] [stdout] 232 | | predicate: Option, [INFO] [stdout] 233 | | msg: Option, [INFO] [stdout] ... | [INFO] [stdout] 260 | | }) [INFO] [stdout] 261 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] = note: `#[warn(clippy::new_ret_no_self)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/input_stream.rs:144:6 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'a, Data: Deref> InputStream [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/input_stream.rs:155:6 [INFO] [stdout] | [INFO] [stdout] 155 | impl<'a, Data: Deref> IntStream for InputStream [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/lexer_atn_simulator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `usize::` will resolve to the respective associated constant [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lexer_atn_simulator.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | ) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/lexer_atn_simulator.rs:87:22 [INFO] [stdout] | [INFO] [stdout] 87 | let result = (|| { [INFO] [stdout] | ______________________^ [INFO] [stdout] 88 | | self.start_index = lexer.input().index(); [INFO] [stdout] 89 | | self.prev_accept.reset(); [INFO] [stdout] 90 | | let temp = self.base.decision_to_dfa.clone(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | })(); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lexer_atn_simulator.rs:193:10 [INFO] [stdout] | [INFO] [stdout] 193 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lexer_atn_simulator.rs:226:10 [INFO] [stdout] | [INFO] [stdout] 226 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lexer_atn_simulator.rs:377:10 [INFO] [stdout] | [INFO] [stdout] 377 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/lexer_atn_simulator.rs:407:15 [INFO] [stdout] | [INFO] [stdout] 407 | fn accept<'input>(&mut self, input: &mut impl IntStream) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/lexer_atn_simulator.rs:549:21 [INFO] [stdout] | [INFO] [stdout] 549 | rt.follow_state as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rt.follow_state` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty doc comment [INFO] [stdout] --> src/parser.rs:189:1 [INFO] [stdout] | [INFO] [stdout] 189 | /// [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider removing or filling it [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs [INFO] [stdout] = note: `#[warn(clippy::empty_docs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:428:10 [INFO] [stdout] | [INFO] [stdout] 428 | ) -> Result<>::Tok, ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:453:10 [INFO] [stdout] | [INFO] [stdout] 453 | ) -> Result<>::Tok, ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:505:51 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn trigger_enter_rule_event(&mut self) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:514:50 [INFO] [stdout] | [INFO] [stdout] 514 | pub fn trigger_exit_rule_event(&mut self) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:554:36 [INFO] [stdout] | [INFO] [stdout] 554 | pub fn exit_rule(&mut self) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:580:10 [INFO] [stdout] | [INFO] [stdout] 580 | ) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:617:10 [INFO] [stdout] | [INFO] [stdout] 617 | ) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:636:10 [INFO] [stdout] | [INFO] [stdout] 636 | ) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `self.ctx` after checking its variant with `is_some` [INFO] [stdout] --> src/parser.rs:654:13 [INFO] [stdout] | [INFO] [stdout] 653 | if self.build_parse_trees && self.ctx.is_some() { [INFO] [stdout] | ------------------ the check is happening here [INFO] [stdout] 654 | self.ctx.as_ref().unwrap().add_child(retctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `&Box`. Consider using just `&T` [INFO] [stdout] --> src/parser.rs:714:22 [INFO] [stdout] | [INFO] [stdout] 714 | fn new(listener: &Box) -> ListenerId { [INFO] [stdout] | ^^^^^^^ help: try: `&T` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box [INFO] [stdout] = note: `#[warn(clippy::borrowed_box)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/parser_atn_simulator.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{ptr, usize}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `usize::` will resolve to the respective associated constant [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser_atn_simulator.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 166 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a new box [INFO] [stdout] --> src/parser_atn_simulator.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | local.dfa_mut().states[s0].configs = Box::new(s0_closure); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace existing content with inner value instead: `*local.dfa_mut().states[s0].configs = s0_closure` [INFO] [stdout] | [INFO] [stdout] = note: this creates a needless allocation [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#replace_box [INFO] [stdout] = note: `#[warn(clippy::replace_box)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser_atn_simulator.rs:243:10 [INFO] [stdout] | [INFO] [stdout] 243 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser_atn_simulator.rs:463:10 [INFO] [stdout] | [INFO] [stdout] 463 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/prediction_context.rs:194:34 [INFO] [stdout] | [INFO] [stdout] 194 | hasher.write_i32(*return_state as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: try: `(*return_state)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/prediction_context.rs:209:52 [INFO] [stdout] | [INFO] [stdout] 209 | .for_each(|x| hasher.write_i32(*x as i32)); [INFO] [stdout] | ^^^^^^^^^ help: try: `(*x)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/prediction_context.rs:536:56 [INFO] [stdout] | [INFO] [stdout] 536 | PredictionContext::new_singleton(Some(parent), transition.follow_state as i32).alloc() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `transition.follow_state` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/parser_atn_simulator.rs:903:9 [INFO] [stdout] | [INFO] [stdout] 903 | alts.get_min().unwrap_or(INVALID_ALT) as i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `alts.get_min().unwrap_or(INVALID_ALT)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/parser_atn_simulator.rs:947:5 [INFO] [stdout] | [INFO] [stdout] 947 | / fn closure<'a, T: Parser<'a>>( [INFO] [stdout] 948 | | &self, [INFO] [stdout] 949 | | config: ATNConfig, [INFO] [stdout] 950 | | configs: &mut ATNConfigSet, [INFO] [stdout] ... | [INFO] [stdout] 955 | | local: &mut Local<'_, 'a, T>, [INFO] [stdout] 956 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/parser_atn_simulator.rs:974:5 [INFO] [stdout] | [INFO] [stdout] 974 | / fn closure_checking_stop_state<'a, T: Parser<'a>>( [INFO] [stdout] 975 | | &self, [INFO] [stdout] 976 | | mut config: ATNConfig, [INFO] [stdout] 977 | | configs: &mut ATNConfigSet, [INFO] [stdout] ... | [INFO] [stdout] 983 | | local: &mut Local<'_, 'a, T>, [INFO] [stdout] 984 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parser_atn_simulator.rs:1030:37 [INFO] [stdout] | [INFO] [stdout] 1030 | assert!(depth > i32::min_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1030 - assert!(depth > i32::min_value()); [INFO] [stdout] 1030 + assert!(depth > i32::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/parser_atn_simulator.rs:1060:5 [INFO] [stdout] | [INFO] [stdout] 1060 | / fn closure_work<'a, T: Parser<'a>>( [INFO] [stdout] 1061 | | &self, [INFO] [stdout] 1062 | | config: ATNConfig, [INFO] [stdout] 1063 | | configs: &mut ATNConfigSet, [INFO] [stdout] ... | [INFO] [stdout] 1069 | | local: &mut Local<'_, 'a, T>, [INFO] [stdout] 1070 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/parser_atn_simulator.rs:1107:59 [INFO] [stdout] | [INFO] [stdout] 1107 | if outermost_precedence_return == atn_start_state.get_rule_index() as i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `atn_start_state.get_rule_index()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parser_atn_simulator.rs:1118:41 [INFO] [stdout] | [INFO] [stdout] 1118 | assert!(new_depth > i32::min_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1118 - assert!(new_depth > i32::min_value()); [INFO] [stdout] 1118 + assert!(new_depth > i32::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/parser_atn_simulator.rs:1229:5 [INFO] [stdout] | [INFO] [stdout] 1229 | / fn get_epsilon_target<'a, T: Parser<'a>>( [INFO] [stdout] 1230 | | &self, [INFO] [stdout] 1231 | | config: &ATNConfig, [INFO] [stdout] 1232 | | t: &dyn Transition, [INFO] [stdout] ... | [INFO] [stdout] 1237 | | local: &mut Local<'_, 'a, T>, [INFO] [stdout] 1238 | | ) -> Option { [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/parser_atn_simulator.rs:1328:12 [INFO] [stdout] | [INFO] [stdout] 1328 | if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1328 - if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] 1328 + if !(!collect_predicates || pt.is_ctx_dependent && !in_context) { [INFO] [stdout] | [INFO] [stdout] 1328 - if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] 1328 + if (in_context || !pt.is_ctx_dependent) && collect_predicates { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/parser_atn_simulator.rs:1328:34 [INFO] [stdout] | [INFO] [stdout] 1328 | if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1328 - if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] 1328 + if collect_predicates && !(pt.is_ctx_dependent && !in_context) { [INFO] [stdout] | [INFO] [stdout] 1328 - if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] 1328 + if collect_predicates && !pt.is_ctx_dependent || in_context { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/parser_atn_simulator.rs:1358:13 [INFO] [stdout] | [INFO] [stdout] 1358 | t.follow_state as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `t.follow_state` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/parser_atn_simulator.rs:1494:5 [INFO] [stdout] | [INFO] [stdout] 1494 | / fn report_ambiguity<'a, T: Parser<'a>>( [INFO] [stdout] 1495 | | &self, [INFO] [stdout] 1496 | | dfa: &DFA, [INFO] [stdout] 1497 | | start_index: isize, [INFO] [stdout] ... | [INFO] [stdout] 1502 | | parser: &mut T, [INFO] [stdout] 1503 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/prediction_mode.rs:125:42 [INFO] [stdout] | [INFO] [stdout] 125 | pub(crate) fn all_subsets_equal(altsets: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 125 - pub(crate) fn all_subsets_equal(altsets: &Vec) -> bool { [INFO] [stdout] 125 + pub(crate) fn all_subsets_equal(altsets: &[BitSet]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/prediction_mode.rs:131:41 [INFO] [stdout] | [INFO] [stdout] 131 | fn has_non_conflicting_alt_set(altsets: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 131 - fn has_non_conflicting_alt_set(altsets: &Vec) -> bool { [INFO] [stdout] 131 + fn has_non_conflicting_alt_set(altsets: &[BitSet]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/prediction_mode.rs:146:33 [INFO] [stdout] | [INFO] [stdout] 146 | pub(crate) fn get_alts(altsets: &Vec) -> BitSet { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 146 - pub(crate) fn get_alts(altsets: &Vec) -> BitSet { [INFO] [stdout] 146 + pub(crate) fn get_alts(altsets: &[BitSet]) -> BitSet { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/dfa.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | usize::max_value(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 70 - usize::max_value(), [INFO] [stdout] 70 + usize::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `LEXER` contains a capitalized acronym [INFO] [stdout] --> src/atn_type.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | LEXER = 0, [INFO] [stdout] | ^^^^^ help: consider making the acronym lowercase, except the initial letter: `Lexer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `PARSER` contains a capitalized acronym [INFO] [stdout] --> src/atn_type.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | PARSER, [INFO] [stdout] | ^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Parser` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/rule_context.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | usize::max_value() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 81 - usize::max_value() [INFO] [stdout] 81 + usize::MAX [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/tree.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | usize::max_value() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 140 - usize::max_value() [INFO] [stdout] 140 + usize::MAX [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:396:58 [INFO] [stdout] | [INFO] [stdout] 396 | fn enter_every_rule(&mut self, _ctx: &Node::Type) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:400:57 [INFO] [stdout] | [INFO] [stdout] 400 | fn exit_every_rule(&mut self, _ctx: &Node::Type) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:409:43 [INFO] [stdout] | [INFO] [stdout] 409 | fn enter(&self, _listener: &mut T) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:413:42 [INFO] [stdout] | [INFO] [stdout] 413 | fn exit(&self, _listener: &mut T) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:443:10 [INFO] [stdout] | [INFO] [stdout] 443 | ) -> Result, ANTLRError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/tree.rs:458:56 [INFO] [stdout] | [INFO] [stdout] 458 | fn walk_inner(listener: &mut T, t: &Node::Type) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Vec` is already on the heap, the boxing is unnecessary [INFO] [stdout] --> src/atn_config_set.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) configs: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `Vec` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_box [INFO] [stdout] = note: `#[warn(clippy::vec_box)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/atn_deserializer.rs:275:33 [INFO] [stdout] | [INFO] [stdout] 275 | ... target.get_rule_index() as i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `target.get_rule_index()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/atn_deserializer.rs:411:5 [INFO] [stdout] | [INFO] [stdout] 411 | / fn edge_factory( [INFO] [stdout] 412 | | &self, [INFO] [stdout] 413 | | _atn: &ATN, [INFO] [stdout] 414 | | type_index: i32, [INFO] [stdout] ... | [INFO] [stdout] 420 | | sets: &Vec, [INFO] [stdout] 421 | | ) -> Box { [INFO] [stdout] | |____________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/atn_deserializer.rs:420:15 [INFO] [stdout] | [INFO] [stdout] 420 | sets: &Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 420 - sets: &Vec, [INFO] [stdout] 420 + sets: &[IntervalSet], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/error_listener.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / fn report_ambiguity( [INFO] [stdout] 41 | | &self, [INFO] [stdout] 42 | | _recognizer: &T, [INFO] [stdout] 43 | | _dfa: &DFA, [INFO] [stdout] ... | [INFO] [stdout] 48 | | _configs: &ATNConfigSet, [INFO] [stdout] 49 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | /// grammar can match the input. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 189 | /// grammar can match the input. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | /// prediction resolved an SLL conflict to a unique alternative which equaled the [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 191 | /// prediction resolved an SLL conflict to a unique alternative which equaled the [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:192:5 [INFO] [stdout] | [INFO] [stdout] 192 | /// minimum alternative of the SLL conflict. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 192 | /// minimum alternative of the SLL conflict. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 194 | /// full-context prediction resolved an SLL conflict to a unique alternative, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 194 | /// full-context prediction resolved an SLL conflict to a unique alternative, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:195:5 [INFO] [stdout] | [INFO] [stdout] 195 | /// *and* the minimum alternative of the SLL conflict was found to not be [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 195 | /// *and* the minimum alternative of the SLL conflict was found to not be [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | /// a truly viable alternative. Two-stage parsing cannot be used for inputs where [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 196 | /// a truly viable alternative. Two-stage parsing cannot be used for inputs where [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_listener.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | /// this situation occurs. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 197 | /// this situation occurs. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | /// the available alternatives could possibly match) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 30 | /// the available alternatives could possibly match) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/error_strategy.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | ) -> Result<>::Tok, ANTLRError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/error_strategy.rs:65:66 [INFO] [stdout] | [INFO] [stdout] 65 | fn recover(&mut self, recognizer: &mut T, e: &ANTLRError) -> Result<(), ANTLRError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/error_strategy.rs:74:47 [INFO] [stdout] | [INFO] [stdout] 74 | fn sync(&mut self, recognizer: &mut T) -> Result<(), ANTLRError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/error_strategy.rs:317:35 [INFO] [stdout] | [INFO] [stdout] 317 | let expected_token_type = expected.get_min().unwrap_or(TOKEN_INVALID_TYPE) as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `expected.get_min().unwrap_or(TOKEN_INVALID_TYPE)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/error_strategy.rs:325:39 [INFO] [stdout] | [INFO] [stdout] 325 | .get_display_name(expected_token_type as i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `expected_token_type` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:543:5 [INFO] [stdout] | [INFO] [stdout] 543 | /// stage of two-stage parsing to immediately terminate if an error is [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 543 | /// stage of two-stage parsing to immediately terminate if an error is [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:544:5 [INFO] [stdout] | [INFO] [stdout] 544 | /// encountered, and immediately fall back to the second stage. In addition to [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 544 | /// encountered, and immediately fall back to the second stage. In addition to [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:545:5 [INFO] [stdout] | [INFO] [stdout] 545 | /// avoiding wasted work by attempting to recover from errors here, the empty [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 545 | /// avoiding wasted work by attempting to recover from errors here, the empty [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:546:5 [INFO] [stdout] | [INFO] [stdout] 546 | /// implementation of `sync` improves the performance of [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 546 | /// implementation of `sync` improves the performance of [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:547:5 [INFO] [stdout] | [INFO] [stdout] 547 | /// the first stage. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 547 | /// the first stage. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:549:5 [INFO] [stdout] | [INFO] [stdout] 549 | /// reported or logged, and the parse result is simply ignored if errors occur, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 549 | /// reported or logged, and the parse result is simply ignored if errors occur, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:550:5 [INFO] [stdout] | [INFO] [stdout] 550 | /// the `BailErrorStrategy` avoids wasting work on recovering from errors [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 550 | /// the `BailErrorStrategy` avoids wasting work on recovering from errors [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/error_strategy.rs:551:5 [INFO] [stdout] | [INFO] [stdout] 551 | /// when the result will be ignored either way. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 551 | /// when the result will be ignored either way. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> src/errors.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | / pub fn new<'a, T: Parser<'a>>( [INFO] [stdout] 231 | | recog: &mut T, [INFO] [stdout] 232 | | predicate: Option, [INFO] [stdout] 233 | | msg: Option, [INFO] [stdout] ... | [INFO] [stdout] 260 | | }) [INFO] [stdout] 261 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] = note: `#[warn(clippy::new_ret_no_self)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/input_stream.rs:144:6 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'a, Data: Deref> InputStream [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/input_stream.rs:155:6 [INFO] [stdout] | [INFO] [stdout] 155 | impl<'a, Data: Deref> IntStream for InputStream [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/lexer_atn_simulator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `usize::` will resolve to the respective associated constant [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lexer_atn_simulator.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | ) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/lexer_atn_simulator.rs:87:22 [INFO] [stdout] | [INFO] [stdout] 87 | let result = (|| { [INFO] [stdout] | ______________________^ [INFO] [stdout] 88 | | self.start_index = lexer.input().index(); [INFO] [stdout] 89 | | self.prev_accept.reset(); [INFO] [stdout] 90 | | let temp = self.base.decision_to_dfa.clone(); [INFO] [stdout] ... | [INFO] [stdout] 102 | | })(); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lexer_atn_simulator.rs:193:10 [INFO] [stdout] | [INFO] [stdout] 193 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lexer_atn_simulator.rs:226:10 [INFO] [stdout] | [INFO] [stdout] 226 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/lexer_atn_simulator.rs:377:10 [INFO] [stdout] | [INFO] [stdout] 377 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/lexer_atn_simulator.rs:407:15 [INFO] [stdout] | [INFO] [stdout] 407 | fn accept<'input>(&mut self, input: &mut impl IntStream) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> tests/perf.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/lexer_atn_simulator.rs:549:21 [INFO] [stdout] | [INFO] [stdout] 549 | rt.follow_state as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rt.follow_state` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty doc comment [INFO] [stdout] --> src/parser.rs:189:1 [INFO] [stdout] | [INFO] [stdout] 189 | /// [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider removing or filling it [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs [INFO] [stdout] = note: `#[warn(clippy::empty_docs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:428:10 [INFO] [stdout] | [INFO] [stdout] 428 | ) -> Result<>::Tok, ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:453:10 [INFO] [stdout] | [INFO] [stdout] 453 | ) -> Result<>::Tok, ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:505:51 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn trigger_enter_rule_event(&mut self) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:514:50 [INFO] [stdout] | [INFO] [stdout] 514 | pub fn trigger_exit_rule_event(&mut self) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:554:36 [INFO] [stdout] | [INFO] [stdout] 554 | pub fn exit_rule(&mut self) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:580:10 [INFO] [stdout] | [INFO] [stdout] 580 | ) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:617:10 [INFO] [stdout] | [INFO] [stdout] 617 | ) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser.rs:636:10 [INFO] [stdout] | [INFO] [stdout] 636 | ) -> Result<(), ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `self.ctx` after checking its variant with `is_some` [INFO] [stdout] --> src/parser.rs:654:13 [INFO] [stdout] | [INFO] [stdout] 653 | if self.build_parse_trees && self.ctx.is_some() { [INFO] [stdout] | ------------------ the check is happening here [INFO] [stdout] 654 | self.ctx.as_ref().unwrap().add_child(retctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `&Box`. Consider using just `&T` [INFO] [stdout] --> src/parser.rs:714:22 [INFO] [stdout] | [INFO] [stdout] 714 | fn new(listener: &Box) -> ListenerId { [INFO] [stdout] | ^^^^^^^ help: try: `&T` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box [INFO] [stdout] = note: `#[warn(clippy::borrowed_box)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/parser_atn_simulator.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{ptr, usize}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `usize::` will resolve to the respective associated constant [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser_atn_simulator.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 166 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a new box [INFO] [stdout] --> src/parser_atn_simulator.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | local.dfa_mut().states[s0].configs = Box::new(s0_closure); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace existing content with inner value instead: `*local.dfa_mut().states[s0].configs = s0_closure` [INFO] [stdout] | [INFO] [stdout] = note: this creates a needless allocation [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#replace_box [INFO] [stdout] = note: `#[warn(clippy::replace_box)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser_atn_simulator.rs:243:10 [INFO] [stdout] | [INFO] [stdout] 243 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/parser_atn_simulator.rs:463:10 [INFO] [stdout] | [INFO] [stdout] 463 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/errors.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | NoAltError(NoViableAltError), [INFO] [stdout] | ---------------------------- the largest variant contains at least 216 bytes [INFO] [stdout] ... [INFO] [stdout] 41 | InputMismatchError(InputMisMatchError), [INFO] [stdout] | -------------------------------------- the variant `InputMismatchError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 47 | PredicateError(FailedPredicateError), [INFO] [stdout] | ------------------------------------ the variant `PredicateError` contains at least 168 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/csvlexer.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/csvlexer.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | pub const modeNames: [&'static str;1] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/csvlexer.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | pub const ruleNames: [&'static str;6] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/csvparser.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | pub const ruleNames: [&'static str; 4] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses [INFO] [stdout] --> tests/gen/csvparser.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | if !((((_la) & !0x3f) == 0 && ((1usize << _la) & 110) != 0)) {break} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove them: `(((_la) & !0x3f) == 0 && ((1usize << _la) & 110) != 0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_parens [INFO] [stdout] = note: `#[warn(clippy::double_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/parser_atn_simulator.rs:903:9 [INFO] [stdout] | [INFO] [stdout] 903 | alts.get_min().unwrap_or(INVALID_ALT) as i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `alts.get_min().unwrap_or(INVALID_ALT)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | * Visit a parse tree produced by {@link CSVParser#csvFile}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] = note: `#[warn(clippy::tabs_in_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | * Visit a parse tree produced by {@link CSVParser#hdr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | * Visit a parse tree produced by {@link CSVParser#row}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/parser_atn_simulator.rs:947:5 [INFO] [stdout] | [INFO] [stdout] 947 | / fn closure<'a, T: Parser<'a>>( [INFO] [stdout] 948 | | &self, [INFO] [stdout] 949 | | config: ATNConfig, [INFO] [stdout] 950 | | configs: &mut ATNConfigSet, [INFO] [stdout] ... | [INFO] [stdout] 955 | | local: &mut Local<'_, 'a, T>, [INFO] [stdout] 956 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | * Visit a parse tree produced by {@link CSVParser#field}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/parser_atn_simulator.rs:974:5 [INFO] [stdout] | [INFO] [stdout] 974 | / fn closure_checking_stop_state<'a, T: Parser<'a>>( [INFO] [stdout] 975 | | &self, [INFO] [stdout] 976 | | mut config: ATNConfig, [INFO] [stdout] 977 | | configs: &mut ATNConfigSet, [INFO] [stdout] ... | [INFO] [stdout] 983 | | local: &mut Local<'_, 'a, T>, [INFO] [stdout] 984 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | * Visit a parse tree produced by {@link CSVParser#csvFile}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | * Visit a parse tree produced by {@link CSVParser#hdr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | * Visit a parse tree produced by {@link CSVParser#row}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | * Visit a parse tree produced by {@link CSVParser#field}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorbasiclexer.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorbasiclexer.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | pub const modeNames: [&'static str;1] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorbasiclexer.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | pub const ruleNames: [&'static str;1] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorbasicparser.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | pub const ruleNames: [&'static str; 1] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parser_atn_simulator.rs:1030:37 [INFO] [stdout] | [INFO] [stdout] 1030 | assert!(depth > i32::min_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1030 - assert!(depth > i32::min_value()); [INFO] [stdout] 1030 + assert!(depth > i32::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/parser_atn_simulator.rs:1060:5 [INFO] [stdout] | [INFO] [stdout] 1060 | / fn closure_work<'a, T: Parser<'a>>( [INFO] [stdout] 1061 | | &self, [INFO] [stdout] 1062 | | config: ATNConfig, [INFO] [stdout] 1063 | | configs: &mut ATNConfigSet, [INFO] [stdout] ... | [INFO] [stdout] 1069 | | local: &mut Local<'_, 'a, T>, [INFO] [stdout] 1070 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/parser_atn_simulator.rs:1107:59 [INFO] [stdout] | [INFO] [stdout] 1107 | if outermost_precedence_return == atn_start_state.get_rule_index() as i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `atn_start_state.get_rule_index()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parser_atn_simulator.rs:1118:41 [INFO] [stdout] | [INFO] [stdout] 1118 | assert!(new_depth > i32::min_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1118 - assert!(new_depth > i32::min_value()); [INFO] [stdout] 1118 + assert!(new_depth > i32::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorbasicvisitor.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | * Visit a parse tree produced by {@link VisitorBasicParser#s}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorbasicvisitor.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/parser_atn_simulator.rs:1229:5 [INFO] [stdout] | [INFO] [stdout] 1229 | / fn get_epsilon_target<'a, T: Parser<'a>>( [INFO] [stdout] 1230 | | &self, [INFO] [stdout] 1231 | | config: &ATNConfig, [INFO] [stdout] 1232 | | t: &dyn Transition, [INFO] [stdout] ... | [INFO] [stdout] 1237 | | local: &mut Local<'_, 'a, T>, [INFO] [stdout] 1238 | | ) -> Option { [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorbasicvisitor.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorbasicvisitor.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | * Visit a parse tree produced by {@link VisitorBasicParser#s}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorbasicvisitor.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorbasicvisitor.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorcalclexer.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorcalclexer.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | pub const modeNames: [&'static str;1] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorcalclexer.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | pub const ruleNames: [&'static str;6] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | pub const ruleNames: [&'static str; 2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/parser_atn_simulator.rs:1328:12 [INFO] [stdout] | [INFO] [stdout] 1328 | if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1328 - if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] 1328 + if !(!collect_predicates || pt.is_ctx_dependent && !in_context) { [INFO] [stdout] | [INFO] [stdout] 1328 - if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] 1328 + if (in_context || !pt.is_ctx_dependent) && collect_predicates { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/parser_atn_simulator.rs:1328:34 [INFO] [stdout] | [INFO] [stdout] 1328 | if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1328 - if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] 1328 + if collect_predicates && !(pt.is_ctx_dependent && !in_context) { [INFO] [stdout] | [INFO] [stdout] 1328 - if collect_predicates && (!pt.is_ctx_dependent || (pt.is_ctx_dependent && in_context)) { [INFO] [stdout] 1328 + if collect_predicates && !pt.is_ctx_dependent || in_context { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/parser_atn_simulator.rs:1358:13 [INFO] [stdout] | [INFO] [stdout] 1358 | t.follow_state as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `t.follow_state` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | * Visit a parse tree produced by {@link VisitorCalcParser#s}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | * Visit a parse tree produced by the {@code add} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | * Visit a parse tree produced by the {@code number} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | * Visit a parse tree produced by the {@code multiply} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | * Visit a parse tree produced by {@link VisitorCalcParser#s}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/parser_atn_simulator.rs:1494:5 [INFO] [stdout] | [INFO] [stdout] 1494 | / fn report_ambiguity<'a, T: Parser<'a>>( [INFO] [stdout] 1495 | | &self, [INFO] [stdout] 1496 | | dfa: &DFA, [INFO] [stdout] 1497 | | start_index: isize, [INFO] [stdout] ... | [INFO] [stdout] 1502 | | parser: &mut T, [INFO] [stdout] 1503 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | * Visit a parse tree produced by the {@code add} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | * Visit a parse tree produced by the {@code number} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | * Visit a parse tree produced by the {@code multiply} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/prediction_mode.rs:125:42 [INFO] [stdout] | [INFO] [stdout] 125 | pub(crate) fn all_subsets_equal(altsets: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 125 - pub(crate) fn all_subsets_equal(altsets: &Vec) -> bool { [INFO] [stdout] 125 + pub(crate) fn all_subsets_equal(altsets: &[BitSet]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/prediction_mode.rs:131:41 [INFO] [stdout] | [INFO] [stdout] 131 | fn has_non_conflicting_alt_set(altsets: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 131 - fn has_non_conflicting_alt_set(altsets: &Vec) -> bool { [INFO] [stdout] 131 + fn has_non_conflicting_alt_set(altsets: &[BitSet]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/prediction_mode.rs:146:33 [INFO] [stdout] | [INFO] [stdout] 146 | pub(crate) fn get_alts(altsets: &Vec) -> BitSet { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 146 - pub(crate) fn get_alts(altsets: &Vec) -> BitSet { [INFO] [stdout] 146 + pub(crate) fn get_alts(altsets: &[BitSet]) -> BitSet { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `LEXER` contains a capitalized acronym [INFO] [stdout] --> src/atn_type.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | LEXER = 0, [INFO] [stdout] | ^^^^^ help: consider making the acronym lowercase, except the initial letter: `Lexer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `PARSER` contains a capitalized acronym [INFO] [stdout] --> src/atn_type.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | PARSER, [INFO] [stdout] | ^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Parser` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/rule_context.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | usize::max_value() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 81 - usize::max_value() [INFO] [stdout] 81 + usize::MAX [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/csvlexer.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/csvlexer.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | pub const modeNames: [&'static str;1] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/csvlexer.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | pub const ruleNames: [&'static str;6] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/csvparser.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | pub const ruleNames: [&'static str; 4] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses [INFO] [stdout] --> tests/gen/csvparser.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | if !((((_la) & !0x3f) == 0 && ((1usize << _la) & 110) != 0)) {break} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove them: `(((_la) & !0x3f) == 0 && ((1usize << _la) & 110) != 0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_parens [INFO] [stdout] = note: `#[warn(clippy::double_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | * Visit a parse tree produced by {@link CSVParser#csvFile}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] = note: `#[warn(clippy::tabs_in_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | * Visit a parse tree produced by {@link CSVParser#hdr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | * Visit a parse tree produced by {@link CSVParser#row}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | * Visit a parse tree produced by {@link CSVParser#field}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | * Visit a parse tree produced by {@link CSVParser#csvFile}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | * Visit a parse tree produced by {@link CSVParser#hdr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | * Visit a parse tree produced by {@link CSVParser#row}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | * Visit a parse tree produced by {@link CSVParser#field}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/csvvisitor.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/referencetoatnlexer.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/referencetoatnlexer.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | pub const modeNames: [&'static str;1] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/referencetoatnlexer.rs:44:25 [INFO] [stdout] | [INFO] [stdout] 44 | pub const ruleNames: [&'static str;3] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/referencetoatnparser.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | pub const ruleNames: [&'static str; 1] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/simplelrlexer.rs:35:28 [INFO] [stdout] | [INFO] [stdout] 35 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/simplelrlexer.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | pub const modeNames: [&'static str;1] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/simplelrlexer.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | pub const ruleNames: [&'static str;2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/simplelrparser.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | pub const ruleNames: [&'static str; 2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorcalclexer.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorcalclexer.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | pub const modeNames: [&'static str;1] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorcalclexer.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | pub const ruleNames: [&'static str;6] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | pub const ruleNames: [&'static str; 2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | * Visit a parse tree produced by {@link VisitorCalcParser#s}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | * Visit a parse tree produced by the {@code add} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | * Visit a parse tree produced by the {@code number} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | * Visit a parse tree produced by the {@code multiply} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | * Visit a parse tree produced by {@link VisitorCalcParser#s}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | * Visit a parse tree produced by the {@code add} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | * Visit a parse tree produced by the {@code number} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | * Visit a parse tree produced by the {@code multiply} [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | * labeled alternative in {@link VisitorCalcParser#expr}. [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | * @param ctx the parse tree [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using tabs in doc comments is not recommended [INFO] [stdout] --> tests/gen/visitorcalcvisitor.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | */ [INFO] [stdout] | ^^^^ help: consider using four spaces per tab [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/xmllexer.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/xmllexer.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | pub const modeNames: [&'static str;3] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/xmllexer.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 59 | pub const ruleNames: [&'static str;24] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/labelslexer.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/labelslexer.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | pub const modeNames: [&'static str;1] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/labelslexer.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | pub const ruleNames: [&'static str;9] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> tests/gen/labelsparser.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | pub const ruleNames: [&'static str; 2] = [ [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> tests/visitors_tests.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | node: &>::Type, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> tests/visitors_tests.rs:179:17 [INFO] [stdout] | [INFO] [stdout] 179 | node: &>::Type, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> tests/visitors_tests.rs:180:17 [INFO] [stdout] | [INFO] [stdout] 180 | current: &Self::Return, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aggregate` [INFO] [stdout] --> tests/visitors_tests.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | aggregate: Self::Return, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aggregate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next` [INFO] [stdout] --> tests/visitors_tests.rs:207:17 [INFO] [stdout] | [INFO] [stdout] 207 | next: Self::Return, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_next` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TestVisitorUnit` is never constructed [INFO] [stdout] --> tests/visitors_tests.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | struct TestVisitorUnit(String); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> tests/gen/csvlexer.rs:39:40 [INFO] [stdout] | [INFO] [stdout] 39 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | ^^^ help: consider reducing it to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] = note: `#[warn(clippy::identity_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of an `Arc` that is not `Send` and `Sync` [INFO] [stdout] --> tests/gen/csvparser.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | let interpreter = Arc::new(ParserATNSimulator::new( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 102 | | _ATN.clone(), [INFO] [stdout] 103 | | _decision_to_DFA.clone(), [INFO] [stdout] 104 | | _shared_context_cache.clone(), [INFO] [stdout] 105 | | )); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: `Arc` is not `Send` and `Sync` as `ParserATNSimulator` is not `Sync` [INFO] [stdout] = help: if the `Arc` will not be used across threads replace it with an `Rc` [INFO] [stdout] = help: otherwise make `ParserATNSimulator` `Send` and `Sync` or consider a wrapper type such as `Mutex` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync [INFO] [stdout] = note: `#[warn(clippy::arc_with_non_send_sync)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/csvparser.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/csvparser.rs:295:40 [INFO] [stdout] | [INFO] [stdout] 295 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 296 | | [INFO] [stdout] 297 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 298 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 322 | | Ok(()) [INFO] [stdout] 323 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/csvparser.rs:404:5 [INFO] [stdout] | [INFO] [stdout] 404 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/csvparser.rs:410:40 [INFO] [stdout] | [INFO] [stdout] 410 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 411 | | [INFO] [stdout] 412 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 413 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 420 | | Ok(()) [INFO] [stdout] 421 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/csvparser.rs:505:5 [INFO] [stdout] | [INFO] [stdout] 505 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/csvparser.rs:512:40 [INFO] [stdout] | [INFO] [stdout] 512 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 513 | | [INFO] [stdout] 514 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 515 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 555 | | Ok(()) [INFO] [stdout] 556 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/csvparser.rs:644:5 [INFO] [stdout] | [INFO] [stdout] 644 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/csvparser.rs:650:40 [INFO] [stdout] | [INFO] [stdout] 650 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 651 | | [INFO] [stdout] 652 | | recog.base.set_state(32); [INFO] [stdout] 653 | | recog.err_handler.sync(&mut recog.base)?; [INFO] [stdout] ... | [INFO] [stdout] 687 | | Ok(()) [INFO] [stdout] 688 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> tests/gen/visitorbasiclexer.rs:34:40 [INFO] [stdout] | [INFO] [stdout] 34 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | ^^^ help: consider reducing it to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of an `Arc` that is not `Send` and `Sync` [INFO] [stdout] --> tests/gen/visitorbasicparser.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let interpreter = Arc::new(ParserATNSimulator::new( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 93 | | _ATN.clone(), [INFO] [stdout] 94 | | _decision_to_DFA.clone(), [INFO] [stdout] 95 | | _shared_context_cache.clone(), [INFO] [stdout] 96 | | )); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: `Arc` is not `Send` and `Sync` as `ParserATNSimulator` is not `Sync` [INFO] [stdout] = help: if the `Arc` will not be used across threads replace it with an `Rc` [INFO] [stdout] = help: otherwise make `ParserATNSimulator` `Send` and `Sync` or consider a wrapper type such as `Mutex` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/visitorbasicparser.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 280 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/visitorbasicparser.rs:286:40 [INFO] [stdout] | [INFO] [stdout] 286 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 287 | | [INFO] [stdout] 288 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 289 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 298 | | Ok(()) [INFO] [stdout] 299 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> tests/gen/visitorcalclexer.rs:39:40 [INFO] [stdout] | [INFO] [stdout] 39 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | ^^^ help: consider reducing it to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of an `Arc` that is not `Send` and `Sync` [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | let interpreter = Arc::new(ParserATNSimulator::new( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 100 | | _ATN.clone(), [INFO] [stdout] 101 | | _decision_to_DFA.clone(), [INFO] [stdout] 102 | | _shared_context_cache.clone(), [INFO] [stdout] 103 | | )); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: `Arc` is not `Send` and `Sync` as `ParserATNSimulator` is not `Sync` [INFO] [stdout] = help: if the `Arc` will not be used across threads replace it with an `Rc` [INFO] [stdout] = help: otherwise make `ParserATNSimulator` `Send` and `Sync` or consider a wrapper type such as `Mutex` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 312 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:318:40 [INFO] [stdout] | [INFO] [stdout] 318 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 319 | | [INFO] [stdout] 320 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 321 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 331 | | Ok(()) [INFO] [stdout] 332 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:407:2 [INFO] [stdout] | [INFO] [stdout] 407 | / fn new(parent: Option + 'input > >, invoking_state: i32) -> Rc> { [INFO] [stdout] 408 | | Rc::new( [INFO] [stdout] 409 | | ExprContextAll::Error( [INFO] [stdout] 410 | | BaseParserRuleContext::new_parser_ctx(parent, invoking_state,ExprContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 416 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] = note: `#[warn(clippy::new_ret_no_self)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:494:2 [INFO] [stdout] | [INFO] [stdout] 494 | / fn new(ctx: &dyn ExprContextAttrs<'input>) -> Rc> { [INFO] [stdout] 495 | | Rc::new( [INFO] [stdout] 496 | | ExprContextAll::AddContext( [INFO] [stdout] 497 | | BaseParserRuleContext::copy_from(ctx,AddContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 503 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:563:2 [INFO] [stdout] | [INFO] [stdout] 563 | / fn new(ctx: &dyn ExprContextAttrs<'input>) -> Rc> { [INFO] [stdout] 564 | | Rc::new( [INFO] [stdout] 565 | | ExprContextAll::NumberContext( [INFO] [stdout] 566 | | BaseParserRuleContext::copy_from(ctx,NumberContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 572 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:643:2 [INFO] [stdout] | [INFO] [stdout] 643 | / fn new(ctx: &dyn ExprContextAttrs<'input>) -> Rc> { [INFO] [stdout] 644 | | Rc::new( [INFO] [stdout] 645 | | ExprContextAll::MultiplyContext( [INFO] [stdout] 646 | | BaseParserRuleContext::copy_from(ctx,MultiplyContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 652 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:660:5 [INFO] [stdout] | [INFO] [stdout] 660 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:665:5 [INFO] [stdout] | [INFO] [stdout] 665 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:675:40 [INFO] [stdout] | [INFO] [stdout] 675 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 676 | | let mut _alt: i32; [INFO] [stdout] 677 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 678 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 770 | | Ok(()) [INFO] [stdout] 771 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: omit braces around single expression condition [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:716:11 [INFO] [stdout] | [INFO] [stdout] 716 | ... if { !(_la==VisitorCalc_MUL || _la==VisitorCalc_DIV) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!(_la==VisitorCalc_MUL || _la==VisitorCalc_DIV)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions [INFO] [stdout] = note: `#[warn(clippy::blocks_in_conditions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: omit braces around single expression condition [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:745:11 [INFO] [stdout] | [INFO] [stdout] 745 | ... if { !(_la==VisitorCalc_ADD || _la==VisitorCalc_SUB) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!(_la==VisitorCalc_ADD || _la==VisitorCalc_SUB)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_should_not_visit_EOF` should have a snake case name [INFO] [stdout] --> tests/visitors_tests.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | fn test_should_not_visit_EOF() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_should_not_visit_eof` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> tests/general_tests.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> tests/gen/csvlexer.rs:39:40 [INFO] [stdout] | [INFO] [stdout] 39 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | ^^^ help: consider reducing it to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] = note: `#[warn(clippy::identity_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of an `Arc` that is not `Send` and `Sync` [INFO] [stdout] --> tests/gen/csvparser.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | let interpreter = Arc::new(ParserATNSimulator::new( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 102 | | _ATN.clone(), [INFO] [stdout] 103 | | _decision_to_DFA.clone(), [INFO] [stdout] 104 | | _shared_context_cache.clone(), [INFO] [stdout] 105 | | )); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: `Arc` is not `Send` and `Sync` as `ParserATNSimulator` is not `Sync` [INFO] [stdout] = help: if the `Arc` will not be used across threads replace it with an `Rc` [INFO] [stdout] = help: otherwise make `ParserATNSimulator` `Send` and `Sync` or consider a wrapper type such as `Mutex` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync [INFO] [stdout] = note: `#[warn(clippy::arc_with_non_send_sync)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/csvparser.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/csvparser.rs:295:40 [INFO] [stdout] | [INFO] [stdout] 295 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 296 | | [INFO] [stdout] 297 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 298 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 322 | | Ok(()) [INFO] [stdout] 323 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/csvparser.rs:404:5 [INFO] [stdout] | [INFO] [stdout] 404 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/csvparser.rs:410:40 [INFO] [stdout] | [INFO] [stdout] 410 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 411 | | [INFO] [stdout] 412 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 413 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 420 | | Ok(()) [INFO] [stdout] 421 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/csvparser.rs:505:5 [INFO] [stdout] | [INFO] [stdout] 505 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/csvparser.rs:512:40 [INFO] [stdout] | [INFO] [stdout] 512 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 513 | | [INFO] [stdout] 514 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 515 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 555 | | Ok(()) [INFO] [stdout] 556 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/csvparser.rs:644:5 [INFO] [stdout] | [INFO] [stdout] 644 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/csvparser.rs:650:40 [INFO] [stdout] | [INFO] [stdout] 650 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 651 | | [INFO] [stdout] 652 | | recog.base.set_state(32); [INFO] [stdout] 653 | | recog.err_handler.sync(&mut recog.base)?; [INFO] [stdout] ... | [INFO] [stdout] 687 | | Ok(()) [INFO] [stdout] 688 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> tests/gen/referencetoatnlexer.rs:36:40 [INFO] [stdout] | [INFO] [stdout] 36 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | ^^^ help: consider reducing it to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of an `Arc` that is not `Send` and `Sync` [INFO] [stdout] --> tests/gen/referencetoatnparser.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let interpreter = Arc::new(ParserATNSimulator::new( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 93 | | _ATN.clone(), [INFO] [stdout] 94 | | _decision_to_DFA.clone(), [INFO] [stdout] 95 | | _shared_context_cache.clone(), [INFO] [stdout] 96 | | )); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: `Arc` is not `Send` and `Sync` as `ParserATNSimulator` is not `Sync` [INFO] [stdout] = help: if the `Arc` will not be used across threads replace it with an `Rc` [INFO] [stdout] = help: otherwise make `ParserATNSimulator` `Send` and `Sync` or consider a wrapper type such as `Mutex` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/referencetoatnparser.rs:271:5 [INFO] [stdout] | [INFO] [stdout] 271 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/referencetoatnparser.rs:278:40 [INFO] [stdout] | [INFO] [stdout] 278 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 279 | | [INFO] [stdout] 280 | | let mut _alt: i32; [INFO] [stdout] ... | [INFO] [stdout] 322 | | Ok(()) [INFO] [stdout] 323 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: omit braces around single expression condition [INFO] [stdout] --> tests/gen/referencetoatnparser.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 293 | if { !(_la==ReferenceToATN_ID || _la==ReferenceToATN_ATN) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!(_la==ReferenceToATN_ID || _la==ReferenceToATN_ATN)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions [INFO] [stdout] = note: `#[warn(clippy::blocks_in_conditions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> tests/gen/simplelrlexer.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | ^^^ help: consider reducing it to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of an `Arc` that is not `Send` and `Sync` [INFO] [stdout] --> tests/gen/simplelrparser.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | let interpreter = Arc::new(ParserATNSimulator::new( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 92 | | _ATN.clone(), [INFO] [stdout] 93 | | _decision_to_DFA.clone(), [INFO] [stdout] 94 | | _shared_context_cache.clone(), [INFO] [stdout] 95 | | )); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: `Arc` is not `Send` and `Sync` as `ParserATNSimulator` is not `Sync` [INFO] [stdout] = help: if the `Arc` will not be used across threads replace it with an `Rc` [INFO] [stdout] = help: otherwise make `ParserATNSimulator` `Send` and `Sync` or consider a wrapper type such as `Mutex` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/simplelrparser.rs:279:5 [INFO] [stdout] | [INFO] [stdout] 279 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/simplelrparser.rs:285:40 [INFO] [stdout] | [INFO] [stdout] 285 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 286 | | [INFO] [stdout] 287 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 288 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 298 | | Ok(()) [INFO] [stdout] 299 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/simplelrparser.rs:378:5 [INFO] [stdout] | [INFO] [stdout] 378 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/simplelrparser.rs:383:5 [INFO] [stdout] | [INFO] [stdout] 383 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/simplelrparser.rs:392:40 [INFO] [stdout] | [INFO] [stdout] 392 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 393 | | let mut _alt: i32; [INFO] [stdout] 394 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 395 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 433 | | Ok(()) [INFO] [stdout] 434 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> tests/gen/visitorcalclexer.rs:39:40 [INFO] [stdout] | [INFO] [stdout] 39 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | ^^^ help: consider reducing it to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of an `Arc` that is not `Send` and `Sync` [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | let interpreter = Arc::new(ParserATNSimulator::new( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 100 | | _ATN.clone(), [INFO] [stdout] 101 | | _decision_to_DFA.clone(), [INFO] [stdout] 102 | | _shared_context_cache.clone(), [INFO] [stdout] 103 | | )); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: `Arc` is not `Send` and `Sync` as `ParserATNSimulator` is not `Sync` [INFO] [stdout] = help: if the `Arc` will not be used across threads replace it with an `Rc` [INFO] [stdout] = help: otherwise make `ParserATNSimulator` `Send` and `Sync` or consider a wrapper type such as `Mutex` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 312 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:318:40 [INFO] [stdout] | [INFO] [stdout] 318 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 319 | | [INFO] [stdout] 320 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 321 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 331 | | Ok(()) [INFO] [stdout] 332 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:407:2 [INFO] [stdout] | [INFO] [stdout] 407 | / fn new(parent: Option + 'input > >, invoking_state: i32) -> Rc> { [INFO] [stdout] 408 | | Rc::new( [INFO] [stdout] 409 | | ExprContextAll::Error( [INFO] [stdout] 410 | | BaseParserRuleContext::new_parser_ctx(parent, invoking_state,ExprContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 416 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] = note: `#[warn(clippy::new_ret_no_self)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:494:2 [INFO] [stdout] | [INFO] [stdout] 494 | / fn new(ctx: &dyn ExprContextAttrs<'input>) -> Rc> { [INFO] [stdout] 495 | | Rc::new( [INFO] [stdout] 496 | | ExprContextAll::AddContext( [INFO] [stdout] 497 | | BaseParserRuleContext::copy_from(ctx,AddContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 503 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:563:2 [INFO] [stdout] | [INFO] [stdout] 563 | / fn new(ctx: &dyn ExprContextAttrs<'input>) -> Rc> { [INFO] [stdout] 564 | | Rc::new( [INFO] [stdout] 565 | | ExprContextAll::NumberContext( [INFO] [stdout] 566 | | BaseParserRuleContext::copy_from(ctx,NumberContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 572 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:643:2 [INFO] [stdout] | [INFO] [stdout] 643 | / fn new(ctx: &dyn ExprContextAttrs<'input>) -> Rc> { [INFO] [stdout] 644 | | Rc::new( [INFO] [stdout] 645 | | ExprContextAll::MultiplyContext( [INFO] [stdout] 646 | | BaseParserRuleContext::copy_from(ctx,MultiplyContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 652 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:660:5 [INFO] [stdout] | [INFO] [stdout] 660 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:665:5 [INFO] [stdout] | [INFO] [stdout] 665 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:675:40 [INFO] [stdout] | [INFO] [stdout] 675 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 676 | | let mut _alt: i32; [INFO] [stdout] 677 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 678 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 770 | | Ok(()) [INFO] [stdout] 771 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: omit braces around single expression condition [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:716:11 [INFO] [stdout] | [INFO] [stdout] 716 | ... if { !(_la==VisitorCalc_MUL || _la==VisitorCalc_DIV) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!(_la==VisitorCalc_MUL || _la==VisitorCalc_DIV)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: omit braces around single expression condition [INFO] [stdout] --> tests/gen/visitorcalcparser.rs:745:11 [INFO] [stdout] | [INFO] [stdout] 745 | ... if { !(_la==VisitorCalc_ADD || _la==VisitorCalc_SUB) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!(_la==VisitorCalc_ADD || _la==VisitorCalc_SUB)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> tests/gen/xmllexer.rs:51:40 [INFO] [stdout] | [INFO] [stdout] 51 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | ^^^ help: consider reducing it to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for an equality check. Consider using `if` [INFO] [stdout] --> tests/gen/xmllexer.rs:159:7 [INFO] [stdout] | [INFO] [stdout] 159 | / match rule_index { [INFO] [stdout] 160 | | 10 => [INFO] [stdout] 161 | | XMLLexer::<'input>::CLOSE_action(None, action_index, recog), [INFO] [stdout] 162 | | _ => {} [INFO] [stdout] 163 | | } [INFO] [stdout] | |_________^ help: try: `if rule_index == 10 { XMLLexer::<'input>::CLOSE_action(None, action_index, recog) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for an equality check. Consider using `if` [INFO] [stdout] --> tests/gen/xmllexer.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | / match action_index { [INFO] [stdout] 183 | | 0=>{ [INFO] [stdout] 184 | | recog.pop_mode(); [INFO] [stdout] 185 | | }, [INFO] [stdout] 186 | | [INFO] [stdout] 187 | | _ => {} [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 182 ~ if action_index == 0 { [INFO] [stdout] 183 ~ recog.pop_mode(); [INFO] [stdout] 184 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> tests/gen/labelslexer.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | pub const channelNames: [&'static str;0+2] = [ [INFO] [stdout] | ^^^ help: consider reducing it to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of an `Arc` that is not `Send` and `Sync` [INFO] [stdout] --> tests/gen/labelsparser.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | let interpreter = Arc::new(ParserATNSimulator::new( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 101 | | _ATN.clone(), [INFO] [stdout] 102 | | _decision_to_DFA.clone(), [INFO] [stdout] 103 | | _shared_context_cache.clone(), [INFO] [stdout] 104 | | )); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: `Arc` is not `Send` and `Sync` as `ParserATNSimulator` is not `Sync` [INFO] [stdout] = help: if the `Arc` will not be used across threads replace it with an `Rc` [INFO] [stdout] = help: otherwise make `ParserATNSimulator` `Send` and `Sync` or consider a wrapper type such as `Mutex` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/labelsparser.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 299 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/labelsparser.rs:305:40 [INFO] [stdout] | [INFO] [stdout] 305 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 306 | | [INFO] [stdout] 307 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 308 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 317 | | Ok(()) [INFO] [stdout] 318 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/labelsparser.rs:396:2 [INFO] [stdout] | [INFO] [stdout] 396 | / fn new(parent: Option + 'input > >, invoking_state: i32) -> Rc> { [INFO] [stdout] 397 | | let mut _init_v = String::new(); [INFO] [stdout] 398 | | [INFO] [stdout] 399 | | Rc::new( [INFO] [stdout] ... | [INFO] [stdout] 408 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/labelsparser.rs:469:2 [INFO] [stdout] | [INFO] [stdout] 469 | / fn new(ctx: &dyn EContextAttrs<'input>) -> Rc> { [INFO] [stdout] 470 | | Rc::new( [INFO] [stdout] 471 | | EContextAll::AddContext( [INFO] [stdout] 472 | | BaseParserRuleContext::copy_from(ctx,AddContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 479 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/labelsparser.rs:527:2 [INFO] [stdout] | [INFO] [stdout] 527 | / fn new(ctx: &dyn EContextAttrs<'input>) -> Rc> { [INFO] [stdout] 528 | | Rc::new( [INFO] [stdout] 529 | | EContextAll::ParensContext( [INFO] [stdout] 530 | | BaseParserRuleContext::copy_from(ctx,ParensContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 537 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/labelsparser.rs:590:2 [INFO] [stdout] | [INFO] [stdout] 590 | / fn new(ctx: &dyn EContextAttrs<'input>) -> Rc> { [INFO] [stdout] 591 | | Rc::new( [INFO] [stdout] 592 | | EContextAll::MultContext( [INFO] [stdout] 593 | | BaseParserRuleContext::copy_from(ctx,MultContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 601 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/labelsparser.rs:649:2 [INFO] [stdout] | [INFO] [stdout] 649 | / fn new(ctx: &dyn EContextAttrs<'input>) -> Rc> { [INFO] [stdout] 650 | | Rc::new( [INFO] [stdout] 651 | | EContextAll::DecContext( [INFO] [stdout] 652 | | BaseParserRuleContext::copy_from(ctx,DecContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 659 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/labelsparser.rs:709:2 [INFO] [stdout] | [INFO] [stdout] 709 | / fn new(ctx: &dyn EContextAttrs<'input>) -> Rc> { [INFO] [stdout] 710 | | Rc::new( [INFO] [stdout] 711 | | EContextAll::AnIDContext( [INFO] [stdout] 712 | | BaseParserRuleContext::copy_from(ctx,AnIDContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 719 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/labelsparser.rs:769:2 [INFO] [stdout] | [INFO] [stdout] 769 | / fn new(ctx: &dyn EContextAttrs<'input>) -> Rc> { [INFO] [stdout] 770 | | Rc::new( [INFO] [stdout] 771 | | EContextAll::AnIntContext( [INFO] [stdout] 772 | | BaseParserRuleContext::copy_from(ctx,AnIntContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 779 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> tests/gen/labelsparser.rs:827:2 [INFO] [stdout] | [INFO] [stdout] 827 | / fn new(ctx: &dyn EContextAttrs<'input>) -> Rc> { [INFO] [stdout] 828 | | Rc::new( [INFO] [stdout] 829 | | EContextAll::IncContext( [INFO] [stdout] 830 | | BaseParserRuleContext::copy_from(ctx,IncContextExt{ [INFO] [stdout] ... | [INFO] [stdout] 837 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/labelsparser.rs:845:5 [INFO] [stdout] | [INFO] [stdout] 845 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/gen/labelsparser.rs:850:5 [INFO] [stdout] | [INFO] [stdout] 850 | -> Result>,ANTLRError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> tests/gen/labelsparser.rs:859:40 [INFO] [stdout] | [INFO] [stdout] 859 | let result: Result<(), ANTLRError> = (|| { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 860 | | let mut _alt: i32; [INFO] [stdout] 861 | | //recog.base.enter_outer_alt(_localctx.clone(), 1)?; [INFO] [stdout] 862 | | recog.base.enter_outer_alt(None, 1)?; [INFO] [stdout] ... | [INFO] [stdout] 1068 | | Ok(()) [INFO] [stdout] 1069 | | })(); [INFO] [stdout] | |__________^ the `Err`-variant is at least 216 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `antlr4rust::errors::ANTLRError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.76s [INFO] running `Command { std: "docker" "inspect" "2af8621a581450c6ebc510fc0a6fc3faba03b5c106c68f39ae133c0864e14a76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2af8621a581450c6ebc510fc0a6fc3faba03b5c106c68f39ae133c0864e14a76", kill_on_drop: false }` [INFO] [stdout] 2af8621a581450c6ebc510fc0a6fc3faba03b5c106c68f39ae133c0864e14a76