[INFO] fetching crate exemd 0.1.0... [INFO] checking exemd-0.1.0 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate exemd 0.1.0 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate exemd 0.1.0 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate exemd 0.1.0 [INFO] finished tweaking crates.io crate exemd 0.1.0 [INFO] tweaked toml for crates.io crate exemd 0.1.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate crates.io crate exemd 0.1.0 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tempfile v3.1.0 [INFO] [stderr] Downloaded proc-macro-error-attr v0.4.12 [INFO] [stderr] Downloaded ppv-lite86 v0.2.8 [INFO] [stderr] Downloaded syn-mid v0.5.0 [INFO] [stderr] Downloaded clap v3.0.0-beta.1 [INFO] [stderr] Downloaded proc-macro-error v0.4.12 [INFO] [stderr] Downloaded heck v0.3.1 [INFO] [stderr] Downloaded unicode-segmentation v1.6.0 [INFO] [stderr] Downloaded aho-corasick v0.7.13 [INFO] [stderr] Downloaded pulldown-cmark v0.7.1 [INFO] [stderr] Downloaded clap_derive v3.0.0-beta.1 [INFO] [stderr] Downloaded os_str_bytes v2.3.1 [INFO] [stderr] Downloaded termcolor v1.1.0 [INFO] [stderr] Downloaded regex v1.3.9 [INFO] [stderr] Downloaded regex-syntax v0.6.18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 43ba615bb1ad97c7c448a9ea2cb9ab836272a033f83d539b1c00045136163bdb [INFO] running `Command { std: "docker" "start" "-a" "43ba615bb1ad97c7c448a9ea2cb9ab836272a033f83d539b1c00045136163bdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "43ba615bb1ad97c7c448a9ea2cb9ab836272a033f83d539b1c00045136163bdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43ba615bb1ad97c7c448a9ea2cb9ab836272a033f83d539b1c00045136163bdb", kill_on_drop: false }` [INFO] [stdout] 43ba615bb1ad97c7c448a9ea2cb9ab836272a033f83d539b1c00045136163bdb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f04fc0b7f1c706fb4b2bc5421abf6b1015a5d0e5dcc1696e034159e7147e033c [INFO] running `Command { std: "docker" "start" "-a" "f04fc0b7f1c706fb4b2bc5421abf6b1015a5d0e5dcc1696e034159e7147e033c", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling pulldown-cmark v0.7.1 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking os_str_bytes v2.3.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling proc-macro-error-attr v0.4.12 [INFO] [stderr] Compiling proc-macro-error v0.4.12 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.1 [INFO] [stderr] Checking clap v3.0.0-beta.1 [INFO] [stderr] Checking exemd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::stdin` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::stdin; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/rmd/lang/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Captures` [INFO] [stdout] --> src/rmd/lang/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use regex::{Captures, Regex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `env` and `fs` [INFO] [stdout] --> src/rmd/executor.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{env, fs, process}; [INFO] [stdout] | ^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/rmd/executor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `Metadata`, and `canonicalize` [INFO] [stdout] --> src/rmd/executor.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{canonicalize, File, Metadata}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read`, `SeekFrom`, `Seek`, and `Write` [INFO] [stdout] --> src/rmd/executor.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Error, ErrorKind, Read, Seek, SeekFrom, Write}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf` and `Path` [INFO] [stdout] --> src/rmd/executor.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NamedTempFile`, `TempDir`, and `tempdir_in` [INFO] [stdout] --> src/rmd/executor.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use tempfile::{NamedTempFile, TempDir, tempdir_in}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::main` [INFO] [stdout] --> src/rmd/executor.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::main; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::stdin` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::stdin; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/rmd/lang/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Captures` [INFO] [stdout] --> src/rmd/lang/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use regex::{Captures, Regex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/rmd/lang/rust_exec.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LangExecutor` and `RustExec` [INFO] [stdout] --> src/rmd/lang/mod.rs:123:58 [INFO] [stdout] | [INFO] [stdout] 123 | use crate::rmd::lang::{build_key_value_from_comment, LangExecutor, RustExec, parse_deps}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `env` and `fs` [INFO] [stdout] --> src/rmd/executor.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{env, fs, process}; [INFO] [stdout] | ^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/rmd/executor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `Metadata`, and `canonicalize` [INFO] [stdout] --> src/rmd/executor.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{canonicalize, File, Metadata}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read`, `SeekFrom`, `Seek`, and `Write` [INFO] [stdout] --> src/rmd/executor.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Error, ErrorKind, Read, Seek, SeekFrom, Write}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf` and `Path` [INFO] [stdout] --> src/rmd/executor.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NamedTempFile`, `TempDir`, and `tempdir_in` [INFO] [stdout] --> src/rmd/executor.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use tempfile::{NamedTempFile, TempDir, tempdir_in}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::main` [INFO] [stdout] --> src/rmd/executor.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::main; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `html` [INFO] [stdout] --> src/rmd/parser.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | Html(html) => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_html` [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/rmd/lang/python_exec.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(mut source: String) -> PythonExec { [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: variable does not need to be mutable [INFO] [stdout] --> src/rmd/lang/rust_exec.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(mut source: String) -> RustExec { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pkg` [INFO] [stdout] --> src/rmd/lang/rust_exec.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let pkg = default_package.push_str(&result); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pkg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmd/lang/rust_exec.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut base_dir = create_lang_dir(String::from("rust"), String::from(self.project.name.clone())); [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/rmd/lang/mod.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut dir = env::temp_dir() [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/rmd/lang/mod.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mut split = str.split("\n"); [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/rmd/lang/mod.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let mut split = str.split(","); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `html` [INFO] [stdout] --> src/rmd/parser.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | Html(html) => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_html` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct Opts { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 13 | config: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cmd_level`, `name`, `desc`, `subcommands`, and `required_args` are never read [INFO] [stdout] --> src/rmd/command.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Command { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 3 | pub cmd_level: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 4 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | pub desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub script: Script, [INFO] [stdout] 7 | pub subcommands: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 8 | pub required_args: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_script` is never used [INFO] [stdout] --> src/rmd/command.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Script { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn has_script(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `val` are never read [INFO] [stdout] --> src/rmd/command.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct RequiredArg { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 66 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 67 | pub val: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequiredArg` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rmd/command.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl RequiredArg { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 71 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/rmd/command.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct OptionFlag { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 81 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 82 | pub desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 83 | pub short: String, // v (used as -v) [INFO] [stdout] | ^^^^^ [INFO] [stdout] 84 | pub long: String, // verbose (used as --verbose) [INFO] [stdout] | ^^^^ [INFO] [stdout] 85 | pub multiple: bool, // Can it have multiple values? (-vvv OR -i one -i two) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 86 | pub takes_value: bool, // Does it take a value? (-i value) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 87 | pub validate_as_number: bool, // Should we validate it as a number? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | pub val: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionFlag` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmd/lang/python_exec.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(mut source: String) -> PythonExec { [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: associated function `new` is never used [INFO] [stdout] --> src/rmd/command.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl OptionFlag { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 92 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `artifact_id` and `group_id` are never read [INFO] [stdout] --> src/rmd/lang/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Dependency { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub artifact_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 22 | pub group_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dependency` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `install_dependency` and `try_run` are never used [INFO] [stdout] --> src/rmd/lang/mod.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait LangExecutor { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 43 | fn install_dependency(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | fn try_run(&self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filename`, `origin`, `dir`, and `output_dir` are never read [INFO] [stdout] --> src/rmd/lang/python_exec.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PythonExec { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 6 | filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | origin: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | source_code: String, [INFO] [stdout] 9 | dir: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | pub(crate) output_dir: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filename`, `origin`, and `output_dir` are never read [INFO] [stdout] --> src/rmd/lang/rust_exec.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RustExec { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 8 | filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | origin: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub(crate) output_dir: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmd/lang/rust_exec.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(mut source: String) -> RustExec { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pkg` [INFO] [stdout] --> src/rmd/lang/rust_exec.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let pkg = default_package.push_str(&result); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pkg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmd/lang/rust_exec.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut base_dir = create_lang_dir(String::from("rust"), String::from(self.project.name.clone())); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmd/lang/mod.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut dir = env::temp_dir() [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/rmd/lang/mod.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mut split = str.split("\n"); [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/rmd/lang/mod.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let mut split = str.split(","); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct Opts { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 13 | config: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cmd_level`, `name`, `desc`, `subcommands`, and `required_args` are never read [INFO] [stdout] --> src/rmd/command.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Command { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 3 | pub cmd_level: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 4 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | pub desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub script: Script, [INFO] [stdout] 7 | pub subcommands: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 8 | pub required_args: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_script` is never used [INFO] [stdout] --> src/rmd/command.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Script { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn has_script(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `val` are never read [INFO] [stdout] --> src/rmd/command.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct RequiredArg { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 66 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 67 | pub val: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequiredArg` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rmd/command.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl RequiredArg { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 71 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/rmd/command.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct OptionFlag { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 81 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 82 | pub desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 83 | pub short: String, // v (used as -v) [INFO] [stdout] | ^^^^^ [INFO] [stdout] 84 | pub long: String, // verbose (used as --verbose) [INFO] [stdout] | ^^^^ [INFO] [stdout] 85 | pub multiple: bool, // Can it have multiple values? (-vvv OR -i one -i two) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 86 | pub takes_value: bool, // Does it take a value? (-i value) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 87 | pub validate_as_number: bool, // Should we validate it as a number? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | pub val: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptionFlag` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rmd/command.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl OptionFlag { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 92 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `artifact_id` and `group_id` are never read [INFO] [stdout] --> src/rmd/lang/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Dependency { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub artifact_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 22 | pub group_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dependency` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `install_dependency` and `try_run` are never used [INFO] [stdout] --> src/rmd/lang/mod.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait LangExecutor { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 43 | fn install_dependency(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | fn try_run(&self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filename`, `origin`, `dir`, and `output_dir` are never read [INFO] [stdout] --> src/rmd/lang/python_exec.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PythonExec { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 6 | filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | origin: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | source_code: String, [INFO] [stdout] 9 | dir: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | pub(crate) output_dir: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filename`, `origin`, and `output_dir` are never read [INFO] [stdout] --> src/rmd/lang/rust_exec.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RustExec { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 8 | filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | origin: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub(crate) output_dir: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.38s [INFO] running `Command { std: "docker" "inspect" "f04fc0b7f1c706fb4b2bc5421abf6b1015a5d0e5dcc1696e034159e7147e033c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f04fc0b7f1c706fb4b2bc5421abf6b1015a5d0e5dcc1696e034159e7147e033c", kill_on_drop: false }` [INFO] [stdout] f04fc0b7f1c706fb4b2bc5421abf6b1015a5d0e5dcc1696e034159e7147e033c