[INFO] cloning repository https://github.com/mbandazian/cs4414-ps2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mbandazian/cs4414-ps2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmbandazian%2Fcs4414-ps2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmbandazian%2Fcs4414-ps2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6e7792473489e395fa257998349536a78425dbe5 [INFO] checking mbandazian/cs4414-ps2 against master#d49be02cf6d2e2a01264fcdef1e20c826710c0f5 for pr-133570-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmbandazian%2Fcs4414-ps2" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mbandazian/cs4414-ps2 on toolchain d49be02cf6d2e2a01264fcdef1e20c826710c0f5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mbandazian/cs4414-ps2 [INFO] finished tweaking git repo https://github.com/mbandazian/cs4414-ps2 [INFO] tweaked toml for git repo https://github.com/mbandazian/cs4414-ps2 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mbandazian/cs4414-ps2 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" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 550f98958714060c4fa63787c7ae154a43ee5a16cfe202d5ce2996601db94771 [INFO] running `Command { std: "docker" "start" "-a" "550f98958714060c4fa63787c7ae154a43ee5a16cfe202d5ce2996601db94771", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "550f98958714060c4fa63787c7ae154a43ee5a16cfe202d5ce2996601db94771", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "550f98958714060c4fa63787c7ae154a43ee5a16cfe202d5ce2996601db94771", kill_on_drop: false }` [INFO] [stdout] 550f98958714060c4fa63787c7ae154a43ee5a16cfe202d5ce2996601db94771 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab8676394e462b7b03abd882bb1aa6235c07c5d9f65e9b170bab8ed8df5d5980 [INFO] running `Command { std: "docker" "start" "-a" "ab8676394e462b7b03abd882bb1aa6235c07c5d9f65e9b170bab8ed8df5d5980", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking ps2 v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `getopts::optopt`, `getopts::getopts` [INFO] [stdout] --> src/main.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use getopts::{optopt, getopts}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ no `getopts` in the root [INFO] [stdout] | | [INFO] [stdout] | no `optopt` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `getopts::optopt`, `getopts::getopts` [INFO] [stdout] --> src/main.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use getopts::{optopt, getopts}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ no `getopts` in the root [INFO] [stdout] | | [INFO] [stdout] | no `optopt` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::Command` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `Command` in `io` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 16 | use std::process::Command; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `print` in `io::stdio` [INFO] [stdout] --> src/main.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | io::stdio::print(self.cmd_prompt.as_slice()); [INFO] [stdout] | ^^^^^ not found in `io::stdio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `flush` in `io::stdio` [INFO] [stdout] --> src/main.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | io::stdio::flush(); [INFO] [stdout] | ^^^^^ not found in `io::stdio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `print` in `io::stdio` [INFO] [stdout] --> src/main.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | io::stdio::print(str::from_utf8(Command::new(program).args(argv).output().unwrap().output.as_slice()).unwrap()); [INFO] [stdout] | ^^^^^ not found in `io::stdio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `os` [INFO] [stdout] --> src/main.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | let args = os::args(); [INFO] [stdout] | ^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 14 + use std::env::args; [INFO] [stdout] | [INFO] [stdout] help: if you import `args`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 79 - let args = os::args(); [INFO] [stdout] 79 + let args = args(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `optopt` in crate `getopts` [INFO] [stdout] --> src/main.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | getopts::optopt("c", "", "", "") [INFO] [stdout] | ^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `getopts` in crate `getopts` [INFO] [stdout] --> src/main.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | getopts::getopts(args.tail(), opts).unwrap().opt_str("c") [INFO] [stdout] | ^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::Command` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `Command` in `io` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 16 | use std::process::Command; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `stdio` is private [INFO] [stdout] --> src/main.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | io::stdio::print(self.cmd_prompt.as_slice()); [INFO] [stdout] | ^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `stdio` is defined here [INFO] [stdout] --> /rustc/d49be02cf6d2e2a01264fcdef1e20c826710c0f5/library/std/src/io/mod.rs:341:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `stdio` is private [INFO] [stdout] --> src/main.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | io::stdio::flush(); [INFO] [stdout] | ^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `stdio` is defined here [INFO] [stdout] --> /rustc/d49be02cf6d2e2a01264fcdef1e20c826710c0f5/library/std/src/io/mod.rs:341:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `print` in `io::stdio` [INFO] [stdout] --> src/main.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | io::stdio::print(self.cmd_prompt.as_slice()); [INFO] [stdout] | ^^^^^ not found in `io::stdio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `flush` in `io::stdio` [INFO] [stdout] --> src/main.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | io::stdio::flush(); [INFO] [stdout] | ^^^^^ not found in `io::stdio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `print` in `io::stdio` [INFO] [stdout] --> src/main.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | io::stdio::print(str::from_utf8(Command::new(program).args(argv).output().unwrap().output.as_slice()).unwrap()); [INFO] [stdout] | ^^^^^ not found in `io::stdio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `stdio` is private [INFO] [stdout] --> src/main.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | io::stdio::print(str::from_utf8(Command::new(program).args(argv).output().unwrap().output.as_slice()).unwrap()); [INFO] [stdout] | ^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `stdio` is defined here [INFO] [stdout] --> /rustc/d49be02cf6d2e2a01264fcdef1e20c826710c0f5/library/std/src/io/mod.rs:341:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `os` [INFO] [stdout] --> src/main.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | let args = os::args(); [INFO] [stdout] | ^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 14 + use std::env::args; [INFO] [stdout] | [INFO] [stdout] help: if you import `args`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 79 - let args = os::args(); [INFO] [stdout] 79 + let args = args(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/main.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | extern crate getopts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-12-02; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `optopt` in crate `getopts` [INFO] [stdout] --> src/main.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | getopts::optopt("c", "", "", "") [INFO] [stdout] | ^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `getopts` in crate `getopts` [INFO] [stdout] --> src/main.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | getopts::getopts(args.tail(), opts).unwrap().opt_str("c") [INFO] [stdout] | ^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `stdio` is private [INFO] [stdout] --> src/main.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | io::stdio::print(self.cmd_prompt.as_slice()); [INFO] [stdout] | ^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `stdio` is defined here [INFO] [stdout] --> /rustc/d49be02cf6d2e2a01264fcdef1e20c826710c0f5/library/std/src/io/mod.rs:341:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `stdio` is private [INFO] [stdout] --> src/main.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | io::stdio::flush(); [INFO] [stdout] | ^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `stdio` is defined here [INFO] [stdout] --> /rustc/d49be02cf6d2e2a01264fcdef1e20c826710c0f5/library/std/src/io/mod.rs:341:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `stdio` is private [INFO] [stdout] --> src/main.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | io::stdio::print(str::from_utf8(Command::new(program).args(argv).output().unwrap().output.as_slice()).unwrap()); [INFO] [stdout] | ^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `stdio` is defined here [INFO] [stdout] --> /rustc/d49be02cf6d2e2a01264fcdef1e20c826710c0f5/library/std/src/io/mod.rs:341:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&'a str` in the current scope [INFO] [stdout] --> src/main.rs:34:46 [INFO] [stdout] | [INFO] [stdout] 34 | io::stdio::print(self.cmd_prompt.as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `&'a str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/main.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | extern crate getopts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-12-02; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `tail` found for struct `Vec<&str>` in the current scope [INFO] [stdout] --> src/main.rs:59:58 [INFO] [stdout] | [INFO] [stdout] 59 | Some(&program) => self.run_cmd(program, argv.tail()), [INFO] [stdout] | ^^^^ method not found in `Vec<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&'a str` in the current scope [INFO] [stdout] --> src/main.rs:34:46 [INFO] [stdout] | [INFO] [stdout] 34 | io::stdio::print(self.cmd_prompt.as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `&'a str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:92:63 [INFO] [stdout] | [INFO] [stdout] 92 | Some(cmd_line) => Shell::new("").run_cmdline(cmd_line.as_slice()), [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0599, E0603, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ps2` (bin "ps2" test) due to 16 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `tail` found for struct `Vec<&str>` in the current scope [INFO] [stdout] --> src/main.rs:59:58 [INFO] [stdout] | [INFO] [stdout] 59 | Some(&program) => self.run_cmd(program, argv.tail()), [INFO] [stdout] | ^^^^ method not found in `Vec<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:92:63 [INFO] [stdout] | [INFO] [stdout] 92 | Some(cmd_line) => Shell::new("").run_cmdline(cmd_line.as_slice()), [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0599, E0603, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ps2` (bin "ps2") due to 16 previous errors [INFO] running `Command { std: "docker" "inspect" "ab8676394e462b7b03abd882bb1aa6235c07c5d9f65e9b170bab8ed8df5d5980", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab8676394e462b7b03abd882bb1aa6235c07c5d9f65e9b170bab8ed8df5d5980", kill_on_drop: false }` [INFO] [stdout] ab8676394e462b7b03abd882bb1aa6235c07c5d9f65e9b170bab8ed8df5d5980