[INFO] cloning repository https://github.com/polds/winshot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/polds/winshot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpolds%2Fwinshot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpolds%2Fwinshot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9115337c6650f33922caf73a33de51dfb44c49ef [INFO] checking polds/winshot against try#6db1a6a7ebb2ad243051f3ff949f987dd70cde2b+rustflags=-Dreturn-local-variable-ptr for pr-134218 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpolds%2Fwinshot" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/polds/winshot on toolchain 6db1a6a7ebb2ad243051f3ff949f987dd70cde2b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6db1a6a7ebb2ad243051f3ff949f987dd70cde2b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/polds/winshot [INFO] finished tweaking git repo https://github.com/polds/winshot [INFO] tweaked toml for git repo https://github.com/polds/winshot written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/polds/winshot 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" "+6db1a6a7ebb2ad243051f3ff949f987dd70cde2b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 9 packages to latest compatible versions [INFO] [stderr] Adding gdi32-sys v0.2.0 [INFO] [stderr] Adding kernel32-sys v0.1.4 (available: v0.2.2) [INFO] [stderr] Adding libc v0.1.12 (available: v0.2.168) [INFO] [stderr] Adding user32-sys v0.2.0 [INFO] [stderr] Adding winapi v0.2.8 (available: v0.3.9) [INFO] [stderr] Adding winapi v0.3.9 [INFO] [stderr] Adding winapi-build v0.1.1 [INFO] [stderr] Adding winapi-i686-pc-windows-gnu v0.4.0 [INFO] [stderr] Adding winapi-x86_64-pc-windows-gnu v0.4.0 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded kernel32-sys v0.1.4 [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+6db1a6a7ebb2ad243051f3ff949f987dd70cde2b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 40dd7a01c783f14af75a9609619d3a5dc3233e72b4eb48581d193049ddae84df [INFO] running `Command { std: "docker" "start" "-a" "40dd7a01c783f14af75a9609619d3a5dc3233e72b4eb48581d193049ddae84df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "40dd7a01c783f14af75a9609619d3a5dc3233e72b4eb48581d193049ddae84df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40dd7a01c783f14af75a9609619d3a5dc3233e72b4eb48581d193049ddae84df", kill_on_drop: false }` [INFO] [stdout] 40dd7a01c783f14af75a9609619d3a5dc3233e72b4eb48581d193049ddae84df [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 -Dreturn-local-variable-ptr" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+6db1a6a7ebb2ad243051f3ff949f987dd70cde2b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd21cb680ef5e50dbae8ee22916d99f3a981752cf1571aa40ba9da425a544a44 [INFO] running `Command { std: "docker" "start" "-a" "cd21cb680ef5e50dbae8ee22916d99f3a981752cf1571aa40ba9da425a544a44", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling user32-sys v0.2.0 [INFO] [stderr] Compiling gdi32-sys v0.2.0 [INFO] [stderr] Compiling kernel32-sys v0.1.4 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Checking winshot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::windef::HWND; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::windef::HMENU; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::windef::HBRUSH; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::minwindef::HINSTANCE; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::minwindef::UINT; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::minwindef::DWORD; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::minwindef::WPARAM; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::minwindef::LPARAM; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::minwindef::LRESULT; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::minwindef::BOOL; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winnt` [INFO] [stdout] --> src/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::winnt::LPCWSTR; [INFO] [stdout] | ^^^^^ could not find `winnt` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::winuser::WS_OVERLAPPEDWINDOW; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::winuser::WS_VISIBLE; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::winuser::WNDCLASSW; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/6db1a6a7ebb2ad243051f3ff949f987dd70cde2b/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/6db1a6a7ebb2ad243051f3ff949f987dd70cde2b/library/std/src/os/mod.rs:55:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/6db1a6a7ebb2ad243051f3ff949f987dd70cde2b/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/6db1a6a7ebb2ad243051f3ff949f987dd70cde2b/library/std/src/os/mod.rs:120:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::winuser::CF_BITMAP; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::windef::HWND; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | use winapi::winuser::*; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::windef::HMENU; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::windef::HBRUSH; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::minwindef::HINSTANCE; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::minwindef::UINT; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::minwindef::DWORD; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::minwindef::WPARAM; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::minwindef::LPARAM; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::minwindef::LRESULT; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::minwindef::BOOL; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winnt` [INFO] [stdout] --> src/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::winnt::LPCWSTR; [INFO] [stdout] | ^^^^^ could not find `winnt` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::winuser::WS_OVERLAPPEDWINDOW; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::winuser::WS_VISIBLE; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::winuser::WNDCLASSW; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/6db1a6a7ebb2ad243051f3ff949f987dd70cde2b/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/6db1a6a7ebb2ad243051f3ff949f987dd70cde2b/library/std/src/os/mod.rs:55:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/6db1a6a7ebb2ad243051f3ff949f987dd70cde2b/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/6db1a6a7ebb2ad243051f3ff949f987dd70cde2b/library/std/src/os/mod.rs:120:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::winuser::CF_BITMAP; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | use winapi::winuser::*; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:41:36 [INFO] [stdout] | [INFO] [stdout] 41 | let v: Vec = OsStr::new(str).encode_wide() . chain(Some(0).into_iter()).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `winshot` (bin "winshot") due to 18 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:41:36 [INFO] [stdout] | [INFO] [stdout] 41 | let v: Vec = OsStr::new(str).encode_wide() . chain(Some(0).into_iter()).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `winshot` (bin "winshot" test) due to 18 previous errors [INFO] running `Command { std: "docker" "inspect" "cd21cb680ef5e50dbae8ee22916d99f3a981752cf1571aa40ba9da425a544a44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd21cb680ef5e50dbae8ee22916d99f3a981752cf1571aa40ba9da425a544a44", kill_on_drop: false }` [INFO] [stdout] cd21cb680ef5e50dbae8ee22916d99f3a981752cf1571aa40ba9da425a544a44