[INFO] cloning repository https://github.com/Nikon5070/rust-notebook [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nikon5070/rust-notebook" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikon5070%2Frust-notebook", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikon5070%2Frust-notebook'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c88cd84c3431681de242adf4438ff8d25bc787f9 [INFO] testing Nikon5070/rust-notebook against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikon5070%2Frust-notebook" "/workspace/builds/worker-98/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-98/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nikon5070/rust-notebook on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Nikon5070/rust-notebook [INFO] finished tweaking git repo https://github.com/Nikon5070/rust-notebook [INFO] tweaked toml for git repo https://github.com/Nikon5070/rust-notebook written to /workspace/builds/worker-98/source/Cargo.toml [INFO] crate git repo https://github.com/Nikon5070/rust-notebook already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd0a6634544e9f5f89c22e11766a9b613bbb373c497ea02084829f7e8bef3d9e [INFO] running `Command { std: "docker" "start" "-a" "dd0a6634544e9f5f89c22e11766a9b613bbb373c497ea02084829f7e8bef3d9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd0a6634544e9f5f89c22e11766a9b613bbb373c497ea02084829f7e8bef3d9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd0a6634544e9f5f89c22e11766a9b613bbb373c497ea02084829f7e8bef3d9e", kill_on_drop: false }` [INFO] [stdout] dd0a6634544e9f5f89c22e11766a9b613bbb373c497ea02084829f7e8bef3d9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5df4ab4bb166d0df518a37eaf5bc41cfb8990cf5b8bc19d2dbe6f19e20fada7e [INFO] running `Command { std: "docker" "start" "-a" "5df4ab4bb166d0df518a37eaf5bc41cfb8990cf5b8bc19d2dbe6f19e20fada7e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling libc v0.2.102 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling nix v0.22.1 [INFO] [stderr] Compiling ctrlc v3.2.0 [INFO] [stderr] Compiling notebook v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0573]: expected type, found variant `None` [INFO] [stdout] --> src/cli.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | let commands_all: HashMap<&str, Fn() -> None> = HashMap::new(); [INFO] [stdout] | ^^^^ not a type [INFO] [stdout] | [INFO] [stdout] help: try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 36 | let commands_all: HashMap<&str, Fn() -> core::option::Option> = HashMap::new(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 36 | let commands_all: HashMap<&str, Fn() -> serde::__private> = HashMap::new(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] 36 | let commands_all: HashMap<&str, Fn() -> serde::__private::de::Content> = HashMap::new(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 36 | let commands_all: HashMap<&str, Fn() -> std::option::Option> = HashMap::new(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::notebook::Notebook` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::notebook::Notebook; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/main.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{self, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/cli.rs:36:41 [INFO] [stdout] | [INFO] [stdout] 36 | let commands_all: HashMap<&str, Fn() -> None> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 36 - let commands_all: HashMap<&str, Fn() -> None> = HashMap::new(); [INFO] [stdout] 36 + let commands_all: HashMap<&str, dyn Fn() -> None> = HashMap::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 57 | / loop { [INFO] [stdout] 58 | | let mut input = String::new(); [INFO] [stdout] 59 | | match io::stdin().read_line(&mut input) { [INFO] [stdout] 60 | | Ok(_) => { [INFO] [stdout] ... | [INFO] [stdout] 64 | | } [INFO] [stdout] 65 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 66 | println!("Got it! Exiting..."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0573`. [INFO] [stdout] [INFO] [stderr] error: could not compile `notebook` due to 2 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "5df4ab4bb166d0df518a37eaf5bc41cfb8990cf5b8bc19d2dbe6f19e20fada7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5df4ab4bb166d0df518a37eaf5bc41cfb8990cf5b8bc19d2dbe6f19e20fada7e", kill_on_drop: false }` [INFO] [stdout] 5df4ab4bb166d0df518a37eaf5bc41cfb8990cf5b8bc19d2dbe6f19e20fada7e