[INFO] cloning repository https://github.com/Elyze-Parser/elyze [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Elyze-Parser/elyze" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FElyze-Parser%2Felyze", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FElyze-Parser%2Felyze'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 21d42ab3125705fb9fca0aa532c998060853b6e3 [INFO] linting Elyze-Parser/elyze against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FElyze-Parser%2Felyze" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Elyze-Parser/elyze [INFO] finished tweaking git repo https://github.com/Elyze-Parser/elyze [INFO] tweaked toml for git repo https://github.com/Elyze-Parser/elyze written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Elyze-Parser/elyze 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 git repo https://github.com/Elyze-Parser/elyze 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 43f3d4cb48b5e51d40b74c2bdd4eb387fe3f0e99e4749b9db5a4ca4034095d01 [INFO] running `Command { std: "docker" "start" "-a" "43f3d4cb48b5e51d40b74c2bdd4eb387fe3f0e99e4749b9db5a4ca4034095d01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "43f3d4cb48b5e51d40b74c2bdd4eb387fe3f0e99e4749b9db5a4ca4034095d01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43f3d4cb48b5e51d40b74c2bdd4eb387fe3f0e99e4749b9db5a4ca4034095d01", kill_on_drop: false }` [INFO] [stdout] 43f3d4cb48b5e51d40b74c2bdd4eb387fe3f0e99e4749b9db5a4ca4034095d01 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 110eb0453b26f5fe212a44da75c66f227ab2fd32dfca8967647cbb6bf70e199c [INFO] running `Command { std: "docker" "start" "-a" "110eb0453b26f5fe212a44da75c66f227ab2fd32dfca8967647cbb6bf70e199c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking thiserror v2.0.12 [INFO] [stderr] Checking elyze v1.5.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/bytes/components/groups.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | / match peek(start, scanner)? { [INFO] [stdout] 81 | | Some(peeking) => { [INFO] [stdout] 82 | | scanner.bump_by(peeking.end_slice); [INFO] [stdout] 83 | | let mut rewind_scanner = scanner.clone(); [INFO] [stdout] ... | [INFO] [stdout] 92 | | None => {} [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: you might want to preserve the comments from inside the `match` [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] help: try [INFO] [stdout] | [INFO] [stdout] 80 ~ if let Some(peeking) = peek(start, scanner)? { [INFO] [stdout] 81 + scanner.bump_by(peeking.end_slice); [INFO] [stdout] 82 + let mut rewind_scanner = scanner.clone(); [INFO] [stdout] 83 + rewind_scanner.rewind(start.size()); [INFO] [stdout] 84 + // if start group token increment balancing counter [INFO] [stdout] 85 + if !is_escaped(rewind_scanner, escape_token)? { [INFO] [stdout] 86 + *balance += 1 [INFO] [stdout] 87 + } [INFO] [stdout] 88 + return Ok(()); [INFO] [stdout] 89 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/bytes/components/groups.rs:230:31 [INFO] [stdout] | [INFO] [stdout] 230 | match peek(token, &mut scanner)? { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] = note: `#[warn(clippy::unnecessary_mut_passed)]` on by default [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 230 - match peek(token, &mut scanner)? { [INFO] [stdout] 230 + match peek(token, &scanner)? { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `as_bytes` after slicing a string [INFO] [stdout] --> src/bytes/components/groups.rs:324:21 [INFO] [stdout] | [INFO] [stdout] 324 | assert_eq!(&data[..24].as_bytes(), b"( 5 + 3 - ( 10 * 8 ) \\))"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `&data.as_bytes()[..24]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#sliced_string_as_bytes [INFO] [stdout] = note: `#[warn(clippy::sliced_string_as_bytes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/bytes/components/groups.rs:331:51 [INFO] [stdout] | [INFO] [stdout] 331 | let result = peek(GroupKind::Parenthesis, &mut tokenizer)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 331 - let result = peek(GroupKind::Parenthesis, &mut tokenizer)?; [INFO] [stdout] 331 + let result = peek(GroupKind::Parenthesis, &tokenizer)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/bytes/components/groups.rs:352:51 [INFO] [stdout] | [INFO] [stdout] 352 | let result = peek(GroupKind::Parenthesis, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 352 - let result = peek(GroupKind::Parenthesis, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] 352 + let result = peek(GroupKind::Parenthesis, &tokenizer).expect("failed to parse"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/bytes/components/groups.rs:369:51 [INFO] [stdout] | [INFO] [stdout] 369 | let result = peek(GroupKind::Parenthesis, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 369 - let result = peek(GroupKind::Parenthesis, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] 369 + let result = peek(GroupKind::Parenthesis, &tokenizer).expect("failed to parse"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/bytes/components/groups.rs:380:46 [INFO] [stdout] | [INFO] [stdout] 380 | let result = peek(GroupKind::Quotes, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 380 - let result = peek(GroupKind::Quotes, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] 380 + let result = peek(GroupKind::Quotes, &tokenizer).expect("failed to parse"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/bytes/components/groups.rs:391:46 [INFO] [stdout] | [INFO] [stdout] 391 | let result = peek(GroupKind::Quotes, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 391 - let result = peek(GroupKind::Quotes, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] 391 + let result = peek(GroupKind::Quotes, &tokenizer).expect("failed to parse"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/bytes/components/groups.rs:456:52 [INFO] [stdout] | [INFO] [stdout] 456 | let result = peek(GroupKind::DoubleQuotes, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 456 - let result = peek(GroupKind::DoubleQuotes, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] 456 + let result = peek(GroupKind::DoubleQuotes, &tokenizer).expect("failed to parse"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/bytes/components/groups.rs:466:52 [INFO] [stdout] | [INFO] [stdout] 466 | let result = peek(GroupKind::DoubleQuotes, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 466 - let result = peek(GroupKind::DoubleQuotes, &mut tokenizer).expect("failed to parse"); [INFO] [stdout] 466 + let result = peek(GroupKind::DoubleQuotes, &tokenizer).expect("failed to parse"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/bytes/primitives/whitespace.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | assert!(!result.is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `result.is_err()` [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] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/bytes/components/groups.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | / match peek(start, scanner)? { [INFO] [stdout] 81 | | Some(peeking) => { [INFO] [stdout] 82 | | scanner.bump_by(peeking.end_slice); [INFO] [stdout] 83 | | let mut rewind_scanner = scanner.clone(); [INFO] [stdout] ... | [INFO] [stdout] 92 | | None => {} [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: you might want to preserve the comments from inside the `match` [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] help: try [INFO] [stdout] | [INFO] [stdout] 80 ~ if let Some(peeking) = peek(start, scanner)? { [INFO] [stdout] 81 + scanner.bump_by(peeking.end_slice); [INFO] [stdout] 82 + let mut rewind_scanner = scanner.clone(); [INFO] [stdout] 83 + rewind_scanner.rewind(start.size()); [INFO] [stdout] 84 + // if start group token increment balancing counter [INFO] [stdout] 85 + if !is_escaped(rewind_scanner, escape_token)? { [INFO] [stdout] 86 + *balance += 1 [INFO] [stdout] 87 + } [INFO] [stdout] 88 + return Ok(()); [INFO] [stdout] 89 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/bytes/components/groups.rs:230:31 [INFO] [stdout] | [INFO] [stdout] 230 | match peek(token, &mut scanner)? { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] = note: `#[warn(clippy::unnecessary_mut_passed)]` on by default [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 230 - match peek(token, &mut scanner)? { [INFO] [stdout] 230 + match peek(token, &scanner)? { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/peek.rs:330:40 [INFO] [stdout] | [INFO] [stdout] 330 | let peeked = peek(Token::Pipe, &mut scanner) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 330 - let peeked = peek(Token::Pipe, &mut scanner) [INFO] [stdout] 330 + let peeked = peek(Token::Pipe, &scanner) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/peek.rs:341:34 [INFO] [stdout] | [INFO] [stdout] 341 | let peeked = peek(token, &mut scanner) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 341 - let peeked = peek(token, &mut scanner) [INFO] [stdout] 341 + let peeked = peek(token, &scanner) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/peek.rs:352:34 [INFO] [stdout] | [INFO] [stdout] 352 | let peeked = peek(token, &mut scanner) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 352 - let peeked = peek(token, &mut scanner) [INFO] [stdout] 352 + let peeked = peek(token, &scanner) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/peek.rs:360:34 [INFO] [stdout] | [INFO] [stdout] 360 | let peeked = peek(token, &mut scanner) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 360 - let peeked = peek(token, &mut scanner) [INFO] [stdout] 360 + let peeked = peek(token, &scanner) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/peek.rs:368:34 [INFO] [stdout] | [INFO] [stdout] 368 | let peeked = peek(token, &mut scanner) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 368 - let peeked = peek(token, &mut scanner) [INFO] [stdout] 368 + let peeked = peek(token, &scanner) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> src/peek.rs:376:34 [INFO] [stdout] | [INFO] [stdout] 376 | let peeked = peek(token, &mut scanner).expect("failed to parse"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 376 - let peeked = peek(token, &mut scanner).expect("failed to parse"); [INFO] [stdout] 376 + let peeked = peek(token, &scanner).expect("failed to parse"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/separated_list.rs:148:60 [INFO] [stdout] | [INFO] [stdout] 148 | let result_last_separator = peek(Last::new(separator), &scanner)?; [INFO] [stdout] | ^^^^^^^^ help: change this to: `scanner` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/separated_list.rs:148:60 [INFO] [stdout] | [INFO] [stdout] 148 | let result_last_separator = peek(Last::new(separator), &scanner)?; [INFO] [stdout] | ^^^^^^^^ help: change this to: `scanner` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> examples/separated_list.rs:41:76 [INFO] [stdout] | [INFO] [stdout] 41 | get_scanner_without_trailing_separator(TokenNumber, Separator, &scanner)?; [INFO] [stdout] | ^^^^^^^^ help: change this to: `scanner` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> examples/builtin_tokens.rs:34:36 [INFO] [stdout] | [INFO] [stdout] 34 | let peeked = peek(Token::Dash, &mut scanner)?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] = note: `#[warn(clippy::unnecessary_mut_passed)]` on by default [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 34 - let peeked = peek(Token::Dash, &mut scanner)?; [INFO] [stdout] 34 + let peeked = peek(Token::Dash, &scanner)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> examples/peeking.rs:28:46 [INFO] [stdout] | [INFO] [stdout] 28 | let mut inner_scanner = Scanner::new(&scanner.remaining()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `scanner.remaining()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the function `peek` doesn't need a mutable reference [INFO] [stdout] --> examples/delimited_group.rs:7:47 [INFO] [stdout] | [INFO] [stdout] 7 | let result = peek(GroupKind::Parenthesis, &mut scanner) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] = note: `#[warn(clippy::unnecessary_mut_passed)]` on by default [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 7 - let result = peek(GroupKind::Parenthesis, &mut scanner) [INFO] [stdout] 7 + let result = peek(GroupKind::Parenthesis, &scanner) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> examples/peek_first_operator.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | / Ok(Recognizer::new(scanner) [INFO] [stdout] 39 | | .try_or(OperatorTokens::Times)? [INFO] [stdout] 40 | | .try_or(OperatorTokens::Plus)? [INFO] [stdout] 41 | | .finish() [INFO] [stdout] 42 | | .ok_or(ParseError::UnexpectedToken)?) [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] = note: `#[warn(clippy::needless_question_mark)]` on by default [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 38 ~ Recognizer::new(scanner) [INFO] [stdout] 39 | .try_or(OperatorTokens::Times)? [INFO] [stdout] 40 | .try_or(OperatorTokens::Plus)? [INFO] [stdout] 41 | .finish() [INFO] [stdout] 42 ~ .ok_or(ParseError::UnexpectedToken) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> examples/peek.rs:28:46 [INFO] [stdout] | [INFO] [stdout] 28 | let mut inner_scanner = Scanner::new(&scanner.remaining()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `scanner.remaining()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `animo_acid` [INFO] [stdout] --> examples/genetic.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 279 | let animo_acid = dbg!(protein); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_animo_acid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BaseAdn` is never used [INFO] [stdout] --> examples/genetic.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum BaseAdn { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_patterns` is never used [INFO] [stdout] --> examples/genetic.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn match_patterns(patterns: &[&[u8]], data: &[u8]) -> (bool, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> examples/genetic.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 57 | enum AminoAcid { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 58 | Alanine, [INFO] [stdout] 59 | Cysteine, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 60 | Glutamine, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 61 | Histidine, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 62 | Isoleucine, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 63 | Leucine, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 64 | Lysine, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 65 | Methionine, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 66 | Phenylalanine, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 67 | Serine, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 68 | Threonine, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 69 | Tryptophan, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 70 | Tyrosine, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 71 | Valine, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 72 | Asparagine, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 73 | AsparticAcid, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 74 | GlutamicAcid, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 75 | Glycine, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 76 | Proline, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 77 | Arginine, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AminoAcid` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.77s [INFO] running `Command { std: "docker" "inspect" "110eb0453b26f5fe212a44da75c66f227ab2fd32dfca8967647cbb6bf70e199c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "110eb0453b26f5fe212a44da75c66f227ab2fd32dfca8967647cbb6bf70e199c", kill_on_drop: false }` [INFO] [stdout] 110eb0453b26f5fe212a44da75c66f227ab2fd32dfca8967647cbb6bf70e199c