[INFO] fetching crate clt 0.0.6... [INFO] testing clt-0.0.6 against 1.60.0 for beta-1.61-1 [INFO] extracting crate clt 0.0.6 into /workspace/builds/worker-103/source [INFO] validating manifest of crates.io crate clt 0.0.6 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate clt 0.0.6 [INFO] finished tweaking crates.io crate clt 0.0.6 [INFO] tweaked toml for crates.io crate clt 0.0.6 written to /workspace/builds/worker-103/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 722114d008803212f417cb5122d0b6a9e92daa7ea4dd13b573d1c8be2fbbccd7 [INFO] running `Command { std: "docker" "start" "-a" "722114d008803212f417cb5122d0b6a9e92daa7ea4dd13b573d1c8be2fbbccd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "722114d008803212f417cb5122d0b6a9e92daa7ea4dd13b573d1c8be2fbbccd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "722114d008803212f417cb5122d0b6a9e92daa7ea4dd13b573d1c8be2fbbccd7", kill_on_drop: false }` [INFO] [stdout] 722114d008803212f417cb5122d0b6a9e92daa7ea4dd13b573d1c8be2fbbccd7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38f6fed2148d7377dd82125b3d2bf8a8e5e8fad2bd3a0b8564210a4d431eed58 [INFO] running `Command { std: "docker" "start" "-a" "38f6fed2148d7377dd82125b3d2bf8a8e5e8fad2bd3a0b8564210a4d431eed58", kill_on_drop: false }` [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Compiling clt v0.0.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/term.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/term.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | use std::time::{Instant, Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | try!(f.write_str(&self.text)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | try!(f.write_str("\x1b[0m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | try!(f.write_str(fg.get_fg_str())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | try!(f.write_str(bg.get_bg_str())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | try!(f.write_str("\x1b[1m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | try!(f.write_str("\x1b[22m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | try!(f.write_str("\x1b[2m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | try!(f.write_str("\x1b[22m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | try!(f.write_str("\x1b[4m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | try!(f.write_str("\x1b[24m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:188:17 [INFO] [stdout] | [INFO] [stdout] 188 | try!(f.write_str("\x1b[5m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | try!(f.write_str("\x1b[25m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | try!(f.write_str("\x1b[7m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | try!(f.write_str("\x1b[27m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/formatting.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/term.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/term.rs:225:18 [INFO] [stdout] | [INFO] [stdout] 225 | return input.trim_right_matches("\n").to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> src/term.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/core.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 121 | let show_help = |params: Params| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `show_help` [INFO] [stdout] --> src/core.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let show_help = |params: Params| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_show_help` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pragram_name` [INFO] [stdout] --> src/core.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn invoke(&self, pragram_name: String, args: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pragram_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> src/types.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hide_input` [INFO] [stdout] --> src/term.rs:221:40 [INFO] [stdout] | [INFO] [stdout] 221 | fn get_prompt_input(prompt_text: &str, hide_input: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hide_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/formatting.rs:123:28 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_indent` [INFO] [stdout] --> src/formatting.rs:123:42 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_indent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subsequent_indent` [INFO] [stdout] --> src/formatting.rs:123:64 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subsequent_indent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/term.rs:475:13 [INFO] [stdout] | [INFO] [stdout] 475 | let mut info: String; [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/term.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let mut filepath = tmpdir.path().clone(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Command` [INFO] [stdout] --> src/core.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(name: &str, callback: CommandCallback) -> Command { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `option` [INFO] [stdout] --> src/core.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn option(&mut self, short_name: &'static str, long_name: &'static str, help: &'static str, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `argument` [INFO] [stdout] --> src/core.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn argument(&mut self, name: &'static str, required: bool, default: Option<&'static str>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `make_formatter` [INFO] [stdout] --> src/core.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | fn make_formatter(&self) -> HelpFormatter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_usage` [INFO] [stdout] --> src/core.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn format_usage(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usage` [INFO] [stdout] --> src/core.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn get_usage(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_help_text` [INFO] [stdout] --> src/core.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn format_help_text(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_options` [INFO] [stdout] --> src/core.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | fn format_options(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_epilog` [INFO] [stdout] --> src/core.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn format_epilog(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_help` [INFO] [stdout] --> src/core.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | fn format_help(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_help` [INFO] [stdout] --> src/core.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn get_help(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_help_option` [INFO] [stdout] --> src/core.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | fn get_help_option(&self) -> Options { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `invoke` [INFO] [stdout] --> src/core.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn invoke(&self, pragram_name: String, args: Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_options` [INFO] [stdout] --> src/core.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | fn get_options(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `make_parser` [INFO] [stdout] --> src/core.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn make_parser(&self) -> getopts::Options { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_args` [INFO] [stdout] --> src/core.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | fn parse_args(&self, args: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/core.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn run(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Params` [INFO] [stdout] --> src/types.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub type Params = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `CommandCallback` [INFO] [stdout] --> src/types.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub type CommandCallback = fn(Params); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `short_name` [INFO] [stdout] --> src/types.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | short_name: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `long_name` [INFO] [stdout] --> src/types.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | long_name: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `help` [INFO] [stdout] --> src/types.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | help: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_flag` [INFO] [stdout] --> src/types.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | is_flag: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_bool_flag` [INFO] [stdout] --> src/types.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | is_bool_flag: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `multiple` [INFO] [stdout] --> src/types.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | multiple: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `required` [INFO] [stdout] --> src/types.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | required: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `default` [INFO] [stdout] --> src/types.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | default: Option<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/types.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(s_name: &'static str, l_name: &'static str, help: &'static str, is_flag: bool, is_bool_flag: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_parser` [INFO] [stdout] --> src/types.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_help_record` [INFO] [stdout] --> src/types.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn get_help_record(&self) -> (String, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Argument` [INFO] [stdout] --> src/types.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct Argument { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/types.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn new(name: &'static str, required: bool, default: Option<&'static str>) -> Argument { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_parser` [INFO] [stdout] --> src/types.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usage_piece` [INFO] [stdout] --> src/types.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn get_usage_piece(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `time_per_iteration` [INFO] [stdout] --> src/term.rs:435:8 [INFO] [stdout] | [INFO] [stdout] 435 | fn time_per_iteration(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `estimate_time` [INFO] [stdout] --> src/term.rs:443:8 [INFO] [stdout] | [INFO] [stdout] 443 | fn estimate_time(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HelpFormatter` [INFO] [stdout] --> src/formatting.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct HelpFormatter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/formatting.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(width: usize, indent_increment: usize) -> HelpFormatter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `indent` [INFO] [stdout] --> src/formatting.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn indent(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dedent` [INFO] [stdout] --> src/formatting.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn dedent(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/formatting.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn write(&mut self, s: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_paragraph` [INFO] [stdout] --> src/formatting.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn write_paragraph(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_heading` [INFO] [stdout] --> src/formatting.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn write_heading(&mut self, heading: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_dl` [INFO] [stdout] --> src/formatting.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn write_dl(&mut self, rows: Vec<(String, String)>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enter_section` [INFO] [stdout] --> src/formatting.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn enter_section(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exit_section` [INFO] [stdout] --> src/formatting.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn exit_section(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_text` [INFO] [stdout] --> src/formatting.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn write_text(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_usage` [INFO] [stdout] --> src/formatting.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn write_usage(&mut self, name: &str, args: String, prefix: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `getvalue` [INFO] [stdout] --> src/formatting.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn getvalue(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wrap_text` [INFO] [stdout] --> src/formatting.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Path::join` that must be used [INFO] [stdout] --> src/term.rs:577:9 [INFO] [stdout] | [INFO] [stdout] 577 | filepath.join(&tmpname); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 82 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.11s [INFO] running `Command { std: "docker" "inspect" "38f6fed2148d7377dd82125b3d2bf8a8e5e8fad2bd3a0b8564210a4d431eed58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38f6fed2148d7377dd82125b3d2bf8a8e5e8fad2bd3a0b8564210a4d431eed58", kill_on_drop: false }` [INFO] [stdout] 38f6fed2148d7377dd82125b3d2bf8a8e5e8fad2bd3a0b8564210a4d431eed58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2d61e85b1a596326388cfcc1f5dcc34bfc0592ce6fceb198e124472defdbaa3 [INFO] running `Command { std: "docker" "start" "-a" "e2d61e85b1a596326388cfcc1f5dcc34bfc0592ce6fceb198e124472defdbaa3", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/term.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/term.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | use std::time::{Instant, Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | try!(f.write_str(&self.text)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | try!(f.write_str("\x1b[0m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | try!(f.write_str(fg.get_fg_str())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | try!(f.write_str(bg.get_bg_str())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | try!(f.write_str("\x1b[1m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | try!(f.write_str("\x1b[22m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | try!(f.write_str("\x1b[2m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | try!(f.write_str("\x1b[22m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | try!(f.write_str("\x1b[4m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | try!(f.write_str("\x1b[24m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:188:17 [INFO] [stdout] | [INFO] [stdout] 188 | try!(f.write_str("\x1b[5m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | try!(f.write_str("\x1b[25m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | try!(f.write_str("\x1b[7m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | try!(f.write_str("\x1b[27m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/formatting.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/term.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/term.rs:225:18 [INFO] [stdout] | [INFO] [stdout] 225 | return input.trim_right_matches("\n").to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> src/term.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/core.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 121 | let show_help = |params: Params| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `show_help` [INFO] [stdout] --> src/core.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let show_help = |params: Params| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_show_help` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pragram_name` [INFO] [stdout] --> src/core.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn invoke(&self, pragram_name: String, args: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pragram_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> src/types.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hide_input` [INFO] [stdout] --> src/term.rs:221:40 [INFO] [stdout] | [INFO] [stdout] 221 | fn get_prompt_input(prompt_text: &str, hide_input: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hide_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/formatting.rs:123:28 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_indent` [INFO] [stdout] --> src/formatting.rs:123:42 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_indent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subsequent_indent` [INFO] [stdout] --> src/formatting.rs:123:64 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subsequent_indent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/term.rs:475:13 [INFO] [stdout] | [INFO] [stdout] 475 | let mut info: String; [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/term.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let mut filepath = tmpdir.path().clone(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Command` [INFO] [stdout] --> src/core.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(name: &str, callback: CommandCallback) -> Command { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `option` [INFO] [stdout] --> src/core.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn option(&mut self, short_name: &'static str, long_name: &'static str, help: &'static str, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `argument` [INFO] [stdout] --> src/core.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn argument(&mut self, name: &'static str, required: bool, default: Option<&'static str>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `make_formatter` [INFO] [stdout] --> src/core.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | fn make_formatter(&self) -> HelpFormatter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_usage` [INFO] [stdout] --> src/core.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn format_usage(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usage` [INFO] [stdout] --> src/core.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn get_usage(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_help_text` [INFO] [stdout] --> src/core.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn format_help_text(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_options` [INFO] [stdout] --> src/core.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | fn format_options(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_epilog` [INFO] [stdout] --> src/core.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn format_epilog(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_help` [INFO] [stdout] --> src/core.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | fn format_help(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_help` [INFO] [stdout] --> src/core.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn get_help(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_help_option` [INFO] [stdout] --> src/core.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | fn get_help_option(&self) -> Options { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `invoke` [INFO] [stdout] --> src/core.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn invoke(&self, pragram_name: String, args: Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_options` [INFO] [stdout] --> src/core.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | fn get_options(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `make_parser` [INFO] [stdout] --> src/core.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn make_parser(&self) -> getopts::Options { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_args` [INFO] [stdout] --> src/core.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | fn parse_args(&self, args: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/core.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn run(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Params` [INFO] [stdout] --> src/types.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub type Params = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `CommandCallback` [INFO] [stdout] --> src/types.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub type CommandCallback = fn(Params); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `short_name` [INFO] [stdout] --> src/types.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | short_name: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `long_name` [INFO] [stdout] --> src/types.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | long_name: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `help` [INFO] [stdout] --> src/types.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | help: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_flag` [INFO] [stdout] --> src/types.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | is_flag: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_bool_flag` [INFO] [stdout] --> src/types.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | is_bool_flag: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `multiple` [INFO] [stdout] --> src/types.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | multiple: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `required` [INFO] [stdout] --> src/types.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | required: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `default` [INFO] [stdout] --> src/types.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | default: Option<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/types.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(s_name: &'static str, l_name: &'static str, help: &'static str, is_flag: bool, is_bool_flag: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_parser` [INFO] [stdout] --> src/types.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_help_record` [INFO] [stdout] --> src/types.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn get_help_record(&self) -> (String, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Argument` [INFO] [stdout] --> src/types.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct Argument { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/types.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn new(name: &'static str, required: bool, default: Option<&'static str>) -> Argument { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_parser` [INFO] [stdout] --> src/types.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usage_piece` [INFO] [stdout] --> src/types.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn get_usage_piece(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `time_per_iteration` [INFO] [stdout] --> src/term.rs:435:8 [INFO] [stdout] | [INFO] [stdout] 435 | fn time_per_iteration(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `estimate_time` [INFO] [stdout] --> src/term.rs:443:8 [INFO] [stdout] | [INFO] [stdout] 443 | fn estimate_time(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HelpFormatter` [INFO] [stdout] --> src/formatting.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct HelpFormatter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/formatting.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(width: usize, indent_increment: usize) -> HelpFormatter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `indent` [INFO] [stdout] --> src/formatting.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn indent(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dedent` [INFO] [stdout] --> src/formatting.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn dedent(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/formatting.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn write(&mut self, s: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_paragraph` [INFO] [stdout] --> src/formatting.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn write_paragraph(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_heading` [INFO] [stdout] --> src/formatting.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn write_heading(&mut self, heading: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_dl` [INFO] [stdout] --> src/formatting.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn write_dl(&mut self, rows: Vec<(String, String)>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enter_section` [INFO] [stdout] --> src/formatting.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn enter_section(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exit_section` [INFO] [stdout] --> src/formatting.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn exit_section(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_text` [INFO] [stdout] --> src/formatting.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn write_text(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_usage` [INFO] [stdout] --> src/formatting.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn write_usage(&mut self, name: &str, args: String, prefix: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `getvalue` [INFO] [stdout] --> src/formatting.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn getvalue(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wrap_text` [INFO] [stdout] --> src/formatting.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Path::join` that must be used [INFO] [stdout] --> src/term.rs:577:9 [INFO] [stdout] | [INFO] [stdout] 577 | filepath.join(&tmpname); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 82 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling clt v0.0.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/term.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/term.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | use std::time::{Instant, Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | try!(f.write_str(&self.text)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | try!(f.write_str("\x1b[0m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | try!(f.write_str(fg.get_fg_str())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | try!(f.write_str(bg.get_bg_str())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | try!(f.write_str("\x1b[1m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | try!(f.write_str("\x1b[22m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | try!(f.write_str("\x1b[2m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | try!(f.write_str("\x1b[22m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | try!(f.write_str("\x1b[4m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | try!(f.write_str("\x1b[24m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:188:17 [INFO] [stdout] | [INFO] [stdout] 188 | try!(f.write_str("\x1b[5m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | try!(f.write_str("\x1b[25m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | try!(f.write_str("\x1b[7m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/term.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | try!(f.write_str("\x1b[27m")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/formatting.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/term.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/term.rs:225:18 [INFO] [stdout] | [INFO] [stdout] 225 | return input.trim_right_matches("\n").to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> src/term.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/core.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 121 | let show_help = |params: Params| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `show_help` [INFO] [stdout] --> src/core.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let show_help = |params: Params| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_show_help` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pragram_name` [INFO] [stdout] --> src/core.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn invoke(&self, pragram_name: String, args: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pragram_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> src/types.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hide_input` [INFO] [stdout] --> src/term.rs:221:40 [INFO] [stdout] | [INFO] [stdout] 221 | fn get_prompt_input(prompt_text: &str, hide_input: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hide_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/formatting.rs:123:28 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_indent` [INFO] [stdout] --> src/formatting.rs:123:42 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_indent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subsequent_indent` [INFO] [stdout] --> src/formatting.rs:123:64 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subsequent_indent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/term.rs:475:13 [INFO] [stdout] | [INFO] [stdout] 475 | let mut info: String; [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/term.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let mut filepath = tmpdir.path().clone(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Command` [INFO] [stdout] --> src/core.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/core.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(name: &str, callback: CommandCallback) -> Command { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `option` [INFO] [stdout] --> src/core.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn option(&mut self, short_name: &'static str, long_name: &'static str, help: &'static str, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `argument` [INFO] [stdout] --> src/core.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn argument(&mut self, name: &'static str, required: bool, default: Option<&'static str>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `make_formatter` [INFO] [stdout] --> src/core.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | fn make_formatter(&self) -> HelpFormatter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_usage` [INFO] [stdout] --> src/core.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn format_usage(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usage` [INFO] [stdout] --> src/core.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn get_usage(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_help_text` [INFO] [stdout] --> src/core.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn format_help_text(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_options` [INFO] [stdout] --> src/core.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | fn format_options(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_epilog` [INFO] [stdout] --> src/core.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn format_epilog(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `format_help` [INFO] [stdout] --> src/core.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | fn format_help(&self, formatter: &mut HelpFormatter) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_help` [INFO] [stdout] --> src/core.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn get_help(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_help_option` [INFO] [stdout] --> src/core.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | fn get_help_option(&self) -> Options { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `invoke` [INFO] [stdout] --> src/core.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn invoke(&self, pragram_name: String, args: Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_options` [INFO] [stdout] --> src/core.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | fn get_options(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `make_parser` [INFO] [stdout] --> src/core.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn make_parser(&self) -> getopts::Options { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_args` [INFO] [stdout] --> src/core.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | fn parse_args(&self, args: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/core.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn run(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Params` [INFO] [stdout] --> src/types.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub type Params = Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `CommandCallback` [INFO] [stdout] --> src/types.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub type CommandCallback = fn(Params); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `short_name` [INFO] [stdout] --> src/types.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | short_name: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `long_name` [INFO] [stdout] --> src/types.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | long_name: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `help` [INFO] [stdout] --> src/types.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | help: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_flag` [INFO] [stdout] --> src/types.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | is_flag: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_bool_flag` [INFO] [stdout] --> src/types.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | is_bool_flag: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `multiple` [INFO] [stdout] --> src/types.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | multiple: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `required` [INFO] [stdout] --> src/types.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | required: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `default` [INFO] [stdout] --> src/types.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | default: Option<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/types.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(s_name: &'static str, l_name: &'static str, help: &'static str, is_flag: bool, is_bool_flag: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_parser` [INFO] [stdout] --> src/types.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_help_record` [INFO] [stdout] --> src/types.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn get_help_record(&self) -> (String, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Argument` [INFO] [stdout] --> src/types.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct Argument { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/types.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn new(name: &'static str, required: bool, default: Option<&'static str>) -> Argument { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_parser` [INFO] [stdout] --> src/types.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usage_piece` [INFO] [stdout] --> src/types.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn get_usage_piece(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `time_per_iteration` [INFO] [stdout] --> src/term.rs:435:8 [INFO] [stdout] | [INFO] [stdout] 435 | fn time_per_iteration(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `estimate_time` [INFO] [stdout] --> src/term.rs:443:8 [INFO] [stdout] | [INFO] [stdout] 443 | fn estimate_time(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HelpFormatter` [INFO] [stdout] --> src/formatting.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct HelpFormatter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/formatting.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(width: usize, indent_increment: usize) -> HelpFormatter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `indent` [INFO] [stdout] --> src/formatting.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn indent(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dedent` [INFO] [stdout] --> src/formatting.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn dedent(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/formatting.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn write(&mut self, s: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_paragraph` [INFO] [stdout] --> src/formatting.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn write_paragraph(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_heading` [INFO] [stdout] --> src/formatting.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn write_heading(&mut self, heading: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_dl` [INFO] [stdout] --> src/formatting.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn write_dl(&mut self, rows: Vec<(String, String)>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enter_section` [INFO] [stdout] --> src/formatting.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn enter_section(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exit_section` [INFO] [stdout] --> src/formatting.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn exit_section(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_text` [INFO] [stdout] --> src/formatting.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn write_text(&mut self, text: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_usage` [INFO] [stdout] --> src/formatting.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn write_usage(&mut self, name: &str, args: String, prefix: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `getvalue` [INFO] [stdout] --> src/formatting.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn getvalue(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wrap_text` [INFO] [stdout] --> src/formatting.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Path::join` that must be used [INFO] [stdout] --> src/term.rs:577:9 [INFO] [stdout] | [INFO] [stdout] 577 | filepath.join(&tmpname); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 82 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `Command { std: "docker" "inspect" "e2d61e85b1a596326388cfcc1f5dcc34bfc0592ce6fceb198e124472defdbaa3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2d61e85b1a596326388cfcc1f5dcc34bfc0592ce6fceb198e124472defdbaa3", kill_on_drop: false }` [INFO] [stdout] e2d61e85b1a596326388cfcc1f5dcc34bfc0592ce6fceb198e124472defdbaa3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] caffd27fe68d8553e4fee588336b99d79a1c2f521099b4abe6fcc637a5e52c58 [INFO] running `Command { std: "docker" "start" "-a" "caffd27fe68d8553e4fee588336b99d79a1c2f521099b4abe6fcc637a5e52c58", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::path::Path` [INFO] [stderr] --> src/term.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use std::path::Path; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Duration` [INFO] [stderr] --> src/term.rs:16:26 [INFO] [stderr] | [INFO] [stderr] 16 | use std::time::{Instant, Duration, SystemTime, UNIX_EPOCH}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:200:9 [INFO] [stderr] | [INFO] [stderr] 200 | try!(f.write_str(&self.text)); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:202:9 [INFO] [stderr] | [INFO] [stderr] 202 | try!(f.write_str("\x1b[0m")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:155:17 [INFO] [stderr] | [INFO] [stderr] 155 | try!(f.write_str(fg.get_fg_str())); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:161:17 [INFO] [stderr] | [INFO] [stderr] 161 | try!(f.write_str(bg.get_bg_str())); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:167:17 [INFO] [stderr] | [INFO] [stderr] 167 | try!(f.write_str("\x1b[1m")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:169:17 [INFO] [stderr] | [INFO] [stderr] 169 | try!(f.write_str("\x1b[22m")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:174:17 [INFO] [stderr] | [INFO] [stderr] 174 | try!(f.write_str("\x1b[2m")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:176:17 [INFO] [stderr] | [INFO] [stderr] 176 | try!(f.write_str("\x1b[22m")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:181:17 [INFO] [stderr] | [INFO] [stderr] 181 | try!(f.write_str("\x1b[4m")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:183:17 [INFO] [stderr] | [INFO] [stderr] 183 | try!(f.write_str("\x1b[24m")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:188:17 [INFO] [stderr] | [INFO] [stderr] 188 | try!(f.write_str("\x1b[5m")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:190:17 [INFO] [stderr] | [INFO] [stderr] 190 | try!(f.write_str("\x1b[25m")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:195:17 [INFO] [stderr] | [INFO] [stderr] 195 | try!(f.write_str("\x1b[7m")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/term.rs:197:17 [INFO] [stderr] | [INFO] [stderr] 197 | try!(f.write_str("\x1b[27m")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std` [INFO] [stderr] --> src/formatting.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stderr] --> src/term.rs:8:17 [INFO] [stderr] | [INFO] [stderr] 8 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stderr] --> src/term.rs:225:18 [INFO] [stderr] | [INFO] [stderr] 225 | return input.trim_right_matches("\n").to_string(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ascii::AsciiExt` [INFO] [stderr] --> src/term.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/core.rs:121:26 [INFO] [stderr] | [INFO] [stderr] 121 | let show_help = |params: Params| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `show_help` [INFO] [stderr] --> src/core.rs:121:13 [INFO] [stderr] | [INFO] [stderr] 121 | let show_help = |params: Params| { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_show_help` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pragram_name` [INFO] [stderr] --> src/core.rs:129:26 [INFO] [stderr] | [INFO] [stderr] 129 | pub fn invoke(&self, pragram_name: String, args: Vec) { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pragram_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `parser` [INFO] [stderr] --> src/types.rs:113:33 [INFO] [stderr] | [INFO] [stderr] 113 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hide_input` [INFO] [stderr] --> src/term.rs:221:40 [INFO] [stderr] | [INFO] [stderr] 221 | fn get_prompt_input(prompt_text: &str, hide_input: bool) -> String { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hide_input` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `width` [INFO] [stderr] --> src/formatting.rs:123:28 [INFO] [stderr] | [INFO] [stderr] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `initial_indent` [INFO] [stderr] --> src/formatting.rs:123:42 [INFO] [stderr] | [INFO] [stderr] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_indent` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `subsequent_indent` [INFO] [stderr] --> src/formatting.rs:123:64 [INFO] [stderr] | [INFO] [stderr] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subsequent_indent` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/term.rs:475:13 [INFO] [stderr] | [INFO] [stderr] 475 | let mut info: String; [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/term.rs:576:13 [INFO] [stderr] | [INFO] [stderr] 576 | let mut filepath = tmpdir.path().clone(); [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Command` [INFO] [stderr] --> src/core.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct Command { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/core.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn new(name: &str, callback: CommandCallback) -> Command { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `option` [INFO] [stderr] --> src/core.rs:42:12 [INFO] [stderr] | [INFO] [stderr] 42 | pub fn option(&mut self, short_name: &'static str, long_name: &'static str, help: &'static str, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `argument` [INFO] [stderr] --> src/core.rs:51:12 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn argument(&mut self, name: &'static str, required: bool, default: Option<&'static str>) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `make_formatter` [INFO] [stderr] --> src/core.rs:56:8 [INFO] [stderr] | [INFO] [stderr] 56 | fn make_formatter(&self) -> HelpFormatter { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `format_usage` [INFO] [stderr] --> src/core.rs:60:8 [INFO] [stderr] | [INFO] [stderr] 60 | fn format_usage(&self, formatter: &mut HelpFormatter) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_usage` [INFO] [stderr] --> src/core.rs:69:12 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn get_usage(&self) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `format_help_text` [INFO] [stderr] --> src/core.rs:75:8 [INFO] [stderr] | [INFO] [stderr] 75 | fn format_help_text(&self, formatter: &mut HelpFormatter) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `format_options` [INFO] [stderr] --> src/core.rs:84:8 [INFO] [stderr] | [INFO] [stderr] 84 | fn format_options(&self, formatter: &mut HelpFormatter) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `format_epilog` [INFO] [stderr] --> src/core.rs:96:8 [INFO] [stderr] | [INFO] [stderr] 96 | fn format_epilog(&self, formatter: &mut HelpFormatter) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `format_help` [INFO] [stderr] --> src/core.rs:105:8 [INFO] [stderr] | [INFO] [stderr] 105 | fn format_help(&self, formatter: &mut HelpFormatter) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_help` [INFO] [stderr] --> src/core.rs:112:12 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn get_help(&self) -> String { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_help_option` [INFO] [stderr] --> src/core.rs:119:8 [INFO] [stderr] | [INFO] [stderr] 119 | fn get_help_option(&self) -> Options { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `invoke` [INFO] [stderr] --> src/core.rs:129:12 [INFO] [stderr] | [INFO] [stderr] 129 | pub fn invoke(&self, pragram_name: String, args: Vec) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_options` [INFO] [stderr] --> src/core.rs:136:8 [INFO] [stderr] | [INFO] [stderr] 136 | fn get_options(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `make_parser` [INFO] [stderr] --> src/core.rs:147:8 [INFO] [stderr] | [INFO] [stderr] 147 | fn make_parser(&self) -> getopts::Options { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `parse_args` [INFO] [stderr] --> src/core.rs:156:8 [INFO] [stderr] | [INFO] [stderr] 156 | fn parse_args(&self, args: Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `run` [INFO] [stderr] --> src/core.rs:161:12 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn run(&self) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias is never used: `Params` [INFO] [stderr] --> src/types.rs:9:1 [INFO] [stderr] | [INFO] [stderr] 9 | pub type Params = Vec; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias is never used: `CommandCallback` [INFO] [stderr] --> src/types.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | pub type CommandCallback = fn(Params); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `short_name` [INFO] [stderr] --> src/types.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | short_name: &'static str, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/types.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `long_name` [INFO] [stderr] --> src/types.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | long_name: &'static str, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/types.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `help` [INFO] [stderr] --> src/types.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | help: &'static str, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/types.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `is_flag` [INFO] [stderr] --> src/types.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | is_flag: bool, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/types.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `is_bool_flag` [INFO] [stderr] --> src/types.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | is_bool_flag: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/types.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `multiple` [INFO] [stderr] --> src/types.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | multiple: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/types.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `required` [INFO] [stderr] --> src/types.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | required: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/types.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `default` [INFO] [stderr] --> src/types.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | default: Option<&'static str>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Options` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/types.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/types.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn new(s_name: &'static str, l_name: &'static str, help: &'static str, is_flag: bool, is_bool_flag: bool, [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_to_parser` [INFO] [stderr] --> src/types.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_help_record` [INFO] [stderr] --> src/types.rs:64:12 [INFO] [stderr] | [INFO] [stderr] 64 | pub fn get_help_record(&self) -> (String, String) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Argument` [INFO] [stderr] --> src/types.rs:98:12 [INFO] [stderr] | [INFO] [stderr] 98 | pub struct Argument { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/types.rs:105:12 [INFO] [stderr] | [INFO] [stderr] 105 | pub fn new(name: &'static str, required: bool, default: Option<&'static str>) -> Argument { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_to_parser` [INFO] [stderr] --> src/types.rs:113:12 [INFO] [stderr] | [INFO] [stderr] 113 | pub fn add_to_parser(&self, parser: &mut getopts::Options) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_usage_piece` [INFO] [stderr] --> src/types.rs:116:12 [INFO] [stderr] | [INFO] [stderr] 116 | pub fn get_usage_piece(&self) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `time_per_iteration` [INFO] [stderr] --> src/term.rs:435:8 [INFO] [stderr] | [INFO] [stderr] 435 | fn time_per_iteration(&self) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `estimate_time` [INFO] [stderr] --> src/term.rs:443:8 [INFO] [stderr] | [INFO] [stderr] 443 | fn estimate_time(&self) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `HelpFormatter` [INFO] [stderr] --> src/formatting.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct HelpFormatter { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/formatting.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn new(width: usize, indent_increment: usize) -> HelpFormatter { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `indent` [INFO] [stderr] --> src/formatting.rs:33:12 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn indent(&mut self) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `dedent` [INFO] [stderr] --> src/formatting.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn dedent(&mut self) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `write` [INFO] [stderr] --> src/formatting.rs:43:12 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn write(&mut self, s: String) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `write_paragraph` [INFO] [stderr] --> src/formatting.rs:48:12 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn write_paragraph(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `write_heading` [INFO] [stderr] --> src/formatting.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 57 | pub fn write_heading(&mut self, heading: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `write_dl` [INFO] [stderr] --> src/formatting.rs:63:12 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn write_dl(&mut self, rows: Vec<(String, String)>) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `enter_section` [INFO] [stderr] --> src/formatting.rs:73:12 [INFO] [stderr] | [INFO] [stderr] 73 | pub fn enter_section(&mut self, name: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `exit_section` [INFO] [stderr] --> src/formatting.rs:80:12 [INFO] [stderr] | [INFO] [stderr] 80 | pub fn exit_section(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `write_text` [INFO] [stderr] --> src/formatting.rs:85:12 [INFO] [stderr] | [INFO] [stderr] 85 | pub fn write_text(&mut self, text: String) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `write_usage` [INFO] [stderr] --> src/formatting.rs:98:12 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn write_usage(&mut self, name: &str, args: String, prefix: &str) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `getvalue` [INFO] [stderr] --> src/formatting.rs:115:12 [INFO] [stderr] | [INFO] [stderr] 115 | pub fn getvalue(&self) -> String { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `wrap_text` [INFO] [stderr] --> src/formatting.rs:123:4 [INFO] [stderr] | [INFO] [stderr] 123 | fn wrap_text(text: String, width: usize, initial_indent: &str, subsequent_indent: &str) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused return value of `Path::join` that must be used [INFO] [stderr] --> src/term.rs:577:9 [INFO] [stderr] | [INFO] [stderr] 577 | filepath.join(&tmpname); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `clt` (lib) generated 82 warnings [INFO] [stderr] warning: `clt` (lib test) generated 82 warnings (82 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/clt-068fd729b34a49f6) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/test_basic.rs (/opt/rustwide/target/debug/deps/test_basic-e4f086f3184dec73) [INFO] [stdout] [INFO] [stderr] Doc-tests clt [INFO] [stdout] running 1 test [INFO] [stdout] test foo ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/term.rs - term::Editor::edit (line 564) - compile ... ok [INFO] [stdout] test src/term.rs - term::Style (line 79) - compile ... ok [INFO] [stdout] test src/term.rs - term::ProgressBar (line 359) - compile ... ok [INFO] [stdout] test src/term.rs - term::Editor::edit_file (line 541) - compile ... ok [INFO] [stdout] test src/term.rs - term::get_terminal_size (line 309) - compile ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "caffd27fe68d8553e4fee588336b99d79a1c2f521099b4abe6fcc637a5e52c58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caffd27fe68d8553e4fee588336b99d79a1c2f521099b4abe6fcc637a5e52c58", kill_on_drop: false }` [INFO] [stdout] caffd27fe68d8553e4fee588336b99d79a1c2f521099b4abe6fcc637a5e52c58