[INFO] cloning repository https://github.com/Aidan-Jared/error
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Aidan-Jared/error" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAidan-Jared%2Ferror", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAidan-Jared%2Ferror'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 67c9a5accf0692c16e03a8c9e035c7dd3134b212
[INFO] checking Aidan-Jared/error against master#9b81629631b382fd49ee3a20ac47797b1467e52d for pr-146095
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAidan-Jared%2Ferror" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Aidan-Jared/error
[INFO] finished tweaking git repo https://github.com/Aidan-Jared/error
[INFO] tweaked toml for git repo https://github.com/Aidan-Jared/error written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Aidan-Jared/error on toolchain 9b81629631b382fd49ee3a20ac47797b1467e52d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b81629631b382fd49ee3a20ac47797b1467e52d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Aidan-Jared/error 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" "+9b81629631b382fd49ee3a20ac47797b1467e52d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+9b81629631b382fd49ee3a20ac47797b1467e52d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0a1558a9517bfe00b53811957ccde803fae2772c37134f10034af21704426243
[INFO] running `Command { std: "docker" "start" "-a" "0a1558a9517bfe00b53811957ccde803fae2772c37134f10034af21704426243", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0a1558a9517bfe00b53811957ccde803fae2772c37134f10034af21704426243", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0a1558a9517bfe00b53811957ccde803fae2772c37134f10034af21704426243", kill_on_drop: false }`
[INFO] [stdout] 0a1558a9517bfe00b53811957ccde803fae2772c37134f10034af21704426243
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+9b81629631b382fd49ee3a20ac47797b1467e52d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4483f002e9d879ad9bbba732cb78fe490a1c607731df4c1255eb92fd1ce3efba
[INFO] running `Command { std: "docker" "start" "-a" "4483f002e9d879ad9bbba732cb78fe490a1c607731df4c1255eb92fd1ce3efba", kill_on_drop: false }`
[INFO] [stderr]     Checking error v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected expression, found `let` statement
[INFO] [stdout]   --> src/main.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let mut username = String::new();
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: only supported directly in conditions of `if` and `while` expressions
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]   --> src/main.rs:21:53
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let mut username_file = File::open("hello.txt")?
[INFO] [stdout]    |                                                     ^ help: add `;` here
[INFO] [stdout] 22 |     let mut username = String::new();
[INFO] [stdout]    |     --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `read_username_from_file` is defined multiple times
[INFO] [stdout]   --> src/main.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout]  4 | fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout]    | -------------------------------------------------------- previous definition of the value `read_username_from_file` here
[INFO] [stdout] ...
[INFO] [stdout] 20 | fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `read_username_from_file` redefined here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `read_username_from_file` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]  --> src/main.rs:4:47
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout]   |                                               ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]   |
[INFO] [stdout] 4 - fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout] 4 + fn read_username_from_file()-> Result<String, i8::Error>{
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 1 + use std::io;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/main.rs:20:47
[INFO] [stdout]    |
[INFO] [stdout] 20 | fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout]    |                                               ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 20 - fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout] 20 + fn read_username_from_file()-> Result<String, i8::Error>{
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0405]: cannot find trait `Error` in this scope
[INFO] [stdout]   --> src/main.rs:27:33
[INFO] [stdout]    |
[INFO] [stdout] 27 | fn main() -> Result<(), Box<dyn Error>>{
[INFO] [stdout]    |                                 ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this trait
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::ErrorKind`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::ErrorKind;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0405, E0428, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0405`.
[INFO] [stdout] 
[INFO] [stdout] error: expected expression, found `let` statement
[INFO] [stdout]   --> src/main.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let mut username = String::new();
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: only supported directly in conditions of `if` and `while` expressions
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]   --> src/main.rs:21:53
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let mut username_file = File::open("hello.txt")?
[INFO] [stdout]    |                                                     ^ help: add `;` here
[INFO] [stdout] 22 |     let mut username = String::new();
[INFO] [stdout]    |     --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `error` (bin "error") due to 6 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0428]: the name `read_username_from_file` is defined multiple times
[INFO] [stdout]   --> src/main.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout]  4 | fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout]    | -------------------------------------------------------- previous definition of the value `read_username_from_file` here
[INFO] [stdout] ...
[INFO] [stdout] 20 | fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `read_username_from_file` redefined here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `read_username_from_file` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]  --> src/main.rs:4:47
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout]   |                                               ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]   |
[INFO] [stdout] 4 - fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout] 4 + fn read_username_from_file()-> Result<String, i8::Error>{
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 1 + use std::io;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/main.rs:20:47
[INFO] [stdout]    |
[INFO] [stdout] 20 | fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout]    |                                               ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 20 - fn read_username_from_file()-> Result<String, io::Error>{
[INFO] [stdout] 20 + fn read_username_from_file()-> Result<String, i8::Error>{
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0405]: cannot find trait `Error` in this scope
[INFO] [stdout]   --> src/main.rs:27:33
[INFO] [stdout]    |
[INFO] [stdout] 27 | fn main() -> Result<(), Box<dyn Error>>{
[INFO] [stdout]    |                                 ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this trait
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::ErrorKind`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::ErrorKind;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0405, E0428, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0405`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `error` (bin "error" test) due to 6 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "4483f002e9d879ad9bbba732cb78fe490a1c607731df4c1255eb92fd1ce3efba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4483f002e9d879ad9bbba732cb78fe490a1c607731df4c1255eb92fd1ce3efba", kill_on_drop: false }`
[INFO] [stdout] 4483f002e9d879ad9bbba732cb78fe490a1c607731df4c1255eb92fd1ce3efba
