[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] checking Nikon5070/rust-notebook against try#cac44d9528e3bbbdaa1537d187bd489ccc5de18c for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikon5070%2Frust-notebook" "/workspace/builds/worker-30/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-30/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nikon5070/rust-notebook on toolchain cac44d9528e3bbbdaa1537d187bd489ccc5de18c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "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-30/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" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ctrlc v3.2.0 [INFO] [stderr] Downloaded nix v0.22.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06851d5e221867d293b7fe85cd2ba4ace226e3ba682809885d7b0b98d3242e06 [INFO] running `Command { std: "docker" "start" "-a" "06851d5e221867d293b7fe85cd2ba4ace226e3ba682809885d7b0b98d3242e06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06851d5e221867d293b7fe85cd2ba4ace226e3ba682809885d7b0b98d3242e06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06851d5e221867d293b7fe85cd2ba4ace226e3ba682809885d7b0b98d3242e06", kill_on_drop: false }` [INFO] [stdout] 06851d5e221867d293b7fe85cd2ba4ace226e3ba682809885d7b0b98d3242e06 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cca7831aab10d90494e2e1bd598998dc2575d2690e9197947f7a44eb0eaa2685 [INFO] running `Command { std: "docker" "start" "-a" "cca7831aab10d90494e2e1bd598998dc2575d2690e9197947f7a44eb0eaa2685", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling libc v0.2.102 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking nix v0.22.1 [INFO] [stderr] Checking ctrlc v3.2.0 [INFO] [stderr] Checking 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: 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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> None` [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] [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] 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: 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] | ^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> None` [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] [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: 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] 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] [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] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "cca7831aab10d90494e2e1bd598998dc2575d2690e9197947f7a44eb0eaa2685", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cca7831aab10d90494e2e1bd598998dc2575d2690e9197947f7a44eb0eaa2685", kill_on_drop: false }` [INFO] [stdout] cca7831aab10d90494e2e1bd598998dc2575d2690e9197947f7a44eb0eaa2685