[INFO] cloning repository https://github.com/tonyrubak/rudbg [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tonyrubak/rudbg" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftonyrubak%2Frudbg", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftonyrubak%2Frudbg'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 07b723dcfeae6a93989af76000f3b39e8b74d39a [INFO] checking tonyrubak/rudbg against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftonyrubak%2Frudbg" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tonyrubak/rudbg on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tonyrubak/rudbg [INFO] finished tweaking git repo https://github.com/tonyrubak/rudbg [INFO] tweaked toml for git repo https://github.com/tonyrubak/rudbg written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/tonyrubak/rudbg already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 65194b455c0519a4ed148da5baa29630fee883fd33fe6f16d8d7b9be8c578bd6 [INFO] running `Command { std: "docker" "start" "-a" "65194b455c0519a4ed148da5baa29630fee883fd33fe6f16d8d7b9be8c578bd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "65194b455c0519a4ed148da5baa29630fee883fd33fe6f16d8d7b9be8c578bd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65194b455c0519a4ed148da5baa29630fee883fd33fe6f16d8d7b9be8c578bd6", kill_on_drop: false }` [INFO] [stdout] 65194b455c0519a4ed148da5baa29630fee883fd33fe6f16d8d7b9be8c578bd6 [INFO] running `Command { std: "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" "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" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e5b3beb31911e1274e46a7b0c427a2587091f01cdfc28c32457fb0dac78eabe1 [INFO] running `Command { std: "docker" "start" "-a" "e5b3beb31911e1274e46a7b0c427a2587091f01cdfc28c32457fb0dac78eabe1", kill_on_drop: false }` [INFO] [stderr] Checking either v1.4.0 [INFO] [stderr] Checking rudbg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::slice` [INFO] [stdout] --> src/debugger.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::slice; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/debugger.rs:192:71 [INFO] [stdout] | [INFO] [stdout] 192 | status = exception_handler_single_step(&mut debugger);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/win32.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | pub const PROCESS_ALL_ACCESS: DWORD = (0x000F0000 | 0x00100000 | 0xFFF); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of calling convention not supported on this target [INFO] [stdout] --> src/win32.rs:504:1 [INFO] [stdout] | [INFO] [stdout] 504 | / extern "stdcall" { [INFO] [stdout] 505 | | pub fn CloseHandle(hObject: HANDLE) -> BOOL; [INFO] [stdout] 506 | | pub fn ContinueDebugEvent(dwProcessId: DWORD, [INFO] [stdout] 507 | | dwThreadId: DWORD, [INFO] [stdout] ... | [INFO] [stdout] 564 | | lpNumberOfBytesWritten: *mut SIZE_T) -> BOOL; [INFO] [stdout] 565 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unsupported_calling_conventions)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #00000 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice` [INFO] [stdout] --> src/debugger.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::slice; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/debugger.rs:192:71 [INFO] [stdout] | [INFO] [stdout] 192 | status = exception_handler_single_step(&mut debugger);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/win32.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | pub const PROCESS_ALL_ACCESS: DWORD = (0x000F0000 | 0x00100000 | 0xFFF); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of calling convention not supported on this target [INFO] [stdout] --> src/win32.rs:504:1 [INFO] [stdout] | [INFO] [stdout] 504 | / extern "stdcall" { [INFO] [stdout] 505 | | pub fn CloseHandle(hObject: HANDLE) -> BOOL; [INFO] [stdout] 506 | | pub fn ContinueDebugEvent(dwProcessId: DWORD, [INFO] [stdout] 507 | | dwThreadId: DWORD, [INFO] [stdout] ... | [INFO] [stdout] 564 | | lpNumberOfBytesWritten: *mut SIZE_T) -> BOOL; [INFO] [stdout] 565 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unsupported_calling_conventions)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #00000 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/debugger.rs:549:13 [INFO] [stdout] | [INFO] [stdout] 549 | let mut thread = match open_thread(thread_id) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/debugger.rs:549:13 [INFO] [stdout] | [INFO] [stdout] 549 | let mut thread = match open_thread(thread_id) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `creation_flags` [INFO] [stdout] --> src/debugger.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | creation_flags: win32::DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `startup_info` [INFO] [stdout] --> src/debugger.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | startup_info: win32::StartupInfo, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `process_info` [INFO] [stdout] --> src/debugger.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | process_info: win32::ProcessInformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `load` [INFO] [stdout] --> src/debugger.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn load(debugger: &mut Debugger, path: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_thread_context` [INFO] [stdout] --> src/debugger.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn get_thread_context(thread_id: win32::DWORD, wow64: win32::BOOL) -> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_wow64_process` [INFO] [stdout] --> src/debugger.rs:316:4 [INFO] [stdout] | [INFO] [stdout] 316 | fn is_wow64_process(debugger: &Debugger) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_process_memory` [INFO] [stdout] --> src/debugger.rs:431:4 [INFO] [stdout] | [INFO] [stdout] 431 | fn read_process_memory(debugger: &Debugger, address: win32::LPCVOID, length: usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bp_set` [INFO] [stdout] --> src/debugger.rs:474:8 [INFO] [stdout] | [INFO] [stdout] 474 | pub fn bp_set(debugger: &mut Debugger, address: win32::LPCVOID) -> win32::DWORD { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bp_set_hw` [INFO] [stdout] --> src/debugger.rs:486:8 [INFO] [stdout] | [INFO] [stdout] 486 | pub fn bp_set_hw(debugger: &mut Debugger, address: win32::LPCVOID, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `LPSECURITY_ATTRIBUTES` [INFO] [stdout] --> src/win32.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub type LPSECURITY_ATTRIBUTES = *mut raw::c_void; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `LPCTSTR` [INFO] [stdout] --> src/win32.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub type LPCTSTR = *const u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEBUG_PROCESS` [INFO] [stdout] --> src/win32.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | pub const DEBUG_PROCESS: DWORD = 0x1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CREATE_NEW_CONSOLE` [INFO] [stdout] --> src/win32.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub const CREATE_NEW_CONSOLE: DWORD = 0x10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CREATE_THREAD_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | pub const CREATE_THREAD_DEBUG_EVENT: DWORD = 0x2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CREATE_PROCESS_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | pub const CREATE_PROCESS_DEBUG_EVENT: DWORD = 0x3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EXIT_THREAD_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub const EXIT_THREAD_DEBUG_EVENT: DWORD = 0x4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EXIT_PROCESS_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | pub const EXIT_PROCESS_DEBUG_EVENT: DWORD = 0x5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `LOAD_DLL_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | pub const LOAD_DLL_DEBUG_EVENT: DWORD = 0x6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `UNLOAD_DLL_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | pub const UNLOAD_DLL_DEBUG_EVENT: DWORD = 0x7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `OUTPUT_DEBUG_STRING_EVENT` [INFO] [stdout] --> src/win32.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub const OUTPUT_DEBUG_STRING_EVENT: DWORD = 0x8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RIP_EVENT` [INFO] [stdout] --> src/win32.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | pub const RIP_EVENT: DWORD = 0x9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HW_ACCESS` [INFO] [stdout] --> src/win32.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | pub const HW_ACCESS: DWORD = 0x00000003; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HW_EXECUTE` [INFO] [stdout] --> src/win32.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | pub const HW_EXECUTE: DWORD = 0x00000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HW_WRITE` [INFO] [stdout] --> src/win32.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | pub const HW_WRITE: DWORD = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_NOACCESS` [INFO] [stdout] --> src/win32.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 77 | pub const PAGE_NOACCESS: DWORD = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_READONLY` [INFO] [stdout] --> src/win32.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | pub const PAGE_READONLY: DWORD = 0x00000002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_READWRITE` [INFO] [stdout] --> src/win32.rs:79:1 [INFO] [stdout] | [INFO] [stdout] 79 | pub const PAGE_READWRITE: DWORD = 0x00000004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_WRITECOPY` [INFO] [stdout] --> src/win32.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | pub const PAGE_WRITECOPY: DWORD = 0x00000008; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_EXECUTE` [INFO] [stdout] --> src/win32.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | pub const PAGE_EXECUTE: DWORD = 0x00000010; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_EXECUTE_READ` [INFO] [stdout] --> src/win32.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | pub const PAGE_EXECUTE_READ: DWORD = 0x00000020; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_EXECUTE_READWRITE` [INFO] [stdout] --> src/win32.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | pub const PAGE_EXECUTE_READWRITE: DWORD = 0x00000040; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_EXECUTE_WRITECOPY` [INFO] [stdout] --> src/win32.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub const PAGE_EXECUTE_WRITECOPY: DWORD = 0x00000080; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_NOCACHE` [INFO] [stdout] --> src/win32.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | pub const PAGE_NOCACHE: DWORD = 0x00000200; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_WRITECOMBINE` [INFO] [stdout] --> src/win32.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | pub const PAGE_WRITECOMBINE: DWORD = 0x00000400; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/win32.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 366 | pub fn new() -> EXCEPTION_DEBUG_INFO { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/win32.rs:385:12 [INFO] [stdout] | [INFO] [stdout] 385 | pub fn new() -> EXCEPTION_RECORD { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `SecurityAttributes` [INFO] [stdout] --> src/win32.rs:427:12 [INFO] [stdout] | [INFO] [stdout] 427 | pub struct SecurityAttributes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `CreateProcessA` [INFO] [stdout] --> src/win32.rs:509:5 [INFO] [stdout] | [INFO] [stdout] 509 | / pub fn CreateProcessA(lpApplicationName: LPCTSTR, [INFO] [stdout] 510 | | lpCommandLine: LPTSTR, [INFO] [stdout] 511 | | lpProcessAttributes: LPSECURITY_ATTRIBUTES, [INFO] [stdout] 512 | | lpThreadAttributes: LPSECURITY_ATTRIBUTES, [INFO] [stdout] ... | [INFO] [stdout] 518 | | lpProcessInformation: LPVOID [INFO] [stdout] 519 | | ) -> BOOL; [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ReadProcessMemory` [INFO] [stdout] --> src/win32.rs:539:5 [INFO] [stdout] | [INFO] [stdout] 539 | / pub fn ReadProcessMemory(hProcess: HANDLE, [INFO] [stdout] 540 | | lpBaseAddress: LPCVOID, [INFO] [stdout] 541 | | lpBuffer: LPVOID, [INFO] [stdout] 542 | | nSize: SIZE_T, [INFO] [stdout] 543 | | lpNumberOfBytesRead: *mut SIZE_T) -> BOOL; [INFO] [stdout] | |_______________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/debugger.rs:602:83 [INFO] [stdout] | [INFO] [stdout] 602 | let handle = win32::GetModuleHandleA(ffi::CString::new(dll_name).unwrap().as_ptr()); [INFO] [stdout] | ------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` 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: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `creation_flags` [INFO] [stdout] --> src/debugger.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | creation_flags: win32::DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `startup_info` [INFO] [stdout] --> src/debugger.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | startup_info: win32::StartupInfo, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/debugger.rs:603:91 [INFO] [stdout] | [INFO] [stdout] 603 | address = win32::GetProcAddress(handle, ffi::CString::new(function_name).unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` 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 `CString` 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: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `process_info` [INFO] [stdout] --> src/debugger.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | process_info: win32::ProcessInformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `load` [INFO] [stdout] --> src/debugger.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn load(debugger: &mut Debugger, path: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_thread_context` [INFO] [stdout] --> src/debugger.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn get_thread_context(thread_id: win32::DWORD, wow64: win32::BOOL) -> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_wow64_process` [INFO] [stdout] --> src/debugger.rs:316:4 [INFO] [stdout] | [INFO] [stdout] 316 | fn is_wow64_process(debugger: &Debugger) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_process_memory` [INFO] [stdout] --> src/debugger.rs:431:4 [INFO] [stdout] | [INFO] [stdout] 431 | fn read_process_memory(debugger: &Debugger, address: win32::LPCVOID, length: usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bp_set` [INFO] [stdout] --> src/debugger.rs:474:8 [INFO] [stdout] | [INFO] [stdout] 474 | pub fn bp_set(debugger: &mut Debugger, address: win32::LPCVOID) -> win32::DWORD { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bp_set_hw` [INFO] [stdout] --> src/debugger.rs:486:8 [INFO] [stdout] | [INFO] [stdout] 486 | pub fn bp_set_hw(debugger: &mut Debugger, address: win32::LPCVOID, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `LPSECURITY_ATTRIBUTES` [INFO] [stdout] --> src/win32.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub type LPSECURITY_ATTRIBUTES = *mut raw::c_void; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `LPCTSTR` [INFO] [stdout] --> src/win32.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub type LPCTSTR = *const u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEBUG_PROCESS` [INFO] [stdout] --> src/win32.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | pub const DEBUG_PROCESS: DWORD = 0x1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CREATE_NEW_CONSOLE` [INFO] [stdout] --> src/win32.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub const CREATE_NEW_CONSOLE: DWORD = 0x10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CREATE_THREAD_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | pub const CREATE_THREAD_DEBUG_EVENT: DWORD = 0x2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CREATE_PROCESS_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | pub const CREATE_PROCESS_DEBUG_EVENT: DWORD = 0x3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EXIT_THREAD_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub const EXIT_THREAD_DEBUG_EVENT: DWORD = 0x4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EXIT_PROCESS_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | pub const EXIT_PROCESS_DEBUG_EVENT: DWORD = 0x5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `LOAD_DLL_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | pub const LOAD_DLL_DEBUG_EVENT: DWORD = 0x6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `UNLOAD_DLL_DEBUG_EVENT` [INFO] [stdout] --> src/win32.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | pub const UNLOAD_DLL_DEBUG_EVENT: DWORD = 0x7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `OUTPUT_DEBUG_STRING_EVENT` [INFO] [stdout] --> src/win32.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub const OUTPUT_DEBUG_STRING_EVENT: DWORD = 0x8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RIP_EVENT` [INFO] [stdout] --> src/win32.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | pub const RIP_EVENT: DWORD = 0x9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HW_ACCESS` [INFO] [stdout] --> src/win32.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | pub const HW_ACCESS: DWORD = 0x00000003; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HW_EXECUTE` [INFO] [stdout] --> src/win32.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | pub const HW_EXECUTE: DWORD = 0x00000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HW_WRITE` [INFO] [stdout] --> src/win32.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | pub const HW_WRITE: DWORD = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_NOACCESS` [INFO] [stdout] --> src/win32.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 77 | pub const PAGE_NOACCESS: DWORD = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_READONLY` [INFO] [stdout] --> src/win32.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | pub const PAGE_READONLY: DWORD = 0x00000002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_READWRITE` [INFO] [stdout] --> src/win32.rs:79:1 [INFO] [stdout] | [INFO] [stdout] 79 | pub const PAGE_READWRITE: DWORD = 0x00000004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_WRITECOPY` [INFO] [stdout] --> src/win32.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | pub const PAGE_WRITECOPY: DWORD = 0x00000008; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_EXECUTE` [INFO] [stdout] --> src/win32.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | pub const PAGE_EXECUTE: DWORD = 0x00000010; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_EXECUTE_READ` [INFO] [stdout] --> src/win32.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | pub const PAGE_EXECUTE_READ: DWORD = 0x00000020; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_EXECUTE_READWRITE` [INFO] [stdout] --> src/win32.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | pub const PAGE_EXECUTE_READWRITE: DWORD = 0x00000040; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_EXECUTE_WRITECOPY` [INFO] [stdout] --> src/win32.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub const PAGE_EXECUTE_WRITECOPY: DWORD = 0x00000080; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_NOCACHE` [INFO] [stdout] --> src/win32.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | pub const PAGE_NOCACHE: DWORD = 0x00000200; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_WRITECOMBINE` [INFO] [stdout] --> src/win32.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | pub const PAGE_WRITECOMBINE: DWORD = 0x00000400; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/win32.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 366 | pub fn new() -> EXCEPTION_DEBUG_INFO { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/win32.rs:385:12 [INFO] [stdout] | [INFO] [stdout] 385 | pub fn new() -> EXCEPTION_RECORD { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `SecurityAttributes` [INFO] [stdout] --> src/win32.rs:427:12 [INFO] [stdout] | [INFO] [stdout] 427 | pub struct SecurityAttributes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `CreateProcessA` [INFO] [stdout] --> src/win32.rs:509:5 [INFO] [stdout] | [INFO] [stdout] 509 | / pub fn CreateProcessA(lpApplicationName: LPCTSTR, [INFO] [stdout] 510 | | lpCommandLine: LPTSTR, [INFO] [stdout] 511 | | lpProcessAttributes: LPSECURITY_ATTRIBUTES, [INFO] [stdout] 512 | | lpThreadAttributes: LPSECURITY_ATTRIBUTES, [INFO] [stdout] ... | [INFO] [stdout] 518 | | lpProcessInformation: LPVOID [INFO] [stdout] 519 | | ) -> BOOL; [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ReadProcessMemory` [INFO] [stdout] --> src/win32.rs:539:5 [INFO] [stdout] | [INFO] [stdout] 539 | / pub fn ReadProcessMemory(hProcess: HANDLE, [INFO] [stdout] 540 | | lpBaseAddress: LPCVOID, [INFO] [stdout] 541 | | lpBuffer: LPVOID, [INFO] [stdout] 542 | | nSize: SIZE_T, [INFO] [stdout] 543 | | lpNumberOfBytesRead: *mut SIZE_T) -> BOOL; [INFO] [stdout] | |_______________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/debugger.rs:602:83 [INFO] [stdout] | [INFO] [stdout] 602 | let handle = win32::GetModuleHandleA(ffi::CString::new(dll_name).unwrap().as_ptr()); [INFO] [stdout] | ------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` 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: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/debugger.rs:603:91 [INFO] [stdout] | [INFO] [stdout] 603 | address = win32::GetProcAddress(handle, ffi::CString::new(function_name).unwrap().as_ptr()); [INFO] [stdout] | ----------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` 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 `CString` 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: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ALIGNMENT`, which is not FFI-safe [INFO] [stdout] --> src/win32.rs:530:40 [INFO] [stdout] | [INFO] [stdout] 530 | ... lpContext: LPCONTEXT) -> BOOL; [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/win32.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct ALIGNMENT(pub u64, pub u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ALIGNMENT`, which is not FFI-safe [INFO] [stdout] --> src/win32.rs:530:40 [INFO] [stdout] | [INFO] [stdout] 530 | ... lpContext: LPCONTEXT) -> BOOL; [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/win32.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct ALIGNMENT(pub u64, pub u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ALIGNMENT`, which is not FFI-safe [INFO] [stdout] --> src/win32.rs:545:40 [INFO] [stdout] | [INFO] [stdout] 545 | ... lpContext: LPCONTEXT) -> BOOL; [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/win32.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct ALIGNMENT(pub u64, pub u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `ALIGNMENT`, which is not FFI-safe [INFO] [stdout] --> src/win32.rs:545:40 [INFO] [stdout] | [INFO] [stdout] 545 | ... lpContext: LPCONTEXT) -> BOOL; [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/win32.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct ALIGNMENT(pub u64, pub u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.59s [INFO] running `Command { std: "docker" "inspect" "e5b3beb31911e1274e46a7b0c427a2587091f01cdfc28c32457fb0dac78eabe1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5b3beb31911e1274e46a7b0c427a2587091f01cdfc28c32457fb0dac78eabe1", kill_on_drop: false }` [INFO] [stdout] e5b3beb31911e1274e46a7b0c427a2587091f01cdfc28c32457fb0dac78eabe1