[INFO] updating cached repository https://github.com/hummingly/rust-winapi-example [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] cb77baf640c5c2631bddfb65fdd4f33a436489b3 [INFO] checking hummingly/rust-winapi-example against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhummingly%2Frust-winapi-example" "/workspace/builds/worker-5/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hummingly/rust-winapi-example on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/hummingly/rust-winapi-example [INFO] finished tweaking git repo https://github.com/hummingly/rust-winapi-example [INFO] tweaked toml for git repo https://github.com/hummingly/rust-winapi-example written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/hummingly/rust-winapi-example already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=forbid" "-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" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3708c966a0ffc2241c952706fe2e8d1e68e35a71f72d92582668d8a8fc5a6cfd [INFO] running `"docker" "start" "-a" "3708c966a0ffc2241c952706fe2e8d1e68e35a71f72d92582668d8a8fc5a6cfd"` [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling gdi32-sys v0.2.0 [INFO] [stderr] Compiling user32-sys v0.2.0 [INFO] [stderr] Checking window v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved imports `user32::AppendMenuW`, `user32::CreateMenu`, `user32::CreatePopupMenu` [INFO] [stderr] --> src/menu.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use user32::{AppendMenuW, CreateMenu, CreatePopupMenu}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^ no `CreatePopupMenu` in the root [INFO] [stderr] | | | [INFO] [stderr] | | no `CreateMenu` in the root [INFO] [stderr] | no `AppendMenuW` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::windef` [INFO] [stderr] --> src/menu.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | use winapi::windef::HMENU; [INFO] [stderr] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stderr] --> src/menu.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::minwindef::WPARAM; [INFO] [stderr] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/utility.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/menu.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::winuser::{MF_POPUP, MF_SEPARATOR, MF_STRING}; [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `kernel32::GetLastError` [INFO] [stderr] --> src/utility.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use kernel32::GetLastError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ no `GetLastError` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `user32::MessageBoxW` [INFO] [stderr] --> src/utility.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use user32::MessageBoxW; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `MessageBoxW` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/utility.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::winuser::MB_OK; [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `gdi32::GetStockObject` [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use gdi32::GetStockObject; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ no `GetStockObject` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `user32::CreateMenu`, `user32::CreateWindowExW`, `user32::MessageBoxW`, `user32::RegisterClassW`, `user32::ShowWindow`, `user32::UpdateWindow` [INFO] [stderr] --> src/main.rs:17:14 [INFO] [stderr] | [INFO] [stderr] 17 | use user32::{CreateMenu, CreateWindowExW, MessageBoxW, RegisterClassW, ShowWindow, UpdateWindow}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ no `UpdateWindow` in the root [INFO] [stderr] | | | | | | [INFO] [stderr] | | | | | no `ShowWindow` in the root [INFO] [stderr] | | | | no `RegisterClassW` in the root [INFO] [stderr] | | | no `MessageBoxW` in the root [INFO] [stderr] | | no `CreateWindowExW` in the root [INFO] [stderr] | no `CreateMenu` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `user32::DispatchMessageW`, `user32::GetMessageW`, `user32::PostQuitMessage`, `user32::SendMessageW`, `user32::TranslateMessage` [INFO] [stderr] --> src/main.rs:18:14 [INFO] [stderr] | [INFO] [stderr] 18 | use user32::{DispatchMessageW, GetMessageW, PostQuitMessage, SendMessageW, TranslateMessage}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ no `TranslateMessage` in the root [INFO] [stderr] | | | | | [INFO] [stderr] | | | | no `SendMessageW` in the root [INFO] [stderr] | | | no `PostQuitMessage` in the root [INFO] [stderr] | | no `GetMessageW` in the root [INFO] [stderr] | no `DispatchMessageW` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `user32::DefWindowProcW`, `user32::DestroyWindow`, `user32::FindWindowExW`, `user32::GetClientRect`, `user32::MoveWindow`, `user32::SetWindowPos` [INFO] [stderr] --> src/main.rs:19:14 [INFO] [stderr] | [INFO] [stderr] 19 | use user32::{DefWindowProcW, DestroyWindow, FindWindowExW, GetClientRect, MoveWindow, SetWindowPos}; [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ no `SetWindowPos` in the root [INFO] [stderr] | | | | | | [INFO] [stderr] | | | | | no `MoveWindow` in the root [INFO] [stderr] | | | | no `GetClientRect` in the root [INFO] [stderr] | | | no `FindWindowExW` in the root [INFO] [stderr] | | no `DestroyWindow` in the root [INFO] [stderr] | no `DefWindowProcW` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stderr] --> src/main.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | use winapi::minwindef::{HINSTANCE, LPARAM, LRESULT, TRUE, UINT, WPARAM}; [INFO] [stderr] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::windef` [INFO] [stderr] --> src/main.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | use winapi::windef::{HCURSOR, HFONT, HICON, HWND, POINT, RECT}; [INFO] [stderr] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::wingdi` [INFO] [stderr] --> src/main.rs:23:13 [INFO] [stderr] | [INFO] [stderr] 23 | use winapi::wingdi::DEFAULT_GUI_FONT; [INFO] [stderr] | ^^^^^^ could not find `wingdi` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/main.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | use winapi::winuser::{MB_YESNO, MSG, WNDCLASSW}; [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/main.rs:25:13 [INFO] [stderr] | [INFO] [stderr] 25 | use winapi::winuser::{CS_HREDRAW, CS_VREDRAW, CW_USEDEFAULT, ES_AUTOVSCROLL, ES_MULTILINE, [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/main.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | use winapi::winuser::{SWP_NOZORDER, SW_SHOWDEFAULT, WM_CLOSE, WM_COMMAND, WM_COPY, WM_CREATE, [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `user32::AppendMenuW`, `user32::CreateMenu`, `user32::CreatePopupMenu` [INFO] [stderr] --> src/menu.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use user32::{AppendMenuW, CreateMenu, CreatePopupMenu}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^ no `CreatePopupMenu` in the root [INFO] [stderr] | | | [INFO] [stderr] | | no `CreateMenu` in the root [INFO] [stderr] | no `AppendMenuW` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::windef` [INFO] [stderr] --> src/menu.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | use winapi::windef::HMENU; [INFO] [stderr] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stderr] --> src/menu.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::minwindef::WPARAM; [INFO] [stderr] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/utility.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/menu.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::winuser::{MF_POPUP, MF_SEPARATOR, MF_STRING}; [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `kernel32::GetLastError` [INFO] [stderr] --> src/utility.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use kernel32::GetLastError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ no `GetLastError` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `user32::MessageBoxW` [INFO] [stderr] --> src/utility.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use user32::MessageBoxW; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `MessageBoxW` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/utility.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::winuser::MB_OK; [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `gdi32::GetStockObject` [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use gdi32::GetStockObject; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ no `GetStockObject` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `user32::CreateMenu`, `user32::CreateWindowExW`, `user32::MessageBoxW`, `user32::RegisterClassW`, `user32::ShowWindow`, `user32::UpdateWindow` [INFO] [stderr] --> src/main.rs:17:14 [INFO] [stderr] | [INFO] [stderr] 17 | use user32::{CreateMenu, CreateWindowExW, MessageBoxW, RegisterClassW, ShowWindow, UpdateWindow}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ no `UpdateWindow` in the root [INFO] [stderr] | | | | | | [INFO] [stderr] | | | | | no `ShowWindow` in the root [INFO] [stderr] | | | | no `RegisterClassW` in the root [INFO] [stderr] | | | no `MessageBoxW` in the root [INFO] [stderr] | | no `CreateWindowExW` in the root [INFO] [stderr] | no `CreateMenu` in the root [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `encode_wide` found for reference `&std::ffi::OsStr` in the current scope [INFO] [stderr] --> src/utility.rs:11:23 [INFO] [stderr] | [INFO] [stderr] 11 | OsStr::new(value).encode_wide().chain(once(0)).collect() [INFO] [stderr] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `user32::DispatchMessageW`, `user32::GetMessageW`, `user32::PostQuitMessage`, `user32::SendMessageW`, `user32::TranslateMessage` [INFO] [stderr] --> src/main.rs:18:14 [INFO] [stderr] | [INFO] [stderr] 18 | use user32::{DispatchMessageW, GetMessageW, PostQuitMessage, SendMessageW, TranslateMessage}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ no `TranslateMessage` in the root [INFO] [stderr] | | | | | [INFO] [stderr] | | | | no `SendMessageW` in the root [INFO] [stderr] | | | no `PostQuitMessage` in the root [INFO] [stderr] | | no `GetMessageW` in the root [INFO] [stderr] | no `DispatchMessageW` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `user32::DefWindowProcW`, `user32::DestroyWindow`, `user32::FindWindowExW`, `user32::GetClientRect`, `user32::MoveWindow`, `user32::SetWindowPos` [INFO] [stderr] --> src/main.rs:19:14 [INFO] [stderr] | [INFO] [stderr] 19 | use user32::{DefWindowProcW, DestroyWindow, FindWindowExW, GetClientRect, MoveWindow, SetWindowPos}; [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ no `SetWindowPos` in the root [INFO] [stderr] | | | | | | [INFO] [stderr] | | | | | no `MoveWindow` in the root [INFO] [stderr] | | | | no `GetClientRect` in the root [INFO] [stderr] | | | no `FindWindowExW` in the root [INFO] [stderr] | | no `DestroyWindow` in the root [INFO] [stderr] | no `DefWindowProcW` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stderr] --> src/main.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | use winapi::minwindef::{HINSTANCE, LPARAM, LRESULT, TRUE, UINT, WPARAM}; [INFO] [stderr] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::windef` [INFO] [stderr] --> src/main.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | use winapi::windef::{HCURSOR, HFONT, HICON, HWND, POINT, RECT}; [INFO] [stderr] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::wingdi` [INFO] [stderr] --> src/main.rs:23:13 [INFO] [stderr] | [INFO] [stderr] 23 | use winapi::wingdi::DEFAULT_GUI_FONT; [INFO] [stderr] | ^^^^^^ could not find `wingdi` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/main.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | use winapi::winuser::{MB_YESNO, MSG, WNDCLASSW}; [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/main.rs:25:13 [INFO] [stderr] | [INFO] [stderr] 25 | use winapi::winuser::{CS_HREDRAW, CS_VREDRAW, CW_USEDEFAULT, ES_AUTOVSCROLL, ES_MULTILINE, [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/main.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | use winapi::winuser::{SWP_NOZORDER, SW_SHOWDEFAULT, WM_CLOSE, WM_COMMAND, WM_COPY, WM_CREATE, [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error: aborting due to 19 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `window`. [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] [stderr] error[E0599]: no method named `encode_wide` found for reference `&std::ffi::OsStr` in the current scope [INFO] [stderr] --> src/utility.rs:11:23 [INFO] [stderr] | [INFO] [stderr] 11 | OsStr::new(value).encode_wide().chain(once(0)).collect() [INFO] [stderr] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stderr] [INFO] [stderr] error: aborting due to 19 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `window`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "3708c966a0ffc2241c952706fe2e8d1e68e35a71f72d92582668d8a8fc5a6cfd"` [INFO] running `"docker" "rm" "-f" "3708c966a0ffc2241c952706fe2e8d1e68e35a71f72d92582668d8a8fc5a6cfd"` [INFO] [stdout] 3708c966a0ffc2241c952706fe2e8d1e68e35a71f72d92582668d8a8fc5a6cfd