[INFO] cloning repository https://github.com/jpx40/bython.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jpx40/bython.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjpx40%2Fbython.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjpx40%2Fbython.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 08fecf9740b802d71ea9bfb5844eff99322296b9 [INFO] checking jpx40/bython.rs against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjpx40%2Fbython.rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jpx40/bython.rs on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jpx40/bython.rs [INFO] finished tweaking git repo https://github.com/jpx40/bython.rs [INFO] tweaked toml for git repo https://github.com/jpx40/bython.rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jpx40/bython.rs 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-trait v0.1.78 [INFO] [stderr] Downloaded arc-swap v1.7.0 [INFO] [stderr] Downloaded async-net v2.0.0 [INFO] [stderr] Downloaded async-process v2.1.0 [INFO] [stderr] Downloaded serde_yaml v0.9.33 [INFO] [stderr] Downloaded flexi_logger v0.28.0 [INFO] [stderr] Downloaded rayon v1.9.0 [INFO] [stderr] Downloaded smol v2.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 341944e5d8ad24d693ece49ca86a1b11441ba7f05cadfa446dab0844889e0e4d [INFO] running `Command { std: "docker" "start" "-a" "341944e5d8ad24d693ece49ca86a1b11441ba7f05cadfa446dab0844889e0e4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "341944e5d8ad24d693ece49ca86a1b11441ba7f05cadfa446dab0844889e0e4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "341944e5d8ad24d693ece49ca86a1b11441ba7f05cadfa446dab0844889e0e4d", kill_on_drop: false }` [INFO] [stdout] 341944e5d8ad24d693ece49ca86a1b11441ba7f05cadfa446dab0844889e0e4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 509b8d014cf2fb35f657681242f59645cb76e101d1816fbca5675fe6bde624bc [INFO] running `Command { std: "docker" "start" "-a" "509b8d014cf2fb35f657681242f59645cb76e101d1816fbca5675fe6bde624bc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking parking v2.2.0 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking futures-lite v2.2.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking concurrent-queue v2.4.0 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Checking event-listener v4.0.3 [INFO] [stderr] Checking event-listener v5.2.0 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Checking event-listener-strategy v0.4.0 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Checking async-lock v3.3.0 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking event-listener-strategy v0.5.0 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking async-task v4.7.0 [INFO] [stderr] Checking piper v0.2.1 [INFO] [stderr] Checking async-channel v2.2.0 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking indexmap v2.2.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking blocking v1.5.1 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking destructure_traitobject v0.2.0 [INFO] [stderr] Checking winnow v0.6.5 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Compiling async-trait v0.1.78 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking unsafe-any-ors v1.0.0 [INFO] [stderr] Checking chrono v0.4.35 [INFO] [stderr] Checking ordered-multimap v0.6.0 [INFO] [stderr] Checking ordered-float v2.10.1 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking strsim v0.11.0 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking rust-ini v0.19.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking typemap-ors v1.0.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking async-fs v2.1.1 [INFO] [stderr] Checking async-executor v1.8.0 [INFO] [stderr] Checking thread-id v4.2.1 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking crossbeam-channel v0.5.12 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking arc-swap v1.7.0 [INFO] [stderr] Checking nu-ansi-term v0.49.0 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking pathdiff v0.2.1 [INFO] [stderr] Checking log-mdc v0.1.0 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling clap_derive v4.5.3 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Compiling pest v2.7.8 [INFO] [stderr] Checking clap v4.5.3 [INFO] [stderr] Compiling pest_meta v2.7.8 [INFO] [stderr] Compiling pest_generator v2.7.8 [INFO] [stderr] Compiling pest_derive v2.7.8 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking serde_yaml v0.9.33 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking toml_edit v0.22.7 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking flexi_logger v0.28.0 [INFO] [stderr] Checking fern v0.6.2 [INFO] [stderr] Checking log4rs v1.3.0 [INFO] [stderr] Checking toml v0.8.11 [INFO] [stderr] Checking config v0.14.0 [INFO] [stderr] Checking polling v3.5.0 [INFO] [stderr] Checking async-io v2.3.2 [INFO] [stderr] Checking async-signal v0.2.5 [INFO] [stderr] Checking async-net v2.0.0 [INFO] [stderr] Checking async-process v2.1.0 [INFO] [stderr] Checking smol v2.0.0 [INFO] [stderr] Checking bython v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/parser.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{fs, u32}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::log_enabled` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::log_enabled; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs::File` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{fs, fs::File, path::Path}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/parser.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{fs, u32}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::log_enabled` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::log_enabled; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs::File` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{fs, fs::File, path::Path}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 80 | panic!("failed to parse file"); [INFO] [stdout] | ------------------------------ any code following this expression is unreachable [INFO] [stdout] 81 | process::exit(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `results` [INFO] [stdout] --> src/parser.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut results: Vec = vec![]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_results` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 80 | panic!("failed to parse file"); [INFO] [stdout] | ------------------------------ any code following this expression is unreachable [INFO] [stdout] 81 | process::exit(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut results: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `results` [INFO] [stdout] --> src/parser.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut results: Vec = vec![]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `infile` [INFO] [stdout] --> src/parser.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut infile: String = std::fs::read_to_string(filpath).expect("Unable to read file"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_infile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir_name` [INFO] [stdout] --> src/parser.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let dir_name: String = std::path::Path::new(filpath) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dir_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `m2` is assigned to, but never used [INFO] [stdout] --> src/parser.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let mut m2 = String::new(); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_m2` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `add_comment` is never read [INFO] [stdout] --> src/parser.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut add_comment = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `m2` is never read [INFO] [stdout] --> src/parser.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | m2 = regex::Regex::new(r#"[\"'].*#.*[\"']"#) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `results` [INFO] [stdout] --> src/parser.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut results: Vec = vec![]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_results` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut results: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut infile_str_raw = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let mut infile: String = std::fs::read_to_string(filpath).expect("Unable to read file"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut infile: String = std::fs::read_to_string(filpath).expect("Unable to read file"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut output_name = std::path::Path::new(tmp.as_str()); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut results: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `path_prefix` is never read [INFO] [stdout] --> src/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut path_prefix = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_suffix` [INFO] [stdout] --> src/main.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut path_suffix = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_suffix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `include` [INFO] [stdout] --> src/main.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut include = String::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_include` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `include_prefix` [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut include_prefix = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_include_prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `include_suffix` [INFO] [stdout] --> src/main.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut include_suffix = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_include_suffix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parse_que` is never read [INFO] [stdout] --> src/main.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut parse_que: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `outputname` [INFO] [stdout] --> src/main.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut outputname: Option; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outputname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_file` [INFO] [stdout] --> src/main.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut output_file = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `python_command` [INFO] [stdout] --> src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let python_command = "python3"; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_python_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | if let Some(x) = &args.output { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | Some(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `path_prefix` is never read [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | path_prefix = "".to_string(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `path_prefix` is never read [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | path_prefix = "python_".to_string(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | Some(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | if let Some(x) = &args.compile { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nothing` [INFO] [stdout] --> src/main.rs:99:25 [INFO] [stdout] | [INFO] [stdout] 99 | let nothing = "Nothing".to_string(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nothing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/main.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | let filename = Path::new(&x[0]) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut path_suffix = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut include = String::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut include_prefix = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut include_suffix = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut current_file_name = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut output_file = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `results` [INFO] [stdout] --> src/parser.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut results: Vec = vec![]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `infile` [INFO] [stdout] --> src/parser.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut infile: String = std::fs::read_to_string(filpath).expect("Unable to read file"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_infile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir_name` [INFO] [stdout] --> src/parser.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let dir_name: String = std::path::Path::new(filpath) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dir_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_file_name` [INFO] [stdout] --> src/main.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | let new_file_name = parser::change_filename( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `m2` is assigned to, but never used [INFO] [stdout] --> src/parser.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let mut m2 = String::new(); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_m2` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `add_comment` is never read [INFO] [stdout] --> src/parser.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut add_comment = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `m2` is never read [INFO] [stdout] --> src/parser.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | m2 = regex::Regex::new(r#"[\"'].*#.*[\"']"#) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let mut parse_que = self.parse_que; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut args = self.args; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Args` is more private than the item `Parsing::new` [INFO] [stdout] --> src/main.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | / pub fn new( [INFO] [stdout] 153 | | args: Args, [INFO] [stdout] 154 | | parse_que: Vec, [INFO] [stdout] 155 | | current_file_name: String, [INFO] [stdout] 156 | | path_prefix: String, [INFO] [stdout] 157 | | import_translations: Option>, [INFO] [stdout] 158 | | ) -> Self { [INFO] [stdout] | |_____________^ associated function `Parsing::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Args` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Args { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `output_file` is never read [INFO] [stdout] --> src/main.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct Parsing { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 143 | args: Args, [INFO] [stdout] 144 | output_file: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parsing` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut results: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut infile_str_raw = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let mut infile: String = std::fs::read_to_string(filpath).expect("Unable to read file"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut infile: String = std::fs::read_to_string(filpath).expect("Unable to read file"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut output_name = std::path::Path::new(tmp.as_str()); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `path_prefix` is never read [INFO] [stdout] --> src/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut path_prefix = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_suffix` [INFO] [stdout] --> src/main.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut path_suffix = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_suffix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `include` [INFO] [stdout] --> src/main.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut include = String::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_include` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `include_prefix` [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut include_prefix = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_include_prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `include_suffix` [INFO] [stdout] --> src/main.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut include_suffix = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_include_suffix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parse_que` is never read [INFO] [stdout] --> src/main.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut parse_que: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `outputname` [INFO] [stdout] --> src/main.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut outputname: Option; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outputname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_file` [INFO] [stdout] --> src/main.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut output_file = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `python_command` [INFO] [stdout] --> src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let python_command = "python3"; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_python_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | if let Some(x) = &args.output { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | Some(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `path_prefix` is never read [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | path_prefix = "".to_string(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `path_prefix` is never read [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | path_prefix = "python_".to_string(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | Some(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | if let Some(x) = &args.compile { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nothing` [INFO] [stdout] --> src/main.rs:99:25 [INFO] [stdout] | [INFO] [stdout] 99 | let nothing = "Nothing".to_string(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nothing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/main.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | let filename = Path::new(&x[0]) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut path_suffix = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut include = String::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut include_prefix = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut include_suffix = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut current_file_name = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut output_file = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_file_name` [INFO] [stdout] --> src/main.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | let new_file_name = parser::change_filename( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let mut parse_que = self.parse_que; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut args = self.args; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Args` is more private than the item `Parsing::new` [INFO] [stdout] --> src/main.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | / pub fn new( [INFO] [stdout] 153 | | args: Args, [INFO] [stdout] 154 | | parse_que: Vec, [INFO] [stdout] 155 | | current_file_name: String, [INFO] [stdout] 156 | | path_prefix: String, [INFO] [stdout] 157 | | import_translations: Option>, [INFO] [stdout] 158 | | ) -> Self { [INFO] [stdout] | |_____________^ associated function `Parsing::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Args` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Args { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `output_file` is never read [INFO] [stdout] --> src/main.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct Parsing { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 143 | args: Args, [INFO] [stdout] 144 | output_file: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parsing` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "509b8d014cf2fb35f657681242f59645cb76e101d1816fbca5675fe6bde624bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "509b8d014cf2fb35f657681242f59645cb76e101d1816fbca5675fe6bde624bc", kill_on_drop: false }` [INFO] [stdout] 509b8d014cf2fb35f657681242f59645cb76e101d1816fbca5675fe6bde624bc