[INFO] cloning repository https://github.com/aadarshx22/Rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aadarshx22/Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faadarshx22%2FRust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faadarshx22%2FRust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 12eb66f57b622bd8c94b961b75dd521e5952f957
[INFO] checking aadarshx22/Rust against e4d5758286bf2cf6f415802f2cf861747a7c6c8c for pr-152972
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faadarshx22%2FRust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/aadarshx22/Rust
[INFO] finished tweaking git repo https://github.com/aadarshx22/Rust
[INFO] tweaked toml for git repo https://github.com/aadarshx22/Rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/aadarshx22/Rust on toolchain e4d5758286bf2cf6f415802f2cf861747a7c6c8c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e4d5758286bf2cf6f415802f2cf861747a7c6c8c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/aadarshx22/Rust 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" "+e4d5758286bf2cf6f415802f2cf861747a7c6c8c" "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
[ERROR] error running command: no output for 300 seconds
[INFO] checking aadarshx22/Rust against e4d5758286bf2cf6f415802f2cf861747a7c6c8c for pr-152972
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faadarshx22%2FRust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/aadarshx22/Rust
[INFO] finished tweaking git repo https://github.com/aadarshx22/Rust
[INFO] tweaked toml for git repo https://github.com/aadarshx22/Rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/aadarshx22/Rust on toolchain e4d5758286bf2cf6f415802f2cf861747a7c6c8c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e4d5758286bf2cf6f415802f2cf861747a7c6c8c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/aadarshx22/Rust 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" "+e4d5758286bf2cf6f415802f2cf861747a7c6c8c" "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-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d2a683ec022c1693d9dbf8cefa6338233d71e06b8a25b3438580d43c2e71ebaf
[INFO] running `Command { std: "docker" "start" "d2a683ec022c1693d9dbf8cefa6338233d71e06b8a25b3438580d43c2e71ebaf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d2a683ec022c1693d9dbf8cefa6338233d71e06b8a25b3438580d43c2e71ebaf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d2a683ec022c1693d9dbf8cefa6338233d71e06b8a25b3438580d43c2e71ebaf" "/opt/rustwide/cargo-home/bin/cargo" "+e4d5758286bf2cf6f415802f2cf861747a7c6c8c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d2a683ec022c1693d9dbf8cefa6338233d71e06b8a25b3438580d43c2e71ebaf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d2a683ec022c1693d9dbf8cefa6338233d71e06b8a25b3438580d43c2e71ebaf" "/opt/rustwide/cargo-home/bin/cargo" "+e4d5758286bf2cf6f415802f2cf861747a7c6c8c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0601]: `main` function not found in crate `r#enum`
[INFO] [stdout]  --> src/bin/enum.rs:6:2
[INFO] [stdout]   |
[INFO] [stdout] 6 | }
[INFO] [stdout]   |  ^ consider adding a `main` function to `src/bin/enum.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Directions` is never used
[INFO] [stdout]  --> src/bin/enum.rs:1:6
[INFO] [stdout]   |
[INFO] [stdout] 1 | enum Directions {
[INFO] [stdout]   |      ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust` (bin "enum") due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `circle`
[INFO] [stdout]   --> src/bin/patternMatching.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let circle = Shape::Circle(3.0);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `square`
[INFO] [stdout]   --> src/bin/patternMatching.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let square = Shape::Square(4.0);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_square`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Result` is never used
[INFO] [stdout]  --> src/bin/errorhandling.rs:3:6
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum Result<A, B>{
[INFO] [stdout]   |      ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle`
[INFO] [stdout]   --> src/bin/patternMatching.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let circle = Shape::Circle(3.0);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `square`
[INFO] [stdout]   --> src/bin/patternMatching.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let square = Shape::Square(4.0);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_square`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Result` is never used
[INFO] [stdout]  --> src/bin/errorhandling.rs:3:6
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum Result<A, B>{
[INFO] [stdout]   |      ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `username` and `email` are never read
[INFO] [stdout]  --> src/bin/struct.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct User{
[INFO] [stdout]   |        ---- fields in this struct
[INFO] [stdout] 3 |     _active: bool,
[INFO] [stdout] 4 |     username: String,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 5 |     email: String,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `username` and `email` are never read
[INFO] [stdout]  --> src/bin/struct.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct User{
[INFO] [stdout]   |        ---- fields in this struct
[INFO] [stdout] 3 |     _active: bool,
[INFO] [stdout] 4 |     username: String,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 5 |     email: String,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:57:5
[INFO] [stdout]    |
[INFO] [stdout] 55 |   fn get_first_string(sentence: String) -> String {
[INFO] [stdout]    |                                            ------ expected `String` because of return type
[INFO] [stdout] 56 |       let mut ans = String::from("");
[INFO] [stdout] 57 | /     for char in sentence.chars() {
[INFO] [stdout] 58 | |         ans.push_str(char.to_string().as_str());
[INFO] [stdout] 59 | |         if char == ' ' {
[INFO] [stdout] 60 | |             break;
[INFO] [stdout] 61 | |         }
[INFO] [stdout] 62 | |     }
[INFO] [stdout]    | |_____^ expected `String`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `for` loops evaluate to unit type `()`
[INFO] [stdout] help: consider returning a value here
[INFO] [stdout]    |
[INFO] [stdout] 62 ~     }
[INFO] [stdout] 63 +     /* `String` value */
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:57:5
[INFO] [stdout]    |
[INFO] [stdout] 55 |   fn get_first_string(sentence: String) -> String {
[INFO] [stdout]    |                                            ------ expected `String` because of return type
[INFO] [stdout] 56 |       let mut ans = String::from("");
[INFO] [stdout] 57 | /     for char in sentence.chars() {
[INFO] [stdout] 58 | |         ans.push_str(char.to_string().as_str());
[INFO] [stdout] 59 | |         if char == ' ' {
[INFO] [stdout] 60 | |             break;
[INFO] [stdout] 61 | |         }
[INFO] [stdout] 62 | |     }
[INFO] [stdout]    | |_____^ expected `String`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `for` loops evaluate to unit type `()`
[INFO] [stdout] help: consider returning a value here
[INFO] [stdout]    |
[INFO] [stdout] 62 ~     }
[INFO] [stdout] 63 +     /* `String` value */
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust` (bin "rust") due to 1 previous error
[INFO] [stderr] error: could not compile `rust` (bin "rust" test) due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "d2a683ec022c1693d9dbf8cefa6338233d71e06b8a25b3438580d43c2e71ebaf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d2a683ec022c1693d9dbf8cefa6338233d71e06b8a25b3438580d43c2e71ebaf", kill_on_drop: false }`
[INFO] [stdout] d2a683ec022c1693d9dbf8cefa6338233d71e06b8a25b3438580d43c2e71ebaf
