[INFO] cloning repository https://github.com/stephenglynch/RustyBox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stephenglynch/RustyBox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstephenglynch%2FRustyBox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstephenglynch%2FRustyBox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 189234751e08a2223ca1d0145593c5839a13e276 [INFO] checking stephenglynch/RustyBox against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstephenglynch%2FRustyBox" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/stephenglynch/RustyBox [INFO] finished tweaking git repo https://github.com/stephenglynch/RustyBox [INFO] tweaked toml for git repo https://github.com/stephenglynch/RustyBox written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/stephenglynch/RustyBox on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/stephenglynch/RustyBox 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded stderrlog v0.5.4 [INFO] [stderr] Downloaded predicates v3.0.3 [INFO] [stderr] Downloaded assert_cmd v2.0.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0fade67678856e4adeabe3b0cbcacf73373a0fcf85679f220a36845d0a3f3178 [INFO] running `Command { std: "docker" "start" "-a" "0fade67678856e4adeabe3b0cbcacf73373a0fcf85679f220a36845d0a3f3178", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0fade67678856e4adeabe3b0cbcacf73373a0fcf85679f220a36845d0a3f3178", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0fade67678856e4adeabe3b0cbcacf73373a0fcf85679f220a36845d0a3f3178", kill_on_drop: false }` [INFO] [stdout] 0fade67678856e4adeabe3b0cbcacf73373a0fcf85679f220a36845d0a3f3178 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a8930f1a92218458aa4ec8d49fc1a3c8246b4ba2359ba9cf554193a43d397fc [INFO] running `Command { std: "docker" "start" "-a" "7a8930f1a92218458aa4ec8d49fc1a3c8246b4ba2359ba9cf554193a43d397fc", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.142 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking once_cell v1.17.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking iana-time-zone v0.1.56 [INFO] [stderr] Checking predicates-core v1.0.6 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking anstyle v1.0.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking pico-args v0.5.0 [INFO] [stderr] Checking predicates-tree v1.0.9 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking bstr v1.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking nix v0.26.2 [INFO] [stderr] Checking predicates v3.0.3 [INFO] [stderr] Checking assert_cmd v2.0.11 [INFO] [stderr] Checking chrono v0.4.24 [INFO] [stderr] Checking stderrlog v0.5.4 [INFO] [stderr] Checking rustybox v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:41:75 [INFO] [stdout] | [INFO] [stdout] 41 | static COMMANDS: &[(&str, fn(&str, Vec) -> Result>)] = &[ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 - static COMMANDS: &[(&str, fn(&str, Vec) -> Result>)] = &[ [INFO] [stdout] 41 + static COMMANDS: &[(&str, fn(&str, Vec) -> Result>)] = &[ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> tests/test_sh.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | drop(child_stdin); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut ChildStdin` [INFO] [stdout] ... [INFO] [stdout] 31 | check_output!(sh_echo1, "echo", "fooword", "fooword\n"); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] = note: this warning originates in the macro `check_output` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 20 - drop(child_stdin); [INFO] [stdout] 20 + let _ = child_stdin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> tests/test_sh.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | drop(child_stdin); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut ChildStdin` [INFO] [stdout] ... [INFO] [stdout] 33 | check_output!(sh_echo2, "echo", "foo word", "foo word\n"); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `check_output` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 20 - drop(child_stdin); [INFO] [stdout] 20 + let _ = child_stdin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:41:75 [INFO] [stdout] | [INFO] [stdout] 41 | static COMMANDS: &[(&str, fn(&str, Vec) -> Result>)] = &[ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 - static COMMANDS: &[(&str, fn(&str, Vec) -> Result>)] = &[ [INFO] [stdout] 41 + static COMMANDS: &[(&str, fn(&str, Vec) -> Result>)] = &[ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expandable` is never used [INFO] [stdout] --> src/utils/sh/expansions.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Expandable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `expand` is never used [INFO] [stdout] --> src/utils/sh/expansions.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Expandable { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 19 | fn expand(self, ev: ExecEnv) -> Option> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expandable` is never used [INFO] [stdout] --> src/utils/sh/expansions.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn expandable<'a>(input: &'a [u8]) -> RbResult<&'a [u8], Expandable> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `text` is never used [INFO] [stdout] --> src/utils/sh/expansions.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn text<'a>(input: &'a [u8]) -> RbResult<&'a [u8], Expandable> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variable` is never used [INFO] [stdout] --> src/utils/sh/expansions.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn variable<'a>(input: &'a [u8]) -> RbResult<&'a [u8], Expandable> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/sh/parser.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | fn new_word(s: &[u8]) -> TokenType { [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] 26 | fn new_word(s: &[u8]) -> TokenType<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/sh/ast_nodes.rs:133:21 [INFO] [stdout] | [INFO] [stdout] 133 | fn command_name(&self) -> Option<&Word> { [INFO] [stdout] | ^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 133 | fn command_name(&self) -> Option<&Word<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/sh/ast_nodes.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | fn args(&self) -> Iter<'a, Word> { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 141 | fn args(&self) -> Iter<'a, Word<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expandable` is never used [INFO] [stdout] --> src/utils/sh/expansions.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Expandable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `expand` is never used [INFO] [stdout] --> src/utils/sh/expansions.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Expandable { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 19 | fn expand(self, ev: ExecEnv) -> Option> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expandable` is never used [INFO] [stdout] --> src/utils/sh/expansions.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn expandable<'a>(input: &'a [u8]) -> RbResult<&'a [u8], Expandable> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `text` is never used [INFO] [stdout] --> src/utils/sh/expansions.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn text<'a>(input: &'a [u8]) -> RbResult<&'a [u8], Expandable> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variable` is never used [INFO] [stdout] --> src/utils/sh/expansions.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn variable<'a>(input: &'a [u8]) -> RbResult<&'a [u8], Expandable> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/sh/parser.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | fn new_word(s: &[u8]) -> TokenType { [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] 26 | fn new_word(s: &[u8]) -> TokenType<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/sh/ast_nodes.rs:133:21 [INFO] [stdout] | [INFO] [stdout] 133 | fn command_name(&self) -> Option<&Word> { [INFO] [stdout] | ^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 133 | fn command_name(&self) -> Option<&Word<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/sh/ast_nodes.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | fn args(&self) -> Iter<'a, Word> { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 141 | fn args(&self) -> Iter<'a, Word<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.59s [INFO] running `Command { std: "docker" "inspect" "7a8930f1a92218458aa4ec8d49fc1a3c8246b4ba2359ba9cf554193a43d397fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a8930f1a92218458aa4ec8d49fc1a3c8246b4ba2359ba9cf554193a43d397fc", kill_on_drop: false }` [INFO] [stdout] 7a8930f1a92218458aa4ec8d49fc1a3c8246b4ba2359ba9cf554193a43d397fc