[INFO] cloning repository https://github.com/Lyr-7D1h/cluster_iot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lyr-7D1h/cluster_iot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLyr-7D1h%2Fcluster_iot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLyr-7D1h%2Fcluster_iot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b695db5d5fe4962d2ebc51c1bd1570bdd1d86482 [INFO] checking Lyr-7D1h/cluster_iot/b695db5d5fe4962d2ebc51c1bd1570bdd1d86482 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLyr-7D1h%2Fcluster_iot" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Lyr-7D1h/cluster_iot 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] removed /workspace/builds/worker-5-tc1/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-5-tc1/source/rust-toolchain [INFO] started tweaking git repo https://github.com/Lyr-7D1h/cluster_iot [INFO] finished tweaking git repo https://github.com/Lyr-7D1h/cluster_iot [INFO] tweaked toml for git repo https://github.com/Lyr-7D1h/cluster_iot written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Lyr-7D1h/cluster_iot 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded openssl-sys v0.9.72 [INFO] [stderr] Downloaded ssh2 v0.9.3 [INFO] [stderr] Downloaded fern v0.6.0 [INFO] [stderr] Downloaded libssh2-sys v0.2.23 [INFO] [stderr] Downloaded libc v0.2.96 [INFO] [stderr] Downloaded openssl-src v111.17.0+1.1.1m [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d6e2c59bc48dba9d6d2adb77813f14552bdb8d27f525209307644a747a6eec50 [INFO] running `Command { std: "docker" "start" "-a" "d6e2c59bc48dba9d6d2adb77813f14552bdb8d27f525209307644a747a6eec50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6e2c59bc48dba9d6d2adb77813f14552bdb8d27f525209307644a747a6eec50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6e2c59bc48dba9d6d2adb77813f14552bdb8d27f525209307644a747a6eec50", kill_on_drop: false }` [INFO] [stdout] d6e2c59bc48dba9d6d2adb77813f14552bdb8d27f525209307644a747a6eec50 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07f00a4b8f6c5dee3a4c31273cd70690a34af2b2e3e609e80baad57bd6076d42 [INFO] running `Command { std: "docker" "start" "-a" "07f00a4b8f6c5dee3a4c31273cd70690a34af2b2e3e609e80baad57bd6076d42", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling libc v0.2.96 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking itoa v1.0.3 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking parser v0.1.0 (/opt/rustwide/workdir/libs/parser) [INFO] [stderr] Checking path_resolver v0.1.0 (/opt/rustwide/workdir/libs/path_resolver) [INFO] [stderr] Checking prompter v0.1.0 (/opt/rustwide/workdir/libs/prompter) [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> libs/parser/src/module.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::{PathBuf, Path}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse_arena::ParseArena` [INFO] [stdout] --> libs/parser/src/module.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{error::Error, parse::parse, parse_arena::ParseArena}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf`, `collections::HashMap`, `env::current_dir`, and `str::FromStr` [INFO] [stdout] --> libs/parser/src/parse.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | env::current_dir, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> libs/parser/src/module.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let child = arena.get_node(id); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> libs/parser/src/module.rs:30:34 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(file_path: &Path, arguments: Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> libs/parser/src/parse.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | let mut path = cwd.join(filename); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking fern v0.6.0 [INFO] [stdout] warning: enum `Expression` is never used [INFO] [stdout] --> libs/parser/src/module.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Expression { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last` is never read [INFO] [stdout] --> libs/parser/src/parse_arena.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct ParseArena { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 29 | nodes: Vec>, [INFO] [stdout] 30 | last: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseArena` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling openssl-src v111.17.0+1.1.1m [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling libz-sys v1.1.3 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling libssh2-sys v0.2.23 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling structopt-derive v0.4.14 [INFO] [stderr] Checking structopt v0.3.21 [INFO] [stderr] Checking ssh2 v0.9.3 [INFO] [stderr] Checking clusterit v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:51:57 [INFO] [stdout] | [INFO] [stdout] 51 | let executer = Executer::from_state(connection, self.state); [INFO] [stdout] | -------------------- ^^^^^^^^^^ expected `ExecuterState`, found `State` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/executer.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn from_state(connection: Connection, state: ExecuterState) -> Executer { [INFO] [stdout] | ^^^^^^^^^^ -------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:51:57 [INFO] [stdout] | [INFO] [stdout] 51 | let executer = Executer::from_state(connection, self.state); [INFO] [stdout] | -------------------- ^^^^^^^^^^ expected `ExecuterState`, found `State` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/executer.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn from_state(connection: Connection, state: ExecuterState) -> Executer { [INFO] [stdout] | ^^^^^^^^^^ -------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return reference to local variable `device` [INFO] [stdout] --> src/state.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | return &device; [INFO] [stdout] | ^^^^^^^ returns a reference to data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return reference to local variable `device` [INFO] [stdout] --> src/state.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | return &device; [INFO] [stdout] | ^^^^^^^ returns a reference to data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `device` [INFO] [stdout] --> src/state.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 47 | let device = Device { [INFO] [stdout] | ------ move occurs because `device` has type `Device`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 52 | self.devices.push(device); [INFO] [stdout] | ------ value moved here [INFO] [stdout] 53 | return &device; [INFO] [stdout] | ^^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `device` [INFO] [stdout] --> src/state.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 47 | let device = Device { [INFO] [stdout] | ------ move occurs because `device` has type `Device`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 52 | self.devices.push(device); [INFO] [stdout] | ------ value moved here [INFO] [stdout] 53 | return &device; [INFO] [stdout] | ^^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0381]: used binding `password` isn't initialized [INFO] [stdout] --> src/connection/authenticate.rs:174:40 [INFO] [stdout] | [INFO] [stdout] 155 | let mut password: String; [INFO] [stdout] | ------------ binding declared here but left uninitialized [INFO] [stdout] ... [INFO] [stdout] 174 | return Ok(Authentication::Password(password)); [INFO] [stdout] | ^^^^^^^^ `password` used here but it isn't initialized [INFO] [stdout] | [INFO] [stdout] help: consider assigning a value [INFO] [stdout] | [INFO] [stdout] 155 | let mut password: String = Default::default(); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0381]: used binding `password` isn't initialized [INFO] [stdout] --> src/connection/authenticate.rs:174:40 [INFO] [stdout] | [INFO] [stdout] 155 | let mut password: String; [INFO] [stdout] | ------------ binding declared here but left uninitialized [INFO] [stdout] ... [INFO] [stdout] 174 | return Ok(Authentication::Password(password)); [INFO] [stdout] | ^^^^^^^^ `password` used here but it isn't initialized [INFO] [stdout] | [INFO] [stdout] help: consider assigning a value [INFO] [stdout] | [INFO] [stdout] 155 | let mut password: String = Default::default(); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/connection/mod.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn write(mut self) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/connection/mod.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn read(mut self) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/connection/mod.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn write(mut self) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/connection/mod.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn read(mut self) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0381, E0382, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0381, E0382, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `clusterit` (lib) due to 5 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `clusterit` (lib test) due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "07f00a4b8f6c5dee3a4c31273cd70690a34af2b2e3e609e80baad57bd6076d42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07f00a4b8f6c5dee3a4c31273cd70690a34af2b2e3e609e80baad57bd6076d42", kill_on_drop: false }` [INFO] [stdout] 07f00a4b8f6c5dee3a4c31273cd70690a34af2b2e3e609e80baad57bd6076d42