[INFO] cloning repository https://github.com/cis198-2016s/hw04 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cis198-2016s/hw04" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcis198-2016s%2Fhw04", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcis198-2016s%2Fhw04'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8d4ff5d6004215e2b89b4a807bb4306766ec36e7 [INFO] checking cis198-2016s/hw04/8d4ff5d6004215e2b89b4a807bb4306766ec36e7 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcis198-2016s%2Fhw04" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cis198-2016s/hw04 on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cis198-2016s/hw04 [INFO] finished tweaking git repo https://github.com/cis198-2016s/hw04 [INFO] tweaked toml for git repo https://github.com/cis198-2016s/hw04 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cis198-2016s/hw04 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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f1b7d313717a0797f81faafbba0e824b6ff91ef4803fb362f0594fbda8b82d5e [INFO] running `Command { std: "docker" "start" "-a" "f1b7d313717a0797f81faafbba0e824b6ff91ef4803fb362f0594fbda8b82d5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f1b7d313717a0797f81faafbba0e824b6ff91ef4803fb362f0594fbda8b82d5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1b7d313717a0797f81faafbba0e824b6ff91ef4803fb362f0594fbda8b82d5e", kill_on_drop: false }` [INFO] [stdout] f1b7d313717a0797f81faafbba0e824b6ff91ef4803fb362f0594fbda8b82d5e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 019481a0f813665febea3fb671aace5dac0d8672b413a02685b3c61149649f74 [INFO] running `Command { std: "docker" "start" "-a" "019481a0f813665febea3fb671aace5dac0d8672b413a02685b3c61149649f74", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking hw04 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `rpn::Stack` [INFO] [stdout] --> src/parser.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use rpn::{self, Stack}; [INFO] [stdout] | ^^^^^ no `Stack` in `rpn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rpn::Stack` [INFO] [stdout] --> src/parser.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use rpn::{self, Stack}; [INFO] [stdout] | ^^^^^ no `Stack` in `rpn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rpn::Stack` [INFO] [stdout] --> src/parser.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | use rpn::{Stack, Error, Elt}; [INFO] [stdout] | ^^^^^ no `Stack` in `rpn` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this unresolved item through its public re-export instead: [INFO] [stdout] parser::Stack [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Result` in module `rpn` [INFO] [stdout] --> src/parser.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn read_eval_print_loop() -> rpn::Result<()> { [INFO] [stdout] | ^^^^^^ not found in `rpn` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Result; [INFO] [stdout] | [INFO] [stdout] 1 + use std::result::Result; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Result; [INFO] [stdout] | [INFO] [stdout] 1 + use parser::io::Result; [INFO] [stdout] | [INFO] [stdout] help: if you import `Result`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 6 - pub fn read_eval_print_loop() -> rpn::Result<()> { [INFO] [stdout] 6 + pub fn read_eval_print_loop() -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Result` in module `rpn` [INFO] [stdout] --> src/parser.rs:21:59 [INFO] [stdout] | [INFO] [stdout] 21 | fn evaluate_line(stack: &mut Stack, buf: &String) -> rpn::Result<()> { [INFO] [stdout] | ^^^^^^ not found in `rpn` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Result; [INFO] [stdout] | [INFO] [stdout] 1 + use std::result::Result; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Result; [INFO] [stdout] | [INFO] [stdout] 1 + use parser::io::Result; [INFO] [stdout] | [INFO] [stdout] help: if you import `Result`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 21 - fn evaluate_line(stack: &mut Stack, buf: &String) -> rpn::Result<()> { [INFO] [stdout] 21 + fn evaluate_line(stack: &mut Stack, buf: &String) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/rpn.rs:47:6 [INFO] [stdout] | [INFO] [stdout] 47 | impl Stack { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/rpn.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new() -> Stack { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/rpn.rs:54:41 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn push(&mut self, val: Elt) -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 54 | pub fn push(&mut self, val: Elt) -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/rpn.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn pop(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 59 | pub fn pop(&mut self) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/rpn.rs:64:39 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn eval(&mut self, op: Op) -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 64 | pub fn eval(&mut self, op: Op) -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Result` in module `rpn` [INFO] [stdout] --> src/parser.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn read_eval_print_loop() -> rpn::Result<()> { [INFO] [stdout] | ^^^^^^ not found in `rpn` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Result; [INFO] [stdout] | [INFO] [stdout] 1 + use std::prelude::rust_2024::Result; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Result; [INFO] [stdout] | [INFO] [stdout] help: if you import `Result`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 6 - pub fn read_eval_print_loop() -> rpn::Result<()> { [INFO] [stdout] 6 + pub fn read_eval_print_loop() -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Result` in module `rpn` [INFO] [stdout] --> src/parser.rs:21:59 [INFO] [stdout] | [INFO] [stdout] 21 | fn evaluate_line(stack: &mut Stack, buf: &String) -> rpn::Result<()> { [INFO] [stdout] | ^^^^^^ not found in `rpn` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Result; [INFO] [stdout] | [INFO] [stdout] 1 + use std::prelude::rust_2024::Result; [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread::Result; [INFO] [stdout] | [INFO] [stdout] help: if you import `Result`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 21 - fn evaluate_line(stack: &mut Stack, buf: &String) -> rpn::Result<()> { [INFO] [stdout] 21 + fn evaluate_line(stack: &mut Stack, buf: &String) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/rpn.rs:47:6 [INFO] [stdout] | [INFO] [stdout] 47 | impl Stack { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/rpn.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new() -> Stack { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hw04` (bin "hw04") due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/rpn.rs:54:41 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn push(&mut self, val: Elt) -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 54 | pub fn push(&mut self, val: Elt) -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/rpn.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn pop(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 59 | pub fn pop(&mut self) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/rpn.rs:64:39 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn eval(&mut self, op: Op) -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 64 | pub fn eval(&mut self, op: Op) -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:139:21 [INFO] [stdout] | [INFO] [stdout] 139 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 150 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:158:21 [INFO] [stdout] | [INFO] [stdout] 158 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:166:21 [INFO] [stdout] | [INFO] [stdout] 166 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:191:21 [INFO] [stdout] | [INFO] [stdout] 191 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:204:21 [INFO] [stdout] | [INFO] [stdout] 204 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/rpn.rs:214:21 [INFO] [stdout] | [INFO] [stdout] 214 | let mut s = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hw04` (bin "hw04" test) due to 23 previous errors [INFO] running `Command { std: "docker" "inspect" "019481a0f813665febea3fb671aace5dac0d8672b413a02685b3c61149649f74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "019481a0f813665febea3fb671aace5dac0d8672b413a02685b3c61149649f74", kill_on_drop: false }` [INFO] [stdout] 019481a0f813665febea3fb671aace5dac0d8672b413a02685b3c61149649f74