[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] testing samothx/win_test against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamothx%2Fwin_test" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-1-tc2/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-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/samothx/win_test on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/samothx/win_test 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] aadd08bf6ca11a7afa02a96778f838bcf28ecb8f4f208d98623282caeaf2db23
[INFO] running `Command { std: "docker" "start" "-a" "aadd08bf6ca11a7afa02a96778f838bcf28ecb8f4f208d98623282caeaf2db23", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "aadd08bf6ca11a7afa02a96778f838bcf28ecb8f4f208d98623282caeaf2db23", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aadd08bf6ca11a7afa02a96778f838bcf28ecb8f4f208d98623282caeaf2db23", kill_on_drop: false }`
[INFO] [stdout] aadd08bf6ca11a7afa02a96778f838bcf28ecb8f4f208d98623282caeaf2db23
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 27b9e22f0eaf3290a935749ae518c4d0c370668942d46f05c53565771ad8efdf
[INFO] running `Command { std: "docker" "start" "-a" "27b9e22f0eaf3290a935749ae518c4d0c370668942d46f05c53565771ad8efdf", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.50
[INFO] [stderr]    Compiling proc-macro2 v0.4.27
[INFO] [stderr]    Compiling unicode-xid v0.1.0
[INFO] [stderr]    Compiling memchr v2.2.0
[INFO] [stderr]    Compiling num-traits v0.2.6
[INFO] [stderr]    Compiling syn v0.15.29
[INFO] [stderr]    Compiling cc v1.0.31
[INFO] [stderr]    Compiling autocfg v0.1.2
[INFO] [stderr]    Compiling num-integer v0.1.39
[INFO] [stderr]    Compiling cfg-if v0.1.7
[INFO] [stderr]    Compiling serde v1.0.89
[INFO] [stderr]    Compiling failure_derive v0.1.5
[INFO] [stderr]    Compiling lazy_static v1.3.0
[INFO] [stderr]    Compiling regex v1.1.2
[INFO] [stderr]    Compiling ucd-util v0.1.3
[INFO] [stderr]    Compiling unicode-width v0.1.5
[INFO] [stderr]    Compiling rustc-demangle v0.1.13
[INFO] [stderr]    Compiling thread_local v0.3.6
[INFO] [stderr]    Compiling libc v0.2.50 (https://github.com/rust-lang/libc#e1c9ad19)
[INFO] [stderr]    Compiling regex-syntax v0.6.5
[INFO] [stderr]    Compiling log v0.4.6
[INFO] [stderr]    Compiling backtrace v0.3.14
[INFO] [stderr]    Compiling textwrap v0.10.0
[INFO] [stderr]    Compiling vec_map v0.8.1
[INFO] [stderr]    Compiling utf8-ranges v1.0.2
[INFO] [stderr]    Compiling bitflags v1.0.4
[INFO] [stderr]    Compiling strsim v0.7.0
[INFO] [stderr]    Compiling termcolor v0.3.6
[INFO] [stderr]    Compiling ansi_term v0.11.0
[INFO] [stderr]    Compiling quote v0.6.11
[INFO] [stderr]    Compiling time v0.1.42
[INFO] [stderr]    Compiling atty v0.2.11
[INFO] [stderr]    Compiling backtrace-sys v0.1.28
[INFO] [stderr]    Compiling clap v2.32.0
[INFO] [stderr]    Compiling aho-corasick v0.6.10
[INFO] [stderr]    Compiling csv-core v0.1.5
[INFO] [stderr]    Compiling chrono v0.4.6
[INFO] [stderr]    Compiling stderrlog v0.4.1
[INFO] [stderr]    Compiling csv v1.0.5
[INFO] [stderr]    Compiling synstructure v0.10.1
[INFO] [stderr]    Compiling failure v0.1.5
[INFO] [stderr]    Compiling 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]    = help: consider importing this struct instead:
[INFO] [stdout]            crate::mig_error::MigErrCtx
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> src/lib.rs:32:24
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]    |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout] 32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[INFO] [stdout]    |                        ^^^^^^^^^
[INFO] [stdout]    = help: consider importing this struct instead:
[INFO] [stdout]            crate::mig_error::MigError
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> src/lib.rs:32:35
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]    |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout] 32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[INFO] [stdout]    |                                   ^^^^^^^^
[INFO] [stdout]    = help: consider importing this enum instead:
[INFO] [stdout]            crate::mig_error::MigErrorKind
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> src/lib.rs:32:45
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]    |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout] 32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[INFO] [stdout]    |                                             ^^^^^^^^^^^^
[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<OSRelease, MigError> {
[INFO] [stdout]    |                                                                  ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> src/lib.rs:32:35
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]    |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout] 32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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]    |                                ^^^^^^^^ use of undeclared type `MigError`
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> src/lib.rs:32:35
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]    |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout] 32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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 `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] note: found an item that was configured out
[INFO] [stdout]   --> src/lib.rs:32:45
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]    |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout] 32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[INFO] [stdout]    |                                             ^^^^^^^^^^^^
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 26 + use crate::mig_error::MigErrorKind;
[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<u32, MigError> {
[INFO] [stdout]    |                                       ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> src/lib.rs:32:35
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]    |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout] 32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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::<u32>().context(MigErrCtx::from_remark(
[INFO] [stdout]    |                                                                     ^^^^^^^^^ use of undeclared type `MigErrCtx`
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> src/lib.rs:32:24
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]    |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout] 32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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 `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] note: found an item that was configured out
[INFO] [stdout]   --> src/lib.rs:32:45
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]    |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout] 32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[INFO] [stdout]    |                                             ^^^^^^^^^^^^
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 26 + use crate::mig_error::MigErrorKind;
[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]    |                                        ^^^^^^^^ use of undeclared type `MigError`
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> src/lib.rs:32:35
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]    |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout] 32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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 `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] note: found an item that was configured out
[INFO] [stdout]   --> src/lib.rs:32:45
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]    |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout] 32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[INFO] [stdout]    |                                             ^^^^^^^^^^^^
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 26 + use crate::mig_error::MigErrorKind;
[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]     |             ^^^^^^^^ use of undeclared type `MigError`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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 `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] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:45
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[INFO] [stdout]     |                                             ^^^^^^^^^^^^
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout]  26 + use crate::mig_error::MigErrorKind;
[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] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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<u64, MigError>;
[INFO] [stdout]     |                                              ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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<u64, MigError>;
[INFO] [stdout]     |                                                ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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<bool, MigError>;
[INFO] [stdout]     |                                            ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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<bool, MigError>;
[INFO] [stdout]     |                                                  ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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<bool, MigError>;
[INFO] [stdout]     |                                               ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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<bool, MigError>;
[INFO] [stdout]     |                                                ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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<Box<Migrator>, MigError> {
[INFO] [stdout]     |                                                ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> src/lib.rs:32:35
[INFO] [stdout]     |
[INFO] [stdout]  31 | #[cfg(target_os = "windows")]    
[INFO] [stdout]     |       --------------------- the item is gated behind the `windows` feature
[INFO] [stdout]  32 | use crate::mig_error::{MigErrCtx, MigError, MigErrorKind};
[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)]` (part of `#[warn(unused)]`) 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: 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: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]   --> src/linux/mod.rs:86:55
[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: 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]    |                                ^^^^
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 87 |     fn cause(&self) -> Option<&dyn Fail> {
[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<Box<Migrator>, MigError> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 141 | pub fn get_migrator() -> Result<Box<dyn Migrator>, MigError> {
[INFO] [stdout]     |                                     +++
[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] 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` (lib) due to 23 previous errors; 10 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "27b9e22f0eaf3290a935749ae518c4d0c370668942d46f05c53565771ad8efdf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "27b9e22f0eaf3290a935749ae518c4d0c370668942d46f05c53565771ad8efdf", kill_on_drop: false }`
[INFO] [stdout] 27b9e22f0eaf3290a935749ae518c4d0c370668942d46f05c53565771ad8efdf
