[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#c8a31b780d5415358566a20b94912620a3f27067 for pr-139493-1
[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 c8a31b780d5415358566a20b94912620a3f27067
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c8a31b780d5415358566a20b94912620a3f27067" "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" "+c8a31b780d5415358566a20b94912620a3f27067" "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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c8a31b780d5415358566a20b94912620a3f27067" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b22da1114575230973c4b73390a0c55decadd36cac661c59b672538faca3955b
[INFO] running `Command { std: "docker" "start" "-a" "b22da1114575230973c4b73390a0c55decadd36cac661c59b672538faca3955b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b22da1114575230973c4b73390a0c55decadd36cac661c59b672538faca3955b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b22da1114575230973c4b73390a0c55decadd36cac661c59b672538faca3955b", kill_on_drop: false }`
[INFO] [stdout] b22da1114575230973c4b73390a0c55decadd36cac661c59b672538faca3955b
[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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c8a31b780d5415358566a20b94912620a3f27067" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a766431cca1b10ff8939e413de20c104f4bd3766b4495164554114e83086cf0e
[INFO] running `Command { std: "docker" "start" "-a" "a766431cca1b10ff8939e413de20c104f4bd3766b4495164554114e83086cf0e", 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: 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[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] [stderr] error: could not compile `error` (bin "error" test) due to 6 previous errors; 1 warning emitted
[INFO] [stdout] For more information about an error, try `rustc --explain E0405`.
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `error` (bin "error") due to 6 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "a766431cca1b10ff8939e413de20c104f4bd3766b4495164554114e83086cf0e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a766431cca1b10ff8939e413de20c104f4bd3766b4495164554114e83086cf0e", kill_on_drop: false }`
[INFO] [stdout] a766431cca1b10ff8939e413de20c104f4bd3766b4495164554114e83086cf0e
