[INFO] cloning repository https://github.com/rondreas/rusty-hero [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rondreas/rusty-hero" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frondreas%2Frusty-hero", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frondreas%2Frusty-hero'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8aa7f460114dd2a514323337d8c1fe0681f1b389 [INFO] checking rondreas/rusty-hero against try#0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9 for pr-147185 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frondreas%2Frusty-hero" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rondreas/rusty-hero [INFO] finished tweaking git repo https://github.com/rondreas/rusty-hero [INFO] tweaked toml for git repo https://github.com/rondreas/rusty-hero written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rondreas/rusty-hero on toolchain 0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rondreas/rusty-hero 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" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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 [ERROR] error running command: no output for 300 seconds [INFO] checking rondreas/rusty-hero against try#0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9 for pr-147185 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frondreas%2Frusty-hero" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rondreas/rusty-hero [INFO] finished tweaking git repo https://github.com/rondreas/rusty-hero [INFO] tweaked toml for git repo https://github.com/rondreas/rusty-hero written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rondreas/rusty-hero on toolchain 0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rondreas/rusty-hero 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" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows_macros v0.21.1 [INFO] [stderr] Downloaded windows_gen v0.21.1 [INFO] [stderr] Downloaded windows_quote v0.21.1 [INFO] [stderr] Downloaded const-sha1 v0.2.0 [INFO] [stderr] Downloaded windows v0.21.1 [INFO] [stderr] Downloaded syn v1.0.80 [INFO] [stderr] Downloaded windows_reader v0.21.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b98147e9fb24430eb2ef076c9f35f1f74bdc858a356c115cc6cf2917fc9a000a [INFO] running `Command { std: "docker" "start" "-a" "b98147e9fb24430eb2ef076c9f35f1f74bdc858a356c115cc6cf2917fc9a000a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b98147e9fb24430eb2ef076c9f35f1f74bdc858a356c115cc6cf2917fc9a000a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b98147e9fb24430eb2ef076c9f35f1f74bdc858a356c115cc6cf2917fc9a000a", kill_on_drop: false }` [INFO] [stdout] b98147e9fb24430eb2ef076c9f35f1f74bdc858a356c115cc6cf2917fc9a000a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0de49ae9e81f9a1e7df6f0783824ce94ed18e8a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9dd20c18b03e5a85c72cd69709c9f02f5f6b5f349234778dd929695c95702b49 [INFO] running `Command { std: "docker" "start" "-a" "9dd20c18b03e5a85c72cd69709c9f02f5f6b5f349234778dd929695c95702b49", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling syn v1.0.80 [INFO] [stderr] Compiling windows_reader v0.21.1 [INFO] [stderr] Compiling windows_quote v0.21.1 [INFO] [stderr] Compiling const-sha1 v0.2.0 [INFO] [stderr] Checking windows_gen v0.21.1 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling windows_macros v0.21.1 [INFO] [stderr] Compiling windows v0.21.1 [INFO] [stderr] Compiling bindings v0.1.0 (/opt/rustwide/workdir/bindings) [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> /opt/rustwide/target/debug/build/bindings-e7acc067a84cc83b/out/windows.rs:1:5556 [INFO] [stdout] | [INFO] [stdout] 1 | ...aram { if ! value . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: Into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1 | # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Windows { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Win32 { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Foundation { # [ repr ( transparent ) ] # [ derive ( :: std :: default :: Default , :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct BOOL ( pub i32 ) ; unsafe impl :: windows :: Abi for BOOL { type Abi = Self ; type DefaultType = Self ; } impl BOOL { # [ inline ] pub fn as_bool ( self ) -> bool { ! ( self . 0 == 0 ) } # [ inline ] pub fn ok ( self ) -> :: windows :: Result < ( ) > { if self . as_bool ( ) { Ok ( ( ) ) } else { Err ( :: windows :: Error :: from_win32 ( ) ) } } # [ inline ] # [ track_caller ] pub fn unwrap ( self ) { self . ok ( ) . unwrap ( ) ; } # [ inline ] # [ track_caller ] pub fn expect ( self , msg : & str ) { self . ok ( ) . expect ( msg ) ; } } impl :: std :: convert :: From < BOOL > for bool { fn from ( value : BOOL ) -> Self { value . as_bool ( ) } } impl :: std :: convert :: From < & BOOL > for bool { fn from ( value : & BOOL ) -> Self { value . as_bool ( ) } } impl :: std :: convert :: From < bool > for BOOL { fn from ( value : bool ) -> Self { if value { BOOL ( 1 ) } else { BOOL ( 0 ) } } } impl :: std :: convert :: From < & bool > for BOOL { fn from ( value : & bool ) -> Self { ( * value ) . into ( ) } } impl :: std :: cmp :: PartialEq < bool > for BOOL { fn eq ( & self , other : & bool ) -> bool { self . as_bool ( ) == * other } } impl :: std :: cmp :: PartialEq < BOOL > for bool { fn eq ( & self , other : & BOOL ) -> bool { * self == other . as_bool ( ) } } impl std :: ops :: Not for BOOL { type Output = Self ; fn not ( self ) -> Self :: Output { if self . as_bool ( ) { BOOL ( 0 ) } else { BOOL ( 1 ) } } } impl < 'a > :: windows :: IntoParam < 'a , BOOL > for bool { fn into_param ( self ) -> :: windows :: Param < 'a , BOOL > { :: windows :: Param :: Owned ( self . into ( ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HINSTANCE ( pub isize ) ; impl :: std :: default :: Default for HINSTANCE { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for HINSTANCE { } unsafe impl :: windows :: Abi for HINSTANCE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HWND ( pub isize ) ; impl :: std :: default :: Default for HWND { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for HWND { } unsafe impl :: windows :: Abi for HWND { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct LPARAM ( pub isize ) ; impl :: std :: default :: Default for LPARAM { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for LPARAM { } unsafe impl :: windows :: Abi for LPARAM { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct LRESULT ( pub i32 ) ; impl :: std :: default :: Default for LRESULT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for LRESULT { } unsafe impl :: windows :: Abi for LRESULT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct POINT { pub x : i32 , pub y : i32 } impl POINT { } impl :: std :: default :: Default for POINT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for POINT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "POINT" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for POINT { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for POINT { } unsafe impl :: windows :: Abi for POINT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct PSTR ( pub * mut u8 ) ; impl PSTR { pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } unsafe impl :: windows :: Abi for PSTR { type Abi = Self ; type DefaultType = Self ; unsafe fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . is_null ( ) { unsafe { let _ = :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for & str { fn into_param ( self ) -> :: windows :: Param < 'a , PSTR > { :: windows :: Param :: Boxed ( PSTR ( :: std :: boxed :: Box :: < [ u8 ] > :: into_raw ( self . bytes ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u8 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for String { fn into_param ( self ) -> :: windows :: Param < 'a , PSTR > { :: windows :: Param :: Boxed ( PSTR ( :: std :: boxed :: Box :: < [ u8 ] > :: into_raw ( self . bytes ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u8 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct RECT { pub left : i32 , pub top : i32 , pub right : i32 , pub bottom : i32 } impl RECT { } impl :: std :: default :: Default for RECT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for RECT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "RECT" ) . field ( "left" , & self . left ) . field ( "top" , & self . top ) . field ( "right" , & self . right ) . field ( "bottom" , & self . bottom ) . finish ( ) } } impl :: std :: cmp :: PartialEq for RECT { fn eq ( & self , other : & Self ) -> bool { self . left == other . left && self . top == other . top && self . right == other . right && self . bottom == other . bottom } } impl :: std :: cmp :: Eq for RECT { } unsafe impl :: windows :: Abi for RECT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct WPARAM ( pub usize ) ; impl :: std :: default :: Default for WPARAM { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for WPARAM { } unsafe impl :: windows :: Abi for WPARAM { type Abi = Self ; type DefaultType = Self ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Graphics { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Gdi { pub unsafe fn BeginPaint < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , > ( hwnd : Param0 , lppaint : * mut PAINTSTRUCT , ) -> HDC { # [ cfg ( windows ) ] { # [ link ( name ="user32" ) ] extern "system" { fn BeginPaint ( hwnd : super::super::Foundation:: HWND , lppaint : * mut PAINTSTRUCT ) -> HDC ; } :: std :: mem :: transmute ( BeginPaint ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lppaint ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndPaint < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , > ( hwnd : Param0 , lppaint : * const PAINTSTRUCT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="user32" ) ] extern "system" { fn EndPaint ( hwnd : super::super::Foundation:: HWND , lppaint : * const PAINTSTRUCT ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EndPaint ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lppaint ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HBRUSH ( pub isize ) ; impl :: std :: default :: Default for HBRUSH { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for HBRUSH { } unsafe impl :: windows :: Abi for HBRUSH { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HGDIOBJ > for HBRUSH { fn into_param ( self ) -> :: windows :: Param < 'a , HGDIOBJ > { :: windows :: Param :: Owned ( HGDIOBJ ( self . 0 ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HDC ( pub isize ) ; impl :: std :: default :: Default for HDC { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for HDC { } unsafe impl :: windows :: Abi for HDC { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HGDIOBJ ( pub isize ) ; impl :: std :: default :: Default for HGDIOBJ { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for HGDIOBJ { } unsafe impl :: windows :: Abi for HGDIOBJ { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct PAINTSTRUCT { pub hdc : HDC , pub fErase : super::super::Foundation:: BOOL , pub rcPaint : super::super::Foundation:: RECT , pub fRestore : super::super::Foundation:: BOOL , pub fIncUpdate : super::super::Foundation:: BOOL , pub rgbReserved : [ u8 ;32 ] } impl PAINTSTRUCT { } impl :: std :: default :: Default for PAINTSTRUCT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for PAINTSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PAINTSTRUCT" ) . field ( "hdc" , & self . hdc ) . field ( "fErase" , & self . fErase ) . field ( "rcPaint" , & self . rcPaint ) . field ( "fRestore" , & self . fRestore ) . field ( "fIncUpdate" , & self . fIncUpdate ) . field ( "rgbReserved" , & self . rgbReserved ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PAINTSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hdc == other . hdc && self . fErase == other . fErase && self . rcPaint == other . rcPaint && self . fRestore == other . fRestore && self . fIncUpdate == other . fIncUpdate && self . rgbReserved == other . rgbReserved } } impl :: std :: cmp :: Eq for PAINTSTRUCT { } unsafe impl :: windows :: Abi for PAINTSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn PatBlt < 'a , Param0 : :: windows :: IntoParam < 'a , HDC > , > ( hdc : Param0 , x : i32 , y : i32 , w : i32 , h : i32 , rop : ROP_CODE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="gdi32" ) ] extern "system" { fn PatBlt ( hdc : HDC , x : i32 , y : i32 , w : i32 , h : i32 , rop : ROP_CODE ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( PatBlt ( hdc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( w ) , :: std :: mem :: transmute ( h ) , :: std :: mem :: transmute ( rop ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct ROP_CODE ( pub u32 ) ; pub const SRCCOPY : ROP_CODE = ROP_CODE ( 13369376u32 ) ; pub const SRCPAINT : ROP_CODE = ROP_CODE ( 15597702u32 ) ; pub const SRCAND : ROP_CODE = ROP_CODE ( 8913094u32 ) ; pub const SRCINVERT : ROP_CODE = ROP_CODE ( 6684742u32 ) ; pub const SRCERASE : ROP_CODE = ROP_CODE ( 4457256u32 ) ; pub const NOTSRCCOPY : ROP_CODE = ROP_CODE ( 3342344u32 ) ; pub const NOTSRCERASE : ROP_CODE = ROP_CODE ( 1114278u32 ) ; pub const MERGECOPY : ROP_CODE = ROP_CODE ( 12583114u32 ) ; pub const MERGEPAINT : ROP_CODE = ROP_CODE ( 12255782u32 ) ; pub const PATCOPY : ROP_CODE = ROP_CODE ( 15728673u32 ) ; pub const PATPAINT : ROP_CODE = ROP_CODE ( 16452105u32 ) ; pub const PATINVERT : ROP_CODE = ROP_CODE ( 5898313u32 ) ; pub const DSTINVERT : ROP_CODE = ROP_CODE ( 5570569u32 ) ; pub const BLACKNESS : ROP_CODE = ROP_CODE ( 66u32 ) ; pub const WHITENESS : ROP_CODE = ROP_CODE ( 16711778u32 ) ; pub const NOMIRRORBITMAP : ROP_CODE = ROP_CODE ( 2147483648u32 ) ; pub const CAPTUREBLT : ROP_CODE = ROP_CODE ( 1073741824u32 ) ; impl :: std :: convert :: From < u32 > for ROP_CODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for ROP_CODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for ROP_CODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for ROP_CODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for ROP_CODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for ROP_CODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for ROP_CODE { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod System { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod LibraryLoader { pub unsafe fn GetModuleHandleA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( lpmodulename : Param0 , ) -> super::super::Foundation:: HINSTANCE { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn GetModuleHandleA ( lpmodulename : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HINSTANCE ; } :: std :: mem :: transmute ( GetModuleHandleA ( lpmodulename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod UI { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod WindowsAndMessaging { pub const CW_USEDEFAULT : i32 = -2147483648i32 ; pub unsafe fn CreateWindowExA < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , Param8 : :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , Param9 : :: windows :: IntoParam < 'a , HMENU > , Param10 : :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , > ( dwexstyle : WINDOW_EX_STYLE , lpclassname : Param1 , lpwindowname : Param2 , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : Param8 , hmenu : Param9 , hinstance : Param10 , lpparam : * const :: std :: ffi :: c_void , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="user32" ) ] extern "system" { fn CreateWindowExA ( dwexstyle : WINDOW_EX_STYLE , lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hmenu : HMENU , hinstance : super::super::Foundation:: HINSTANCE , lpparam : * const :: std :: ffi :: c_void ) -> super::super::Foundation:: HWND ; } :: std :: mem :: transmute ( CreateWindowExA ( :: std :: mem :: transmute ( dwexstyle ) , lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpparam ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefWindowProcA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , Param3 : :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , > ( hwnd : Param0 , msg : u32 , wparam : Param2 , lparam : Param3 , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="user32" ) ] extern "system" { fn DefWindowProcA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } :: std :: mem :: transmute ( DefWindowProcA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyWindow < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , > ( hwnd : Param0 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="user32" ) ] extern "system" { fn DestroyWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( DestroyWindow ( hwnd . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DispatchMessageA < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="user32" ) ] extern "system" { fn DispatchMessageA ( lpmsg : * const MSG ) -> super::super::Foundation:: LRESULT ; } :: std :: mem :: transmute ( DispatchMessageA ( :: std :: mem :: transmute ( lpmsg ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageA < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , > ( lpmsg : * mut MSG , hwnd : Param1 , wmsgfiltermin : u32 , wmsgfiltermax : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="user32" ) ] extern "system" { fn GetMessageA ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( GetMessageA ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HCURSOR ( pub isize ) ; impl :: std :: default :: Default for HCURSOR { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for HCURSOR { } unsafe impl :: windows :: Abi for HCURSOR { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HICON > for HCURSOR { fn into_param ( self ) -> :: windows :: Param < 'a , HICON > { :: windows :: Param :: Owned ( HICON ( self . 0 ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HICON ( pub isize ) ; impl :: std :: default :: Default for HICON { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for HICON { } unsafe impl :: windows :: Abi for HICON { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HMENU ( pub isize ) ; impl :: std :: default :: Default for HMENU { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for HMENU { } unsafe impl :: windows :: Abi for HMENU { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MSG { pub hwnd : super::super::Foundation:: HWND , pub message : u32 , pub wParam : super::super::Foundation:: WPARAM , pub lParam : super::super::Foundation:: LPARAM , pub time : u32 , pub pt : super::super::Foundation:: POINT } impl MSG { } impl :: std :: default :: Default for MSG { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for MSG { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSG" ) . field ( "hwnd" , & self . hwnd ) . field ( "message" , & self . message ) . field ( "wParam" , & self . wParam ) . field ( "lParam" , & self . lParam ) . field ( "time" , & self . time ) . field ( "pt" , & self . pt ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSG { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . message == other . message && self . wParam == other . wParam && self . lParam == other . lParam && self . time == other . time && self . pt == other . pt } } impl :: std :: cmp :: Eq for MSG { } unsafe impl :: windows :: Abi for MSG { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn PostQuitMessage < > ( nexitcode : i32 , ) { # [ cfg ( windows ) ] { # [ link ( name ="user32" ) ] extern "system" { fn PostQuitMessage ( nexitcode : i32 ) ; } :: std :: mem :: transmute ( PostQuitMessage ( :: std :: mem :: transmute ( nexitcode ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassA < > ( lpwndclass : * const WNDCLASSA , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="user32" ) ] extern "system" { fn RegisterClassA ( lpwndclass : * const :: std :: mem :: ManuallyDrop < WNDCLASSA > ) -> u16 ; } :: std :: mem :: transmute ( RegisterClassA ( :: std :: mem :: transmute ( lpwndclass ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_EX_STYLE ( pub u32 ) ; pub const WS_EX_DLGMODALFRAME : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1u32 ) ; pub const WS_EX_NOPARENTNOTIFY : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4u32 ) ; pub const WS_EX_TOPMOST : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 8u32 ) ; pub const WS_EX_ACCEPTFILES : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 16u32 ) ; pub const WS_EX_TRANSPARENT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 32u32 ) ; pub const WS_EX_MDICHILD : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 64u32 ) ; pub const WS_EX_TOOLWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 128u32 ) ; pub const WS_EX_WINDOWEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 256u32 ) ; pub const WS_EX_CLIENTEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 512u32 ) ; pub const WS_EX_CONTEXTHELP : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1024u32 ) ; pub const WS_EX_RIGHT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4096u32 ) ; pub const WS_EX_LEFT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_RTLREADING : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 8192u32 ) ; pub const WS_EX_LTRREADING : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_LEFTSCROLLBAR : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 16384u32 ) ; pub const WS_EX_RIGHTSCROLLBAR : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_CONTROLPARENT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 65536u32 ) ; pub const WS_EX_STATICEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 131072u32 ) ; pub const WS_EX_APPWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 262144u32 ) ; pub const WS_EX_OVERLAPPEDWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 768u32 ) ; pub const WS_EX_PALETTEWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 392u32 ) ; pub const WS_EX_LAYERED : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 524288u32 ) ; pub const WS_EX_NOINHERITLAYOUT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1048576u32 ) ; pub const WS_EX_NOREDIRECTIONBITMAP : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 2097152u32 ) ; pub const WS_EX_LAYOUTRTL : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4194304u32 ) ; pub const WS_EX_COMPOSITED : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 33554432u32 ) ; pub const WS_EX_NOACTIVATE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 134217728u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_EX_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_EX_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_EX_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_EX_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_EX_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_EX_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for WINDOW_EX_STYLE { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_STYLE ( pub u32 ) ; pub const WS_OVERLAPPED : WINDOW_STYLE = WINDOW_STYLE ( 0u32 ) ; pub const WS_POPUP : WINDOW_STYLE = WINDOW_STYLE ( 2147483648u32 ) ; pub const WS_CHILD : WINDOW_STYLE = WINDOW_STYLE ( 1073741824u32 ) ; pub const WS_MINIMIZE : WINDOW_STYLE = WINDOW_STYLE ( 536870912u32 ) ; pub const WS_VISIBLE : WINDOW_STYLE = WINDOW_STYLE ( 268435456u32 ) ; pub const WS_DISABLED : WINDOW_STYLE = WINDOW_STYLE ( 134217728u32 ) ; pub const WS_CLIPSIBLINGS : WINDOW_STYLE = WINDOW_STYLE ( 67108864u32 ) ; pub const WS_CLIPCHILDREN : WINDOW_STYLE = WINDOW_STYLE ( 33554432u32 ) ; pub const WS_MAXIMIZE : WINDOW_STYLE = WINDOW_STYLE ( 16777216u32 ) ; pub const WS_CAPTION : WINDOW_STYLE = WINDOW_STYLE ( 12582912u32 ) ; pub const WS_BORDER : WINDOW_STYLE = WINDOW_STYLE ( 8388608u32 ) ; pub const WS_DLGFRAME : WINDOW_STYLE = WINDOW_STYLE ( 4194304u32 ) ; pub const WS_VSCROLL : WINDOW_STYLE = WINDOW_STYLE ( 2097152u32 ) ; pub const WS_HSCROLL : WINDOW_STYLE = WINDOW_STYLE ( 1048576u32 ) ; pub const WS_SYSMENU : WINDOW_STYLE = WINDOW_STYLE ( 524288u32 ) ; pub const WS_THICKFRAME : WINDOW_STYLE = WINDOW_STYLE ( 262144u32 ) ; pub const WS_GROUP : WINDOW_STYLE = WINDOW_STYLE ( 131072u32 ) ; pub const WS_TABSTOP : WINDOW_STYLE = WINDOW_STYLE ( 65536u32 ) ; pub const WS_MINIMIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 131072u32 ) ; pub const WS_MAXIMIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 65536u32 ) ; pub const WS_TILED : WINDOW_STYLE = WINDOW_STYLE ( 0u32 ) ; pub const WS_ICONIC : WINDOW_STYLE = WINDOW_STYLE ( 536870912u32 ) ; pub const WS_SIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 262144u32 ) ; pub const WS_TILEDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 13565952u32 ) ; pub const WS_OVERLAPPEDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 13565952u32 ) ; pub const WS_POPUPWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 2156396544u32 ) ; pub const WS_CHILDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 1073741824u32 ) ; pub const WS_ACTIVECAPTION : WINDOW_STYLE = WINDOW_STYLE ( 1u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for WINDOW_STYLE { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub const WM_ACTIVATEAPP : u32 = 28u32 ; pub const WM_CLOSE : u32 = 16u32 ; pub const WM_DESTROY : u32 = 2u32 ; pub const WM_PAINT : u32 = 15u32 ; pub const WM_SIZE : u32 = 5u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSA { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR } impl WNDCLASSA { } impl :: std :: default :: Default for WNDCLASSA { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSA" ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSA { fn eq ( & self , other : & Self ) -> bool { self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName } } impl :: std :: cmp :: Eq for WNDCLASSA { } unsafe impl :: windows :: Abi for WNDCLASSA { type Abi = :: std :: mem :: ManuallyDrop < Self > ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WNDCLASS_STYLES ( pub u32 ) ; pub const CS_VREDRAW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 1u32 ) ; pub const CS_HREDRAW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 2u32 ) ; pub const CS_DBLCLKS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 8u32 ) ; pub const CS_OWNDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 32u32 ) ; pub const CS_CLASSDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 64u32 ) ; pub const CS_PARENTDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 128u32 ) ; pub const CS_NOCLOSE : WNDCLASS_STYLES = WNDCLASS_STYLES ( 512u32 ) ; pub const CS_SAVEBITS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 2048u32 ) ; pub const CS_BYTEALIGNCLIENT : WNDCLASS_STYLES = WNDCLASS_STYLES ( 4096u32 ) ; pub const CS_BYTEALIGNWINDOW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 8192u32 ) ; pub const CS_GLOBALCLASS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 16384u32 ) ; pub const CS_IME : WNDCLASS_STYLES = WNDCLASS_STYLES ( 65536u32 ) ; pub const CS_DROPSHADOW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 131072u32 ) ; impl :: std :: convert :: From < u32 > for WNDCLASS_STYLES { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WNDCLASS_STYLES { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WNDCLASS_STYLES { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WNDCLASS_STYLES { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WNDCLASS_STYLES { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WNDCLASS_STYLES { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for WNDCLASS_STYLES { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub type WNDPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } } } } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rusty-hero v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.95s [INFO] running `Command { std: "docker" "inspect" "9dd20c18b03e5a85c72cd69709c9f02f5f6b5f349234778dd929695c95702b49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9dd20c18b03e5a85c72cd69709c9f02f5f6b5f349234778dd929695c95702b49", kill_on_drop: false }` [INFO] [stdout] 9dd20c18b03e5a85c72cd69709c9f02f5f6b5f349234778dd929695c95702b49