[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/c88cd84c3431681de242adf4438ff8d25bc787f9 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikon5070%2Frust-notebook" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nikon5070/rust-notebook on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-3-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] abc3134ee4ec87df9c857c4eda9af2576884ddf3d81e1f98dbf7bc5dbec9fe3b [INFO] running `Command { std: "docker" "start" "-a" "abc3134ee4ec87df9c857c4eda9af2576884ddf3d81e1f98dbf7bc5dbec9fe3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "abc3134ee4ec87df9c857c4eda9af2576884ddf3d81e1f98dbf7bc5dbec9fe3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abc3134ee4ec87df9c857c4eda9af2576884ddf3d81e1f98dbf7bc5dbec9fe3b", kill_on_drop: false }` [INFO] [stdout] abc3134ee4ec87df9c857c4eda9af2576884ddf3d81e1f98dbf7bc5dbec9fe3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4730c5995f279c6b7b4c423fed697e830b47fc9053f913f8e298a8c7ceb14cb5 [INFO] running `Command { std: "docker" "start" "-a" "4730c5995f279c6b7b4c423fed697e830b47fc9053f913f8e298a8c7ceb14cb5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling unicode-xid v0.2.2 [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 bitflags v1.2.1 [INFO] [stderr] Compiling libc v0.2.102 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Checking itoa v0.4.8 [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: 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] = 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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 36 | let commands_all: HashMap<&str, dyn Fn() -> None> = HashMap::new(); [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: 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: unused variable: `events` [INFO] [stdout] --> src/cli.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn run(&self, events: CliEvents) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_events` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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: aborting due to 1 previous error; 5 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` (bin "notebook" test) due to 2 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] = 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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [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] warning: unused variable: `events` [INFO] [stdout] --> src/cli.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn run(&self, events: CliEvents) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_events` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 5 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` (bin "notebook") due to 2 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4730c5995f279c6b7b4c423fed697e830b47fc9053f913f8e298a8c7ceb14cb5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4730c5995f279c6b7b4c423fed697e830b47fc9053f913f8e298a8c7ceb14cb5", kill_on_drop: false }` [INFO] [stdout] 4730c5995f279c6b7b4c423fed697e830b47fc9053f913f8e298a8c7ceb14cb5