[INFO] cloning repository https://github.com/samothx/win_test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/samothx/win_test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamothx%2Fwin_test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamothx%2Fwin_test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d2885e21627f7ebff6249f75ac7929595f0ab6a0 [INFO] checking samothx/win_test against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamothx%2Fwin_test" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/samothx/win_test on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-10/source/.cargo/config [INFO] started tweaking git repo https://github.com/samothx/win_test [INFO] finished tweaking git repo https://github.com/samothx/win_test [INFO] tweaked toml for git repo https://github.com/samothx/win_test written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/samothx/win_test already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/retep998/winapi-rs.git` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8437bdeecc8bdb9b74138c05f41f5dbfa36c8eda6cee730ebb22379b4385bbea [INFO] running `Command { std: "docker" "start" "-a" "8437bdeecc8bdb9b74138c05f41f5dbfa36c8eda6cee730ebb22379b4385bbea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8437bdeecc8bdb9b74138c05f41f5dbfa36c8eda6cee730ebb22379b4385bbea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8437bdeecc8bdb9b74138c05f41f5dbfa36c8eda6cee730ebb22379b4385bbea", kill_on_drop: false }` [INFO] [stdout] 8437bdeecc8bdb9b74138c05f41f5dbfa36c8eda6cee730ebb22379b4385bbea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b3972c96c35b0aeb84e7e66be539ebf1c7e5db336035793e8d4a3de15ef53cd [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6b3972c96c35b0aeb84e7e66be539ebf1c7e5db336035793e8d4a3de15ef53cd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.50 [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling syn v0.15.29 [INFO] [stderr] Compiling cc v1.0.31 [INFO] [stderr] Checking cfg-if v0.1.7 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling libc v0.2.50 (https://github.com/rust-lang/libc#e1c9ad19) [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking rustc-demangle v0.1.13 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking textwrap v0.10.0 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking regex-syntax v0.6.5 [INFO] [stderr] Compiling backtrace v0.3.14 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Checking memchr v2.2.0 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Compiling backtrace-sys v0.1.28 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking csv-core v0.1.5 [INFO] [stderr] Checking csv v1.0.5 [INFO] [stderr] Checking stderrlog v0.4.1 [INFO] [stderr] Checking regex v1.1.2 [INFO] [stderr] Compiling synstructure v0.10.1 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking balena_migrator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `crate::MigErrCtx`, `crate::MigError`, `crate::MigErrorKind` [INFO] [stdout] --> src/linux/util.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::{MigErrCtx, MigError, MigErrorKind}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ no `MigErrorKind` in the root [INFO] [stdout] | | | [INFO] [stdout] | | no `MigError` in the root [INFO] [stdout] | no `MigErrCtx` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::MigErrCtx`, `crate::MigError`, `crate::MigErrorKind` [INFO] [stdout] --> src/linux/util.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::{MigErrCtx, MigError, MigErrorKind}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ no `MigErrorKind` in the root [INFO] [stdout] | | | [INFO] [stdout] | | no `MigError` in the root [INFO] [stdout] | no `MigErrCtx` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigErrorKind` [INFO] [stdout] --> src/lib.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | MigErrorKind::InvParam, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MigErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigErrorKind` [INFO] [stdout] --> src/lib.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | MigErrorKind::InvParam, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MigErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigErrorKind` [INFO] [stdout] --> src/lib.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | MigErrorKind::InvParam, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MigErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigErrorKind` [INFO] [stdout] --> src/lib.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | MigErrorKind::InvParam, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MigErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigErrorKind` [INFO] [stdout] --> src/lib.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | MigErrorKind::InvParam, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MigErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigErrorKind` [INFO] [stdout] --> src/lib.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | MigErrorKind::InvParam, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MigErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigErrorKind` [INFO] [stdout] --> src/lib.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | MigErrorKind::InvParam, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MigErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigErrorKind` [INFO] [stdout] --> src/lib.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | MigErrorKind::InvParam, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MigErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:61:66 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn parse_from_str(os_release: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigError` [INFO] [stdout] --> src/lib.rs:68:32 [INFO] [stdout] | [INFO] [stdout] 68 | None => return Err(MigError::from_remark( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:78:39 [INFO] [stdout] | [INFO] [stdout] 78 | |i: usize| -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigErrCtx` [INFO] [stdout] --> src/lib.rs:80:69 [INFO] [stdout] | [INFO] [stdout] 80 | Some(s) => Ok(s.as_str().parse::().context(MigErrCtx::from_remark( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigErrCtx; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigError` [INFO] [stdout] --> src/lib.rs:87:40 [INFO] [stdout] | [INFO] [stdout] 87 | None => return Err(MigError::from_remark( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigError` [INFO] [stdout] --> src/lib.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | Err(MigError::from_remark( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:121:57 [INFO] [stdout] | [INFO] [stdout] 121 | fn get_os_name<'a>(&'a mut self) -> Result<&'a str, MigError>; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:122:66 [INFO] [stdout] | [INFO] [stdout] 122 | fn get_os_release<'a>(&'a mut self) -> Result<&'a OSRelease, MigError>; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:123:60 [INFO] [stdout] | [INFO] [stdout] 123 | fn get_os_arch<'a>(&'a mut self) -> Result<&'a OSArch, MigError>; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:124:58 [INFO] [stdout] | [INFO] [stdout] 124 | fn get_boot_dev<'a>(&'a mut self) -> Result<&'a str, MigError>; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:125:46 [INFO] [stdout] | [INFO] [stdout] 125 | fn get_mem_tot(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:126:48 [INFO] [stdout] | [INFO] [stdout] 126 | fn get_mem_avail(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:127:44 [INFO] [stdout] | [INFO] [stdout] 127 | fn is_admin(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:128:50 [INFO] [stdout] | [INFO] [stdout] 128 | fn is_secure_boot(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:129:47 [INFO] [stdout] | [INFO] [stdout] 129 | fn can_migrate(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:130:41 [INFO] [stdout] | [INFO] [stdout] 130 | fn migrate(&mut self) -> Result<(), MigError>; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:131:48 [INFO] [stdout] | [INFO] [stdout] 131 | fn is_uefi_boot(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:141:48 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn get_migrator() -> Result, MigError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/linux/mod.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use failure::{Context, ResultExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sysinfo` [INFO] [stdout] --> src/linux/mod.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use libc::{getuid, sysinfo}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/linux/mod.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{error, info, debug}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::read_to_string` [INFO] [stdout] --> src/linux/util.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::read_to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/linux/util.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mig_error.rs:87:32 [INFO] [stdout] | [INFO] [stdout] 87 | fn cause(&self) -> Option<&Fail> { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Fail` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/lib.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | use std::collections::{HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn get_migrator() -> Result, MigError> { [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Migrator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:61:66 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn parse_from_str(os_release: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigError` [INFO] [stdout] --> src/lib.rs:68:32 [INFO] [stdout] | [INFO] [stdout] 68 | None => return Err(MigError::from_remark( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:78:39 [INFO] [stdout] | [INFO] [stdout] 78 | |i: usize| -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigErrCtx` [INFO] [stdout] --> src/lib.rs:80:69 [INFO] [stdout] | [INFO] [stdout] 80 | Some(s) => Ok(s.as_str().parse::().context(MigErrCtx::from_remark( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigErrCtx; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigError` [INFO] [stdout] --> src/lib.rs:87:40 [INFO] [stdout] | [INFO] [stdout] 87 | None => return Err(MigError::from_remark( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MigError` [INFO] [stdout] --> src/lib.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | Err(MigError::from_remark( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:121:57 [INFO] [stdout] | [INFO] [stdout] 121 | fn get_os_name<'a>(&'a mut self) -> Result<&'a str, MigError>; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:122:66 [INFO] [stdout] | [INFO] [stdout] 122 | fn get_os_release<'a>(&'a mut self) -> Result<&'a OSRelease, MigError>; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:123:60 [INFO] [stdout] | [INFO] [stdout] 123 | fn get_os_arch<'a>(&'a mut self) -> Result<&'a OSArch, MigError>; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:124:58 [INFO] [stdout] | [INFO] [stdout] 124 | fn get_boot_dev<'a>(&'a mut self) -> Result<&'a str, MigError>; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:125:46 [INFO] [stdout] | [INFO] [stdout] 125 | fn get_mem_tot(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:126:48 [INFO] [stdout] | [INFO] [stdout] 126 | fn get_mem_avail(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:127:44 [INFO] [stdout] | [INFO] [stdout] 127 | fn is_admin(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:128:50 [INFO] [stdout] | [INFO] [stdout] 128 | fn is_secure_boot(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:129:47 [INFO] [stdout] | [INFO] [stdout] 129 | fn can_migrate(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:130:41 [INFO] [stdout] | [INFO] [stdout] 130 | fn migrate(&mut self) -> Result<(), MigError>; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:131:48 [INFO] [stdout] | [INFO] [stdout] 131 | fn is_uefi_boot(&mut self) -> Result; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MigError` in this scope [INFO] [stdout] --> src/lib.rs:141:48 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn get_migrator() -> Result, MigError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 | use crate::mig_error::MigError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/linux/mod.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use failure::{Context, ResultExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sysinfo` [INFO] [stdout] --> src/linux/mod.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use libc::{getuid, sysinfo}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/linux/mod.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{error, info, debug}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::read_to_string` [INFO] [stdout] --> src/linux/util.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::read_to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/linux/util.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mig_error.rs:87:32 [INFO] [stdout] | [INFO] [stdout] 87 | fn cause(&self) -> Option<&Fail> { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Fail` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/lib.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | use std::collections::{HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn get_migrator() -> Result, MigError> { [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Migrator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/linux/mod.rs:86:50 [INFO] [stdout] | [INFO] [stdout] 86 | let mut s_info: libc::sysinfo = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/linux/mod.rs:86:50 [INFO] [stdout] | [INFO] [stdout] 86 | let mut s_info: libc::sysinfo = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Fail` [INFO] [stdout] --> src/linux/util.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use failure::{Fail, ResultExt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `balena_migrator` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `Fail` [INFO] [stdout] --> src/linux/util.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use failure::{Fail, ResultExt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "6b3972c96c35b0aeb84e7e66be539ebf1c7e5db336035793e8d4a3de15ef53cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b3972c96c35b0aeb84e7e66be539ebf1c7e5db336035793e8d4a3de15ef53cd", kill_on_drop: false }` [INFO] [stdout] 6b3972c96c35b0aeb84e7e66be539ebf1c7e5db336035793e8d4a3de15ef53cd