[INFO] cloning repository https://github.com/abesto/toy-rust-shell [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/abesto/toy-rust-shell" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabesto%2Ftoy-rust-shell", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabesto%2Ftoy-rust-shell'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 27bf5f1708ba8e0f3d03b9442c69a7f4224660bf [INFO] testing abesto/toy-rust-shell against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabesto%2Ftoy-rust-shell" "/workspace/builds/worker-112/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-112/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/abesto/toy-rust-shell on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/abesto/toy-rust-shell [INFO] finished tweaking git repo https://github.com/abesto/toy-rust-shell [INFO] tweaked toml for git repo https://github.com/abesto/toy-rust-shell written to /workspace/builds/worker-112/source/Cargo.toml [INFO] crate git repo https://github.com/abesto/toy-rust-shell already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "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-112/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de22f057bb830239032828dafdd39753f31c01c6bba25fb1f5b65ee6ff4d6948 [INFO] running `Command { std: "docker" "start" "-a" "de22f057bb830239032828dafdd39753f31c01c6bba25fb1f5b65ee6ff4d6948", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de22f057bb830239032828dafdd39753f31c01c6bba25fb1f5b65ee6ff4d6948", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de22f057bb830239032828dafdd39753f31c01c6bba25fb1f5b65ee6ff4d6948", kill_on_drop: false }` [INFO] [stdout] de22f057bb830239032828dafdd39753f31c01c6bba25fb1f5b65ee6ff4d6948 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 341c8487e751ac1a4304e79e58a402fdef61b065fa01029670f37136026785f5 [INFO] running `Command { std: "docker" "start" "-a" "341c8487e751ac1a4304e79e58a402fdef61b065fa01029670f37136026785f5", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling libc v0.2.47 [INFO] [stderr] Compiling typenum v1.10.0 [INFO] [stderr] Compiling nix v0.13.0 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling termion v1.5.1 [INFO] [stderr] Compiling im v12.2.0 [INFO] [stderr] Compiling toy-rust-shell v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Stdout` [INFO] [stdout] --> src/main.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{stdin, Stdout}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/main.rs:122:38 [INFO] [stdout] | [INFO] [stdout] 122 | CompleteCommand::WithSep(l, op) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/main.rs:122:41 [INFO] [stdout] | [INFO] [stdout] 122 | CompleteCommand::WithSep(l, op) => {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_exit_code` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | last_exit_code: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `quote` [INFO] [stdout] --> src/main.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn quote(string: &String) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `set` [INFO] [stdout] --> src/main.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn set(state: &State) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `input` [INFO] [stdout] --> src/parser.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | input: &'a Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `And` [INFO] [stdout] --> src/parser.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 559 | And(&'a AndOr<'a>, Pipeline), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AndOr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:556:14 [INFO] [stdout] | [INFO] [stdout] 556 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Or` [INFO] [stdout] --> src/parser.rs:560:9 [INFO] [stdout] | [INFO] [stdout] 560 | Or(&'a AndOr<'a>, Pipeline), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AndOr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:556:14 [INFO] [stdout] | [INFO] [stdout] 556 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CompoundCommand` [INFO] [stdout] --> src/parser.rs:574:9 [INFO] [stdout] | [INFO] [stdout] 574 | CompoundCommand(CompoundCommandData), [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] --> src/parser.rs:571:14 [INFO] [stdout] | [INFO] [stdout] 571 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CompoundCommandWithRedirects` [INFO] [stdout] --> src/parser.rs:575:9 [INFO] [stdout] | [INFO] [stdout] 575 | CompoundCommandWithRedirects(CompoundCommandWithRedirectsData), [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] --> src/parser.rs:571:14 [INFO] [stdout] | [INFO] [stdout] 571 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FunctionDefinition` [INFO] [stdout] --> src/parser.rs:576:9 [INFO] [stdout] | [INFO] [stdout] 576 | FunctionDefinition(FunctionDefinitionData), [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] --> src/parser.rs:571:14 [INFO] [stdout] | [INFO] [stdout] 571 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PrefixWordSuffix` [INFO] [stdout] --> src/parser.rs:581:9 [INFO] [stdout] | [INFO] [stdout] 581 | PrefixWordSuffix(CmdPrefix, CmdWord, CmdSuffix), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SimpleCommandData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:579:14 [INFO] [stdout] | [INFO] [stdout] 579 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PrefixWord` [INFO] [stdout] --> src/parser.rs:582:9 [INFO] [stdout] | [INFO] [stdout] 582 | PrefixWord(CmdPrefix, CmdWord), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SimpleCommandData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:579:14 [INFO] [stdout] | [INFO] [stdout] 579 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Prefix` [INFO] [stdout] --> src/parser.rs:583:9 [INFO] [stdout] | [INFO] [stdout] 583 | Prefix(CmdPrefix), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SimpleCommandData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:579:14 [INFO] [stdout] | [INFO] [stdout] 579 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | / std::env::set_current_dir(std::path::Path::new( [INFO] [stdout] 175 | | &std::env::var("HOME").unwrap_or("/".to_string()) [INFO] [stdout] 176 | | )); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | / std::env::set_current_dir(std::path::Path::new( [INFO] [stdout] 181 | | dir [INFO] [stdout] 182 | | )); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.59s [INFO] running `Command { std: "docker" "inspect" "341c8487e751ac1a4304e79e58a402fdef61b065fa01029670f37136026785f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "341c8487e751ac1a4304e79e58a402fdef61b065fa01029670f37136026785f5", kill_on_drop: false }` [INFO] [stdout] 341c8487e751ac1a4304e79e58a402fdef61b065fa01029670f37136026785f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a0c6765e16831f9a0cfc6a3d82f2e58badcd6f9dad3b6d12245bfc1564a61af [INFO] running `Command { std: "docker" "start" "-a" "4a0c6765e16831f9a0cfc6a3d82f2e58badcd6f9dad3b6d12245bfc1564a61af", kill_on_drop: false }` [INFO] [stderr] Compiling toy-rust-shell v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Stdout` [INFO] [stdout] --> src/main.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{stdin, Stdout}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/main.rs:122:38 [INFO] [stdout] | [INFO] [stdout] 122 | CompleteCommand::WithSep(l, op) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/main.rs:122:41 [INFO] [stdout] | [INFO] [stdout] 122 | CompleteCommand::WithSep(l, op) => {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_exit_code` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | last_exit_code: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `quote` [INFO] [stdout] --> src/main.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn quote(string: &String) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `set` [INFO] [stdout] --> src/main.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn set(state: &State) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `input` [INFO] [stdout] --> src/parser.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | input: &'a Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `And` [INFO] [stdout] --> src/parser.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 559 | And(&'a AndOr<'a>, Pipeline), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AndOr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:556:14 [INFO] [stdout] | [INFO] [stdout] 556 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Or` [INFO] [stdout] --> src/parser.rs:560:9 [INFO] [stdout] | [INFO] [stdout] 560 | Or(&'a AndOr<'a>, Pipeline), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AndOr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:556:14 [INFO] [stdout] | [INFO] [stdout] 556 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CompoundCommand` [INFO] [stdout] --> src/parser.rs:574:9 [INFO] [stdout] | [INFO] [stdout] 574 | CompoundCommand(CompoundCommandData), [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] --> src/parser.rs:571:14 [INFO] [stdout] | [INFO] [stdout] 571 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CompoundCommandWithRedirects` [INFO] [stdout] --> src/parser.rs:575:9 [INFO] [stdout] | [INFO] [stdout] 575 | CompoundCommandWithRedirects(CompoundCommandWithRedirectsData), [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] --> src/parser.rs:571:14 [INFO] [stdout] | [INFO] [stdout] 571 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FunctionDefinition` [INFO] [stdout] --> src/parser.rs:576:9 [INFO] [stdout] | [INFO] [stdout] 576 | FunctionDefinition(FunctionDefinitionData), [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] --> src/parser.rs:571:14 [INFO] [stdout] | [INFO] [stdout] 571 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PrefixWordSuffix` [INFO] [stdout] --> src/parser.rs:581:9 [INFO] [stdout] | [INFO] [stdout] 581 | PrefixWordSuffix(CmdPrefix, CmdWord, CmdSuffix), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SimpleCommandData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:579:14 [INFO] [stdout] | [INFO] [stdout] 579 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PrefixWord` [INFO] [stdout] --> src/parser.rs:582:9 [INFO] [stdout] | [INFO] [stdout] 582 | PrefixWord(CmdPrefix, CmdWord), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SimpleCommandData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:579:14 [INFO] [stdout] | [INFO] [stdout] 579 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Prefix` [INFO] [stdout] --> src/parser.rs:583:9 [INFO] [stdout] | [INFO] [stdout] 583 | Prefix(CmdPrefix), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SimpleCommandData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:579:14 [INFO] [stdout] | [INFO] [stdout] 579 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | / std::env::set_current_dir(std::path::Path::new( [INFO] [stdout] 175 | | &std::env::var("HOME").unwrap_or("/".to_string()) [INFO] [stdout] 176 | | )); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | / std::env::set_current_dir(std::path::Path::new( [INFO] [stdout] 181 | | dir [INFO] [stdout] 182 | | )); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.83s [INFO] running `Command { std: "docker" "inspect" "4a0c6765e16831f9a0cfc6a3d82f2e58badcd6f9dad3b6d12245bfc1564a61af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a0c6765e16831f9a0cfc6a3d82f2e58badcd6f9dad3b6d12245bfc1564a61af", kill_on_drop: false }` [INFO] [stdout] 4a0c6765e16831f9a0cfc6a3d82f2e58badcd6f9dad3b6d12245bfc1564a61af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f488906418bc64565f30b88bd6e3348e9b1885dea90ba118fe5c1f64ec635790 [INFO] running `Command { std: "docker" "start" "-a" "f488906418bc64565f30b88bd6e3348e9b1885dea90ba118fe5c1f64ec635790", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `Stdout` [INFO] [stderr] --> src/main.rs:6:22 [INFO] [stderr] | [INFO] [stderr] 6 | use std::io::{stdin, Stdout}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `l` [INFO] [stderr] --> src/main.rs:122:38 [INFO] [stderr] | [INFO] [stderr] 122 | CompleteCommand::WithSep(l, op) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `op` [INFO] [stderr] --> src/main.rs:122:41 [INFO] [stderr] | [INFO] [stderr] 122 | CompleteCommand::WithSep(l, op) => {} [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stderr] [INFO] [stderr] warning: field is never read: `last_exit_code` [INFO] [stderr] --> src/main.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | last_exit_code: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `quote` [INFO] [stderr] --> src/main.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn quote(string: &String) -> String { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `set` [INFO] [stderr] --> src/main.rs:96:12 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn set(state: &State) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `input` [INFO] [stderr] --> src/parser.rs:251:9 [INFO] [stderr] | [INFO] [stderr] 251 | input: &'a Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `And` [INFO] [stderr] --> src/parser.rs:559:9 [INFO] [stderr] | [INFO] [stderr] 559 | And(&'a AndOr<'a>, Pipeline), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `AndOr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:556:14 [INFO] [stderr] | [INFO] [stderr] 556 | #[derive(Debug, Eq, PartialEq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Or` [INFO] [stderr] --> src/parser.rs:560:9 [INFO] [stderr] | [INFO] [stderr] 560 | Or(&'a AndOr<'a>, Pipeline), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `AndOr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:556:14 [INFO] [stderr] | [INFO] [stderr] 556 | #[derive(Debug, Eq, PartialEq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `CompoundCommand` [INFO] [stderr] --> src/parser.rs:574:9 [INFO] [stderr] | [INFO] [stderr] 574 | CompoundCommand(CompoundCommandData), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:571:14 [INFO] [stderr] | [INFO] [stderr] 571 | #[derive(Debug, Eq, PartialEq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `CompoundCommandWithRedirects` [INFO] [stderr] --> src/parser.rs:575:9 [INFO] [stderr] | [INFO] [stderr] 575 | CompoundCommandWithRedirects(CompoundCommandWithRedirectsData), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:571:14 [INFO] [stderr] | [INFO] [stderr] 571 | #[derive(Debug, Eq, PartialEq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `FunctionDefinition` [INFO] [stderr] --> src/parser.rs:576:9 [INFO] [stderr] | [INFO] [stderr] 576 | FunctionDefinition(FunctionDefinitionData), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:571:14 [INFO] [stderr] | [INFO] [stderr] 571 | #[derive(Debug, Eq, PartialEq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PrefixWordSuffix` [INFO] [stderr] --> src/parser.rs:581:9 [INFO] [stderr] | [INFO] [stderr] 581 | PrefixWordSuffix(CmdPrefix, CmdWord, CmdSuffix), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SimpleCommandData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:579:14 [INFO] [stderr] | [INFO] [stderr] 579 | #[derive(Debug, Eq, PartialEq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PrefixWord` [INFO] [stderr] --> src/parser.rs:582:9 [INFO] [stderr] | [INFO] [stderr] 582 | PrefixWord(CmdPrefix, CmdWord), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SimpleCommandData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:579:14 [INFO] [stderr] | [INFO] [stderr] 579 | #[derive(Debug, Eq, PartialEq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Prefix` [INFO] [stderr] --> src/parser.rs:583:9 [INFO] [stderr] | [INFO] [stderr] 583 | Prefix(CmdPrefix), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SimpleCommandData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:579:14 [INFO] [stderr] | [INFO] [stderr] 579 | #[derive(Debug, Eq, PartialEq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:174:9 [INFO] [stderr] | [INFO] [stderr] 174 | / std::env::set_current_dir(std::path::Path::new( [INFO] [stderr] 175 | | &std::env::var("HOME").unwrap_or("/".to_string()) [INFO] [stderr] 176 | | )); [INFO] [stderr] | |___________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:180:9 [INFO] [stderr] | [INFO] [stderr] 180 | / std::env::set_current_dir(std::path::Path::new( [INFO] [stderr] 181 | | dir [INFO] [stderr] 182 | | )); [INFO] [stderr] | |___________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `toy-rust-shell` (bin "toy-rust-shell" test) generated 17 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/toy_rust_shell-4d11a2cb47594d16) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test parser::grammar::tests::empty_input ... ok [INFO] [stdout] test parser::grammar::tests::ls ... ok [INFO] [stdout] test parser::grammar::tests::separators ... ok [INFO] [stdout] test parser::grammar::tests::ls_l ... ok [INFO] [stdout] test parser::lexer::tests::lex_word ... ok [INFO] [stdout] test parser::lexer::tests::single_char_op ... ok [INFO] [stdout] test parser::split_words::tests::tokenize_comment ... ok [INFO] [stdout] test parser::lexer::tests::true_and_false ... ok [INFO] [stdout] test parser::split_words::tests::tokenize_empty_string ... ok [INFO] [stdout] test parser::split_words::tests::tokenize_multiple_words ... ok [INFO] [stdout] test parser::split_words::tests::tokenize_operator_in_word ... ok [INFO] [stdout] test parser::split_words::tests::tokenize_single_word ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f488906418bc64565f30b88bd6e3348e9b1885dea90ba118fe5c1f64ec635790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f488906418bc64565f30b88bd6e3348e9b1885dea90ba118fe5c1f64ec635790", kill_on_drop: false }` [INFO] [stdout] f488906418bc64565f30b88bd6e3348e9b1885dea90ba118fe5c1f64ec635790