[INFO] cloning repository https://github.com/CrzPhil/tokenstealer-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CrzPhil/tokenstealer-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCrzPhil%2Ftokenstealer-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCrzPhil%2Ftokenstealer-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b88b981486245ce5e2b8827545a6c93881eb21a6
[INFO] testing CrzPhil/tokenstealer-rs against try#9f93af291970322f4f1c6315ccde4d7078201159 for pr-146098-6
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCrzPhil%2Ftokenstealer-rs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/CrzPhil/tokenstealer-rs
[INFO] finished tweaking git repo https://github.com/CrzPhil/tokenstealer-rs
[INFO] tweaked toml for git repo https://github.com/CrzPhil/tokenstealer-rs written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/CrzPhil/tokenstealer-rs on toolchain 9f93af291970322f4f1c6315ccde4d7078201159
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/CrzPhil/tokenstealer-rs 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" "+9f93af291970322f4f1c6315ccde4d7078201159" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+9f93af291970322f4f1c6315ccde4d7078201159" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 44eb3c0844e3f97924a134e686ab2e68d175ecbfd891b9a5b9d903acf81930c3
[INFO] running `Command { std: "docker" "start" "-a" "44eb3c0844e3f97924a134e686ab2e68d175ecbfd891b9a5b9d903acf81930c3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "44eb3c0844e3f97924a134e686ab2e68d175ecbfd891b9a5b9d903acf81930c3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "44eb3c0844e3f97924a134e686ab2e68d175ecbfd891b9a5b9d903acf81930c3", kill_on_drop: false }`
[INFO] [stdout] 44eb3c0844e3f97924a134e686ab2e68d175ecbfd891b9a5b9d903acf81930c3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+9f93af291970322f4f1c6315ccde4d7078201159" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7d3fdf4f06a2dbc7f26b4e4dd4fdd5ecae79f23a8474ffac0237f92233d9271d
[INFO] running `Command { std: "docker" "start" "-a" "7d3fdf4f06a2dbc7f26b4e4dd4fdd5ecae79f23a8474ffac0237f92233d9271d", kill_on_drop: false }`
[INFO] [stderr]    Compiling windows_x86_64_gnu v0.52.6
[INFO] [stderr]    Compiling windows-targets v0.52.6
[INFO] [stderr]    Compiling windows-sys v0.59.0
[INFO] [stderr]    Compiling stealtoken-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: a dangling pointer will be produced because the temporary `Vec<u16>` will be dropped
[INFO] [stdout]   --> src/main.rs:70:81
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let appname: PCWSTR = "calc.exe\0".encode_utf16().collect::<Vec<u16>>().as_ptr();
[INFO] [stdout]    |                               ------------------------------------------------- ^^^^^^ this pointer will immediately be invalid
[INFO] [stdout]    |                               |
[INFO] [stdout]    |                               this `Vec<u16>` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]    |
[INFO] [stdout]    = note: pointers do not have a lifetime; when calling `as_ptr` the `Vec<u16>` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]    = help: you must make sure that the variable you bind the `Vec<u16>` to lives at least as long as the pointer returned by the call to `as_ptr`
[INFO] [stdout]    = help: in particular, if this pointer is returned from the current function, binding the `Vec<u16>` inside the function will not suffice
[INFO] [stdout]    = help: for more information, see <https://doc.rust-lang.org/reference/destructors.html>
[INFO] [stdout]    = note: `#[warn(dangling_pointers_from_temporaries)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: linking with `cc` failed: exit status: 1
[INFO] [stdout]   |
[INFO] [stdout]   = note:  "cc" "-m64" "/tmp/rustctfBIil/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libwindows_sys-fdab90849bf43d17,libwindows_targets-7cf54f82ed486ad1}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustctfBIil/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/windows_x86_64_gnu-0.52.6/lib" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/stealtoken_rs-98eebfac72e24811" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
[INFO] [stdout]   = note: some arguments are omitted. use `--verbose` to show all linker arguments
[INFO] [stdout]   = note: rust-lld: error: undefined symbol: GetLastError
[INFO] [stdout]           >>> referenced by main.rs:125 (src/main.rs:125)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/stealtoken_rs-98eebfac72e24811.stealtoken_rs.5bb184867824a18b-cgu.0.rcgu.o:(stealtoken_rs::print_last_error::h2e69437dc624981e)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: FormatMessageW
[INFO] [stdout]           >>> referenced by main.rs:127 (src/main.rs:127)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/stealtoken_rs-98eebfac72e24811.stealtoken_rs.5bb184867824a18b-cgu.0.rcgu.o:(stealtoken_rs::print_last_error::h2e69437dc624981e)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: OpenProcess
[INFO] [stdout]           >>> referenced by main.rs:36 (src/main.rs:36)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/stealtoken_rs-98eebfac72e24811.stealtoken_rs.5bb184867824a18b-cgu.0.rcgu.o:(stealtoken_rs::main::h57b2bc7bc27b7012)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: OpenProcessToken
[INFO] [stdout]           >>> referenced by main.rs:48 (src/main.rs:48)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/stealtoken_rs-98eebfac72e24811.stealtoken_rs.5bb184867824a18b-cgu.0.rcgu.o:(stealtoken_rs::main::h57b2bc7bc27b7012)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: DuplicateTokenEx
[INFO] [stdout]           >>> referenced by main.rs:63 (src/main.rs:63)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/stealtoken_rs-98eebfac72e24811.stealtoken_rs.5bb184867824a18b-cgu.0.rcgu.o:(stealtoken_rs::main::h57b2bc7bc27b7012)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: CreateProcessWithTokenW
[INFO] [stdout]           >>> referenced by main.rs:76 (src/main.rs:76)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/stealtoken_rs-98eebfac72e24811.stealtoken_rs.5bb184867824a18b-cgu.0.rcgu.o:(stealtoken_rs::main::h57b2bc7bc27b7012)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: CloseHandle
[INFO] [stdout]           >>> referenced by main.rs:94 (src/main.rs:94)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/stealtoken_rs-98eebfac72e24811.stealtoken_rs.5bb184867824a18b-cgu.0.rcgu.o:(stealtoken_rs::main::h57b2bc7bc27b7012)
[INFO] [stdout]           >>> referenced by main.rs:99 (src/main.rs:99)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/stealtoken_rs-98eebfac72e24811.stealtoken_rs.5bb184867824a18b-cgu.0.rcgu.o:(stealtoken_rs::main::h57b2bc7bc27b7012)
[INFO] [stdout]           >>> referenced by main.rs:104 (src/main.rs:104)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/stealtoken_rs-98eebfac72e24811.stealtoken_rs.5bb184867824a18b-cgu.0.rcgu.o:(stealtoken_rs::main::h57b2bc7bc27b7012)
[INFO] [stdout]           >>> referenced 2 more times
[INFO] [stdout]           collect2: error: ld returned 1 exit status
[INFO] [stdout]           
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `stealtoken-rs` (bin "stealtoken-rs") due to 1 previous error; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "7d3fdf4f06a2dbc7f26b4e4dd4fdd5ecae79f23a8474ffac0237f92233d9271d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7d3fdf4f06a2dbc7f26b4e4dd4fdd5ecae79f23a8474ffac0237f92233d9271d", kill_on_drop: false }`
[INFO] [stdout] 7d3fdf4f06a2dbc7f26b4e4dd4fdd5ecae79f23a8474ffac0237f92233d9271d
