[INFO] updating cached repository luojia65/windows-bluetooth-example [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/luojia65/windows-bluetooth-example [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/luojia65/windows-bluetooth-example" "work/ex/beta-1.38-1/sources/1.37.0/gh/luojia65/windows-bluetooth-example"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/luojia65/windows-bluetooth-example'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/luojia65/windows-bluetooth-example" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/luojia65/windows-bluetooth-example"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/luojia65/windows-bluetooth-example'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 0f942a7cd26eda4f15e8b0cad185738635233e64 [INFO] sha for GitHub repo luojia65/windows-bluetooth-example: 0f942a7cd26eda4f15e8b0cad185738635233e64 [INFO] validating manifest of luojia65/windows-bluetooth-example on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of luojia65/windows-bluetooth-example on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing luojia65/windows-bluetooth-example [INFO] finished frobbing luojia65/windows-bluetooth-example [INFO] frobbed toml for luojia65/windows-bluetooth-example written to work/ex/beta-1.38-1/sources/1.37.0/gh/luojia65/windows-bluetooth-example/Cargo.toml [INFO] started frobbing luojia65/windows-bluetooth-example [INFO] finished frobbing luojia65/windows-bluetooth-example [INFO] frobbed toml for luojia65/windows-bluetooth-example written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/luojia65/windows-bluetooth-example/Cargo.toml [INFO] crate luojia65/windows-bluetooth-example already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing luojia65/windows-bluetooth-example against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-5/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/luojia65/windows-bluetooth-example:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "build" "--frozen"` [INFO] [stdout] 0d515f1e453eb4c858bd89a7131a2e3f473faae8c61a77a0bb65b8a264504e6f [INFO] running `"docker" "start" "-a" "0d515f1e453eb4c858bd89a7131a2e3f473faae8c61a77a0bb65b8a264504e6f"` [INFO] [stderr] Compiling winapi v0.3.6 [INFO] [stderr] Compiling windows-bluetooth-example v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | shared::{ [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | um::{ [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::STRUCT` [INFO] [stderr] --> src/main.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | STRUCT [INFO] [stderr] | ^^^^^^ no `STRUCT` in the root [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:101:1 [INFO] [stderr] | [INFO] [stderr] 101 | STRUCT!{struct BLUETOOTH_DEVICE_INFO{ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:113:1 [INFO] [stderr] | [INFO] [stderr] 113 | STRUCT!{struct BLUETOOTH_COD_PAIRS{ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:117:1 [INFO] [stderr] | [INFO] [stderr] 117 | STRUCT!{struct BLUETOOTH_SELECT_DEVICE_PARAMS { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:134:1 [INFO] [stderr] | [INFO] [stderr] 134 | STRUCT!{struct BLUETOOTH_DEVICE_SEARCH_PARAMS { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:144:1 [INFO] [stderr] | [INFO] [stderr] 144 | STRUCT!{struct BLUETOOTH_RADIO_INFO { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `STRUCT` [INFO] [stderr] --> src/main.rs:153:1 [INFO] [stderr] | [INFO] [stderr] 153 | STRUCT!{struct BLUETOOTH_FIND_RADIO_PARAMS { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/main.rs:88:14 [INFO] [stderr] | [INFO] [stderr] 88 | pvParam: LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope [INFO] [stderr] --> src/main.rs:89:21 [INFO] [stderr] | [INFO] [stderr] 89 | pDevice: *const BLUETOOTH_DEVICE_INFO, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope [INFO] [stderr] --> src/main.rs:91:40 [INFO] [stderr] | [INFO] [stderr] 91 | pub type PBLUETOOTH_DEVICE_INFO = *mut BLUETOOTH_DEVICE_INFO; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_RADIO_INFO` in this scope [INFO] [stderr] --> src/main.rs:92:39 [INFO] [stderr] | [INFO] [stderr] 92 | pub type PBLUETOOTH_RADIO_INFO = *mut BLUETOOTH_RADIO_INFO; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_RADIO_INFO` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ULONGLONG` in this scope [INFO] [stderr] --> src/main.rs:93:21 [INFO] [stderr] | [INFO] [stderr] 93 | pub type BTH_ADDR = ULONGLONG; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/main.rs:94:35 [INFO] [stderr] | [INFO] [stderr] 94 | pub type HBLUETOOTH_DEVICE_FIND = LPVOID; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/main.rs:95:34 [INFO] [stderr] | [INFO] [stderr] 95 | pub type HBLUETOOTH_RADIO_FIND = LPVOID; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BYTE` in this scope [INFO] [stderr] --> src/main.rs:99:27 [INFO] [stderr] | [INFO] [stderr] 99 | rgBytes rgBytes_mut: [BYTE; 6], [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope [INFO] [stderr] --> src/main.rs:159:22 [INFO] [stderr] | [INFO] [stderr] 159 | pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PARAMS [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stderr] --> src/main.rs:160:10 [INFO] [stderr] | [INFO] [stderr] 160 | ) -> BOOL; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope [INFO] [stderr] --> src/main.rs:162:22 [INFO] [stderr] | [INFO] [stderr] 162 | pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PARAMS [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stderr] --> src/main.rs:163:10 [INFO] [stderr] | [INFO] [stderr] 163 | ) -> BOOL; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope [INFO] [stderr] --> src/main.rs:165:23 [INFO] [stderr] | [INFO] [stderr] 165 | pbtsp: *const BLUETOOTH_DEVICE_SEARCH_PARAMS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope [INFO] [stderr] --> src/main.rs:166:21 [INFO] [stderr] | [INFO] [stderr] 166 | pbtdi: *mut BLUETOOTH_DEVICE_INFO, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope [INFO] [stderr] --> src/main.rs:170:21 [INFO] [stderr] | [INFO] [stderr] 170 | pbtdi: *mut BLUETOOTH_DEVICE_INFO, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stderr] --> src/main.rs:171:10 [INFO] [stderr] | [INFO] [stderr] 171 | ) -> BOOL; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stderr] --> src/main.rs:174:10 [INFO] [stderr] | [INFO] [stderr] 174 | ) -> BOOL; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_FIND_RADIO_PARAMS` in this scope [INFO] [stderr] --> src/main.rs:176:24 [INFO] [stderr] | [INFO] [stderr] 176 | pbtfrp: *const BLUETOOTH_FIND_RADIO_PARAMS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:177:23 [INFO] [stderr] | [INFO] [stderr] 177 | phRadio: *mut HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:181:23 [INFO] [stderr] | [INFO] [stderr] 181 | phRadio: *mut HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stderr] --> src/main.rs:182:10 [INFO] [stderr] | [INFO] [stderr] 182 | ) -> BOOL; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/main.rs:184:17 [INFO] [stderr] | [INFO] [stderr] 184 | hRadio: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:186:10 [INFO] [stderr] | [INFO] [stderr] 186 | ) -> DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stderr] --> src/main.rs:189:10 [INFO] [stderr] | [INFO] [stderr] 189 | ) -> BOOL; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_FIND_RADIO_PARAMS` in this scope [INFO] [stderr] --> src/main.rs:214:39 [INFO] [stderr] | [INFO] [stderr] 214 | create_struct!(btfrp, pbtfrp, BLUETOOTH_FIND_RADIO_PARAMS); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:197:71 [INFO] [stderr] | [INFO] [stderr] 197 | $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] ... [INFO] [stderr] 214 | create_struct!(btfrp, pbtfrp, BLUETOOTH_FIND_RADIO_PARAMS); [INFO] [stderr] | ----------------------------------------------------------- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_RADIO_INFO` in this scope [INFO] [stderr] --> src/main.rs:215:47 [INFO] [stderr] | [INFO] [stderr] 215 | create_struct!(radioInfo, pRadioInfo, BLUETOOTH_RADIO_INFO); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_RADIO_INFO` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:197:71 [INFO] [stderr] | [INFO] [stderr] 197 | $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] ... [INFO] [stderr] 215 | create_struct!(radioInfo, pRadioInfo, BLUETOOTH_RADIO_INFO); [INFO] [stderr] | ------------------------------------------------------------ in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope [INFO] [stderr] --> src/main.rs:216:37 [INFO] [stderr] | [INFO] [stderr] 216 | create_struct!(btsp, pbtsp, BLUETOOTH_DEVICE_SEARCH_PARAMS); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:197:71 [INFO] [stderr] | [INFO] [stderr] 197 | $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] ... [INFO] [stderr] 216 | create_struct!(btsp, pbtsp, BLUETOOTH_DEVICE_SEARCH_PARAMS); [INFO] [stderr] | ------------------------------------------------------------ in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope [INFO] [stderr] --> src/main.rs:217:37 [INFO] [stderr] | [INFO] [stderr] 217 | create_struct!(btdi, pbtdi, BLUETOOTH_DEVICE_INFO); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:197:71 [INFO] [stderr] | [INFO] [stderr] 197 | $struct_name.dwSize = core::mem::size_of::<$struct_type>() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] ... [INFO] [stderr] 217 | create_struct!(btdi, pbtdi, BLUETOOTH_DEVICE_INFO); [INFO] [stderr] | --------------------------------------------------- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ERROR_SUCCESS` in this scope [INFO] [stderr] --> src/main.rs:221:61 [INFO] [stderr] | [INFO] [stderr] 221 | if BluetoothGetRadioInfo(hRadio, pRadioInfo) == ERROR_SUCCESS { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:227:45 [INFO] [stderr] | [INFO] [stderr] 227 | btsp.fReturnAuthenticated = TRUE; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:228:41 [INFO] [stderr] | [INFO] [stderr] 228 | btsp.fReturnConnected = TRUE; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:229:42 [INFO] [stderr] | [INFO] [stderr] 229 | btsp.fReturnRemembered = TRUE; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:230:39 [INFO] [stderr] | [INFO] [stderr] 230 | btsp.fReturnUnknown = TRUE; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:231:38 [INFO] [stderr] | [INFO] [stderr] 231 | btsp.fIssueInquiry = FALSE; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:239:83 [INFO] [stderr] | [INFO] [stderr] 239 | device_found = BluetoothFindNextDevice(hFindDevice, pbtdi) == TRUE; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CloseHandle` in this scope [INFO] [stderr] --> src/main.rs:243:13 [INFO] [stderr] | [INFO] [stderr] 243 | CloseHandle(hRadio); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:244:74 [INFO] [stderr] | [INFO] [stderr] 244 | radio_found = BluetoothFindNextRadio(hFindRadio, phRadio) == TRUE; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:250:23 [INFO] [stderr] | [INFO] [stderr] 250 | fn dw_size_of() -> DWORD { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:251:34 [INFO] [stderr] | [INFO] [stderr] 251 | core::mem::size_of::() as DWORD [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope [INFO] [stderr] --> src/main.rs:255:25 [INFO] [stderr] | [INFO] [stderr] 255 | let bdsp = Box::new(BLUETOOTH_DEVICE_SEARCH_PARAMS { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_SEARCH_PARAMS` in this scope [INFO] [stderr] --> src/main.rs:256:38 [INFO] [stderr] | [INFO] [stderr] 256 | dwSize: core::mem::size_of::() as u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:257:31 [INFO] [stderr] | [INFO] [stderr] 257 | fReturnAuthenticated: TRUE, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:258:28 [INFO] [stderr] | [INFO] [stderr] 258 | fReturnRemembered: TRUE, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:259:25 [INFO] [stderr] | [INFO] [stderr] 259 | fReturnUnknown: FALSE, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:260:27 [INFO] [stderr] | [INFO] [stderr] 260 | fReturnConnected: TRUE, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:261:24 [INFO] [stderr] | [INFO] [stderr] 261 | fIssueInquiry: FALSE, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BLUETOOTH_DEVICE_INFO` in this scope [INFO] [stderr] --> src/main.rs:266:25 [INFO] [stderr] | [INFO] [stderr] 266 | let btdi = Box::new(BLUETOOTH_DEVICE_INFO { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope [INFO] [stderr] --> src/main.rs:267:38 [INFO] [stderr] | [INFO] [stderr] 267 | dwSize: core::mem::size_of::() as u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:281:52 [INFO] [stderr] | [INFO] [stderr] 281 | while BluetoothFindNextDevice(hFind, pbtdi) == TRUE { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_DEVICE_INFO` in this scope [INFO] [stderr] --> src/main.rs:285:39 [INFO] [stderr] | [INFO] [stderr] 285 | unsafe fn print_pbtdi(pbtdi: *mut BLUETOOTH_DEVICE_INFO) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: a type alias with a similar name exists: `PBLUETOOTH_DEVICE_INFO` [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope [INFO] [stderr] --> src/main.rs:297:27 [INFO] [stderr] | [INFO] [stderr] 297 | let pbtsdp = Box::new(BLUETOOTH_SELECT_DEVICE_PARAMS { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BLUETOOTH_SELECT_DEVICE_PARAMS` in this scope [INFO] [stderr] --> src/main.rs:298:38 [INFO] [stderr] | [INFO] [stderr] 298 | dwSize: core::mem::size_of::() as u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:303:31 [INFO] [stderr] | [INFO] [stderr] 303 | fForceAuthentication: FALSE, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:304:29 [INFO] [stderr] | [INFO] [stderr] 304 | fShowAuthenticated: TRUE, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:305:26 [INFO] [stderr] | [INFO] [stderr] 305 | fShowRemembered: TRUE, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stderr] --> src/main.rs:306:23 [INFO] [stderr] | [INFO] [stderr] 306 | fShowUnknown: TRUE, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:307:30 [INFO] [stderr] | [INFO] [stderr] 307 | fAddNewDeviceWizard: FALSE, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:308:28 [INFO] [stderr] | [INFO] [stderr] 308 | fSkipServicesPage: FALSE, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stderr] --> src/main.rs:316:15 [INFO] [stderr] | [INFO] [stderr] 316 | if ans == FALSE { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetLastError` in this scope [INFO] [stderr] --> src/main.rs:317:29 [INFO] [stderr] | [INFO] [stderr] 317 | println!("Err: {}", GetLastError()); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `MAKEWORD` in this scope [INFO] [stderr] --> src/main.rs:342:24 [INFO] [stderr] | [INFO] [stderr] 342 | let version_word = MAKEWORD(2, 2); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WSADATA` in this scope [INFO] [stderr] --> src/main.rs:343:29 [INFO] [stderr] | [INFO] [stderr] 343 | let wsa_data = Box::new(WSADATA { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `WSAStartup` in this scope [INFO] [stderr] --> src/main.rs:354:16 [INFO] [stderr] | [INFO] [stderr] 354 | let code = WSAStartup(version_word, ptr); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LOBYTE` in this scope [INFO] [stderr] --> src/main.rs:359:9 [INFO] [stderr] | [INFO] [stderr] 359 | LOBYTE(wsa_data.wVersion), HIBYTE(wsa_data.wVersion), [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HIBYTE` in this scope [INFO] [stderr] --> src/main.rs:359:36 [INFO] [stderr] | [INFO] [stderr] 359 | LOBYTE(wsa_data.wVersion), HIBYTE(wsa_data.wVersion), [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LOBYTE` in this scope [INFO] [stderr] --> src/main.rs:360:9 [INFO] [stderr] | [INFO] [stderr] 360 | LOBYTE(wsa_data.wHighVersion), HIBYTE(wsa_data.wHighVersion), [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `HIBYTE` in this scope [INFO] [stderr] --> src/main.rs:360:40 [INFO] [stderr] | [INFO] [stderr] 360 | LOBYTE(wsa_data.wHighVersion), HIBYTE(wsa_data.wHighVersion), [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `WSACleanup` in this scope [INFO] [stderr] --> src/main.rs:366:9 [INFO] [stderr] | [INFO] [stderr] 366 | WSACleanup(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `socket` in this scope [INFO] [stderr] --> src/main.rs:372:14 [INFO] [stderr] | [INFO] [stderr] 372 | let sk = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `AF_BTH` in this scope [INFO] [stderr] --> src/main.rs:372:21 [INFO] [stderr] | [INFO] [stderr] 372 | let sk = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `SOCK_STREAM` in this scope [INFO] [stderr] --> src/main.rs:372:29 [INFO] [stderr] | [INFO] [stderr] 372 | let sk = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INVALID_SOCKET` in this scope [INFO] [stderr] --> src/main.rs:373:14 [INFO] [stderr] | [INFO] [stderr] 373 | if sk == INVALID_SOCKET { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `WSAGetLastError` in this scope [INFO] [stderr] --> src/main.rs:374:19 [INFO] [stderr] | [INFO] [stderr] 374 | let err = WSAGetLastError(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `dwSize` on type `std::boxed::Box<_>` [INFO] [stderr] --> src/main.rs:287:32 [INFO] [stderr] | [INFO] [stderr] 287 | println!("{:X} ", btdi.dwSize); [INFO] [stderr] | ^^^^^^ unknown field [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `cNumDevices` on type `std::boxed::Box<_>` [INFO] [stderr] --> src/main.rs:321:40 [INFO] [stderr] | [INFO] [stderr] 321 | println!("cNumDevices: {}", pbtsdp.cNumDevices); [INFO] [stderr] | ^^^^^^^^^^^ unknown field [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `wVersion` on type `std::boxed::Box<_>` [INFO] [stderr] --> src/main.rs:359:25 [INFO] [stderr] | [INFO] [stderr] 359 | LOBYTE(wsa_data.wVersion), HIBYTE(wsa_data.wVersion), [INFO] [stderr] | ^^^^^^^^ unknown field [INFO] [stderr] [INFO] [stderr] error: aborting due to 89 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0609. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: Could not compile `windows-bluetooth-example`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "0d515f1e453eb4c858bd89a7131a2e3f473faae8c61a77a0bb65b8a264504e6f"` [INFO] running `"docker" "rm" "-f" "0d515f1e453eb4c858bd89a7131a2e3f473faae8c61a77a0bb65b8a264504e6f"` [INFO] [stdout] 0d515f1e453eb4c858bd89a7131a2e3f473faae8c61a77a0bb65b8a264504e6f