[INFO] cloning repository https://github.com/chapgx/rusmbi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chapgx/rusmbi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchapgx%2Frusmbi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchapgx%2Frusmbi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a8e06e591192c89dab0bea0916c928c9a90fa92 [INFO] checking chapgx/rusmbi against f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1 for pr-160235-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchapgx%2Frusmbi" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/chapgx/rusmbi [INFO] finished tweaking git repo https://github.com/chapgx/rusmbi [INFO] tweaked toml for git repo https://github.com/chapgx/rusmbi written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chapgx/rusmbi on toolchain f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chapgx/rusmbi already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "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-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 2b2eb8b2ce3a408b2bcc3b1dfe4561d6ca6aab4af8109f9665f5bfbe4e421277 [INFO] running `Command { std: "docker" "start" "2b2eb8b2ce3a408b2bcc3b1dfe4561d6ca6aab4af8109f9665f5bfbe4e421277", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b2eb8b2ce3a408b2bcc3b1dfe4561d6ca6aab4af8109f9665f5bfbe4e421277", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2b2eb8b2ce3a408b2bcc3b1dfe4561d6ca6aab4af8109f9665f5bfbe4e421277" "/opt/rustwide/cargo-home/bin/cargo" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b2eb8b2ce3a408b2bcc3b1dfe4561d6ca6aab4af8109f9665f5bfbe4e421277", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2b2eb8b2ce3a408b2bcc3b1dfe4561d6ca6aab4af8109f9665f5bfbe4e421277" "/opt/rustwide/cargo-home/bin/cargo" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking rhombi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Error<'_>` is more private than the item `RunFn` [INFO] [stdout] --> src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub type RunFn = fn(args: &[String]) -> Result<(), Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^ type alias `RunFn` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Error<'_>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Error<'static>` is more private than the item `Command::add_subs` [INFO] [stdout] --> src/lib.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn add_subs(mut self, cmd: &'static mut Command) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Command::add_subs` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Error<'static>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Error<'static>` is more private than the item `Command::add_flag` [INFO] [stdout] --> src/lib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn add_flag(mut self, f: &'static mut Flag) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Command::add_flag` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Error<'static>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Generic` is never constructed [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error<'a> { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Generic(&'a str), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `desc`, `long_desc`, and `run` are never read [INFO] [stdout] --> src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Command { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 39 | name: &'static str, [INFO] [stdout] 40 | desc: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | long_desc: &'static str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 42 | run: RunFn, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `short`, `desc`, and `long_desc` are never read [INFO] [stdout] --> src/flags.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Flag { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | name: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | short: &'static str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | desc: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | long_desc: &'static str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Flag` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lexer` is never constructed [INFO] [stdout] --> src/lexer/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Lexer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lexer/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Lexer { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(input: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn read_char(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn next(&mut self) -> Token<'_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn peek_next(&mut self) -> char { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn eat_white_space(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn is_letter(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn read_ident(&mut self) -> &mut str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Type` is never used [INFO] [stdout] --> src/tokens/mod.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type Type = str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/tokens/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Token<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_ident` are never used [INFO] [stdout] --> src/tokens/mod.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl<'a> Token<'a> { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 25 | /// Creates a new token [INFO] [stdout] 26 | pub fn new(tp: Tokens<'a>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn new_ident(typ: &'a Type, literal: String) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tokens` is never used [INFO] [stdout] --> src/tokens/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum Tokens<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ILLEGAL` is never used [INFO] [stdout] --> src/tokens/mod.rs:96:11 [INFO] [stdout] | [INFO] [stdout] 96 | pub const ILLEGAL: &Type = "ILLEGAL"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDENT` is never used [INFO] [stdout] --> src/tokens/mod.rs:97:11 [INFO] [stdout] | [INFO] [stdout] 97 | pub const IDENT: &Type = "IDENT"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DOUBLE_DASH` is never used [INFO] [stdout] --> src/tokens/mod.rs:98:11 [INFO] [stdout] | [INFO] [stdout] 98 | pub const DOUBLE_DASH: &Type = "--"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DASH` is never used [INFO] [stdout] --> src/tokens/mod.rs:99:11 [INFO] [stdout] | [INFO] [stdout] 99 | pub const DASH: &Type = "-"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EOF` is never used [INFO] [stdout] --> src/tokens/mod.rs:100:11 [INFO] [stdout] | [INFO] [stdout] 100 | pub const EOF: &Type = "EOF"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `QUOTE` is never used [INFO] [stdout] --> src/tokens/mod.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | pub const QUOTE: &Type = "\""; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COMMAND` is never used [INFO] [stdout] --> src/tokens/mod.rs:102:11 [INFO] [stdout] | [INFO] [stdout] 102 | pub const COMMAND: &Type = "COMMAND"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ShortIdent` is never used [INFO] [stdout] --> src/tokens/mod.rs:103:11 [INFO] [stdout] | [INFO] [stdout] 103 | pub const ShortIdent: &Type = "ShortIdent"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Error<'_>` is more private than the item `RunFn` [INFO] [stdout] --> src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub type RunFn = fn(args: &[String]) -> Result<(), Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^ type alias `RunFn` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Error<'_>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Error<'static>` is more private than the item `Command::add_subs` [INFO] [stdout] --> src/lib.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn add_subs(mut self, cmd: &'static mut Command) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Command::add_subs` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Error<'static>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Error<'static>` is more private than the item `Command::add_flag` [INFO] [stdout] --> src/lib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn add_flag(mut self, f: &'static mut Flag) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Command::add_flag` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Error<'static>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | fn default_run(_: &[String]) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 32 | fn default_run(_: &[String]) -> Result<(), Error<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lib.rs:75:72 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn add_subs(mut self, cmd: &'static mut Command) -> Result<(), Error> { [INFO] [stdout] | ------- the lifetime is named here ^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'static` [INFO] [stdout] | [INFO] [stdout] 75 | pub fn add_subs(mut self, cmd: &'static mut Command) -> Result<(), Error<'static>> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lib.rs:93:67 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn add_flag(mut self, f: &'static mut Flag) -> Result<(), Error> { [INFO] [stdout] | ------- ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'static` [INFO] [stdout] | [INFO] [stdout] 93 | pub fn add_flag(mut self, f: &'static mut Flag) -> Result<(), Error<'static>> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Generic` is never constructed [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error<'a> { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Generic(&'a str), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ShortIdent` should have an upper case name [INFO] [stdout] --> src/tokens/mod.rs:103:11 [INFO] [stdout] | [INFO] [stdout] 103 | pub const ShortIdent: &Type = "ShortIdent"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 103 - pub const ShortIdent: &Type = "ShortIdent"; [INFO] [stdout] 103 + pub const SHORT_IDENT: &Type = "ShortIdent"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `desc`, `long_desc`, and `run` are never read [INFO] [stdout] --> src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Command { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 39 | name: &'static str, [INFO] [stdout] 40 | desc: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | long_desc: &'static str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 42 | run: RunFn, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `short`, `desc`, and `long_desc` are never read [INFO] [stdout] --> src/flags.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Flag { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | name: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | short: &'static str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | desc: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | long_desc: &'static str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Flag` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ident`, `Command`, `ShortIdent`, and `Quote` are never constructed [INFO] [stdout] --> src/tokens/mod.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum Tokens<'a> { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 86 | Illegal(char), [INFO] [stdout] 87 | Ident(&'a Type), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 88 | Command(&'a Type), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 89 | ShortIdent(char), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 90 | Quote, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | fn default_run(_: &[String]) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 32 | fn default_run(_: &[String]) -> Result<(), Error<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lib.rs:75:72 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn add_subs(mut self, cmd: &'static mut Command) -> Result<(), Error> { [INFO] [stdout] | ------- the lifetime is named here ^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'static` [INFO] [stdout] | [INFO] [stdout] 75 | pub fn add_subs(mut self, cmd: &'static mut Command) -> Result<(), Error<'static>> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lib.rs:93:67 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn add_flag(mut self, f: &'static mut Flag) -> Result<(), Error> { [INFO] [stdout] | ------- ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'static` [INFO] [stdout] | [INFO] [stdout] 93 | pub fn add_flag(mut self, f: &'static mut Flag) -> Result<(), Error<'static>> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ShortIdent` should have an upper case name [INFO] [stdout] --> src/tokens/mod.rs:103:11 [INFO] [stdout] | [INFO] [stdout] 103 | pub const ShortIdent: &Type = "ShortIdent"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 103 - pub const ShortIdent: &Type = "ShortIdent"; [INFO] [stdout] 103 + pub const SHORT_IDENT: &Type = "ShortIdent"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "2b2eb8b2ce3a408b2bcc3b1dfe4561d6ca6aab4af8109f9665f5bfbe4e421277", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b2eb8b2ce3a408b2bcc3b1dfe4561d6ca6aab4af8109f9665f5bfbe4e421277", kill_on_drop: false }` [INFO] [stdout] 2b2eb8b2ce3a408b2bcc3b1dfe4561d6ca6aab4af8109f9665f5bfbe4e421277