[INFO] cloning repository https://github.com/theatlasroom/rust-learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/theatlasroom/rust-learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftheatlasroom%2Frust-learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftheatlasroom%2Frust-learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7d4a390a3ace3085dbcc821e2fb7899f7a668a1c [INFO] checking theatlasroom/rust-learning against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftheatlasroom%2Frust-learning" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/theatlasroom/rust-learning on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/theatlasroom/rust-learning [INFO] finished tweaking git repo https://github.com/theatlasroom/rust-learning [INFO] tweaked toml for git repo https://github.com/theatlasroom/rust-learning written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/theatlasroom/rust-learning already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f4440e1889b7205d469a3bb2fc838b5f12d941412c51ec23d29049e9a79bf0a7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f4440e1889b7205d469a3bb2fc838b5f12d941412c51ec23d29049e9a79bf0a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f4440e1889b7205d469a3bb2fc838b5f12d941412c51ec23d29049e9a79bf0a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4440e1889b7205d469a3bb2fc838b5f12d941412c51ec23d29049e9a79bf0a7", kill_on_drop: false }` [INFO] [stdout] f4440e1889b7205d469a3bb2fc838b5f12d941412c51ec23d29049e9a79bf0a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0bb559f68966ddcaf10612465e0f3907f71c1c95b7729028e462df4132c2759e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0bb559f68966ddcaf10612465e0f3907f71c1c95b7729028e462df4132c2759e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0601]: `main` function not found in crate `text_in_input` [INFO] [stdout] | [INFO] [stdout] = note: consider adding a `main` function to `src/bin/text_in_input.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] error[E0530]: match bindings cannot shadow tuple variants [INFO] [stdout] --> src/bin/file_io.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Err => println!("Error\n{:?}", handle), [INFO] [stdout] | ^^^ cannot be named the same as a tuple variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0530]: match bindings cannot shadow tuple variants [INFO] [stdout] --> src/bin/file_io.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Err => println!("Error\n{:?}", handle), [INFO] [stdout] | ^^^ cannot be named the same as a tuple variant [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `learning` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find value `handle` in this scope [INFO] [stdout] --> src/bin/file_io.rs:28:40 [INFO] [stdout] | [INFO] [stdout] 28 | Err => println!("Error\n{:?}", handle), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `handle` in this scope [INFO] [stdout] --> src/bin/file_io.rs:28:40 [INFO] [stdout] | [INFO] [stdout] 28 | Err => println!("Error\n{:?}", handle), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `divide` [INFO] [stdout] --> src/bin/matrix_math.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn divide(&self, scalar: f64) -> Matrix2d { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply` [INFO] [stdout] --> src/bin/matrix_math.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn multiply(&self, scalar: f64) -> Matrix2d { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `scalar_multiply` [INFO] [stdout] --> src/bin/matrix_math.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn scalar_multiply(&self) -> f64 { unimplemented!() } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `determinant` [INFO] [stdout] --> src/bin/matrix_math.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn determinant(&self) -> f64 { unimplemented!() } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dice_roll` is never read [INFO] [stdout] --> src/bin/dice_roll.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let mut dice_roll = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/file_io.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut handle = match fs::File::open(f){ [INFO] [stdout] | ----------------- this expression has type `std::result::Result` [INFO] [stdout] 27 | Some(handle) => println!("File\n{:?}", handle), [INFO] [stdout] | ^^^^^^^^^^^^ expected enum `std::result::Result`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0530. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/file_io.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut handle = match fs::File::open(f){ [INFO] [stdout] | ----------------- this expression has type `std::result::Result` [INFO] [stdout] 27 | Some(handle) => println!("File\n{:?}", handle), [INFO] [stdout] | ^^^^^^^^^^^^ expected enum `std::result::Result`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0530. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "0bb559f68966ddcaf10612465e0f3907f71c1c95b7729028e462df4132c2759e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bb559f68966ddcaf10612465e0f3907f71c1c95b7729028e462df4132c2759e", kill_on_drop: false }` [INFO] [stdout] 0bb559f68966ddcaf10612465e0f3907f71c1c95b7729028e462df4132c2759e