[INFO] cloning repository https://github.com/LachlanArthur/TimeTrackerRust [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LachlanArthur/TimeTrackerRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLachlanArthur%2FTimeTrackerRust"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLachlanArthur%2FTimeTrackerRust'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 9f0a334abd18d7430220ca14976c5f9e961c0273 [INFO] testing LachlanArthur/TimeTrackerRust against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLachlanArthur%2FTimeTrackerRust" "/workspace/builds/worker-4/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LachlanArthur/TimeTrackerRust on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/LachlanArthur/TimeTrackerRust [INFO] finished tweaking git repo https://github.com/LachlanArthur/TimeTrackerRust [INFO] tweaked toml for git repo https://github.com/LachlanArthur/TimeTrackerRust written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/LachlanArthur/TimeTrackerRust already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 47c8a500d2b3e463de061a525e6451fb4aefee85ca9a5963ed47ea270554b29a [INFO] running `"docker" "start" "-a" "47c8a500d2b3e463de061a525e6451fb4aefee85ca9a5963ed47ea270554b29a"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling time_tracker v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/active_window.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::{ [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/active_window.rs:39:15 [INFO] [stderr] | [INFO] [stderr] 39 | use std::os::windows::ffi::OsStringExt; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/idle_time.rs:3:6 [INFO] [stderr] | [INFO] [stderr] 3 | use winapi::um::{ [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/active_window.rs:30:10 [INFO] [stderr] | [INFO] [stderr] 30 | pub id: winapi::shared::minwindef::DWORD, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `LASTINPUTINFO` in this scope [INFO] [stderr] --> src/idle_time.rs:11:23 [INFO] [stderr] | [INFO] [stderr] 11 | let mut last_input = LASTINPUTINFO { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LASTINPUTINFO` in this scope [INFO] [stderr] --> src/idle_time.rs:12:21 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn get_idle_time() -> u32 { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 12 | cbSize: size_of::() as u32, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastInputInfo` in this scope [INFO] [stderr] --> src/idle_time.rs:16:20 [INFO] [stderr] | [INFO] [stderr] 16 | assert!( unsafe { GetLastInputInfo( &mut last_input ) } != 0 ); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetTickCount` in this scope [INFO] [stderr] --> src/idle_time.rs:18:33 [INFO] [stderr] | [INFO] [stderr] 18 | let tick_count: u32 = unsafe { GetTickCount() }; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/active_window.rs:33:35 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn get_foreground_window() -> HWND { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetForegroundWindow` in this scope [INFO] [stderr] --> src/active_window.rs:34:18 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn get_foreground_window() -> HWND { [INFO] [stderr] | -------------------------------------- similarly named function `get_foreground_window` defined here [INFO] [stderr] 34 | return unsafe { GetForegroundWindow() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_foreground_window` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/active_window.rs:37:34 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn get_window_title( window: HWND ) -> String { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowTextLengthW` in this scope [INFO] [stderr] --> src/active_window.rs:41:29 [INFO] [stderr] | [INFO] [stderr] 41 | let length: i32 = unsafe { GetWindowTextLengthW( window ) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowTextW` in this scope [INFO] [stderr] --> src/active_window.rs:44:3 [INFO] [stderr] | [INFO] [stderr] 44 | GetWindowTextW( window, title.as_mut_ptr(), length + 1 ); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/active_window.rs:53:37 [INFO] [stderr] | [INFO] [stderr] 53 | let mut path = Vec::with_capacity( MAX_PATH ); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/active_window.rs:54:22 [INFO] [stderr] | [INFO] [stderr] 54 | let mut process_id: DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowThreadProcessId` in this scope [INFO] [stderr] --> src/active_window.rs:58:3 [INFO] [stderr] | [INFO] [stderr] 58 | GetWindowThreadProcessId( active_window, &mut process_id ); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stderr] --> src/active_window.rs:60:16 [INFO] [stderr] | [INFO] [stderr] 60 | let handle = OpenProcess( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PROCESS_QUERY_INFORMATION` in this scope [INFO] [stderr] --> src/active_window.rs:61:4 [INFO] [stderr] | [INFO] [stderr] 61 | PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PROCESS_VM_READ` in this scope [INFO] [stderr] --> src/active_window.rs:61:32 [INFO] [stderr] | [INFO] [stderr] 61 | PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleFileNameExW` in this scope [INFO] [stderr] --> src/active_window.rs:66:16 [INFO] [stderr] | [INFO] [stderr] 66 | let length = GetModuleFileNameExW( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stderr] --> src/active_window.rs:70:4 [INFO] [stderr] | [INFO] [stderr] 70 | MAX_PATH as u32 [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stderr] --> src/active_window.rs:73:3 [INFO] [stderr] | [INFO] [stderr] 73 | CloseHandle( handle ); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead [INFO] [stderr] --> src/active_window.rs:57:16 [INFO] [stderr] | [INFO] [stderr] 57 | process_id = std::mem::uninitialized(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope [INFO] [stderr] --> src/active_window.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 47 | OsString::from_wide( &title ).to_string_lossy().into_owned() [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `std::ffi::OsString` [INFO] [stderr] [INFO] [stderr] error: aborting due to 23 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `time_tracker`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "47c8a500d2b3e463de061a525e6451fb4aefee85ca9a5963ed47ea270554b29a"` [INFO] running `"docker" "rm" "-f" "47c8a500d2b3e463de061a525e6451fb4aefee85ca9a5963ed47ea270554b29a"` [INFO] [stdout] 47c8a500d2b3e463de061a525e6451fb4aefee85ca9a5963ed47ea270554b29a