[INFO] cloning repository https://github.com/ViniciusAndr/wifi-extractor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ViniciusAndr/wifi-extractor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FViniciusAndr%2Fwifi-extractor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FViniciusAndr%2Fwifi-extractor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 040c3110211edcf1ad2444612de97ed4e51c9d17 [INFO] checking ViniciusAndr/wifi-extractor against try#349c4bfa6ac87b818f6fd19d4869c0b24790ac6a for pr-152856 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FViniciusAndr%2Fwifi-extractor" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ViniciusAndr/wifi-extractor [INFO] finished tweaking git repo https://github.com/ViniciusAndr/wifi-extractor [INFO] tweaked toml for git repo https://github.com/ViniciusAndr/wifi-extractor written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ViniciusAndr/wifi-extractor on toolchain 349c4bfa6ac87b818f6fd19d4869c0b24790ac6a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+349c4bfa6ac87b818f6fd19d4869c0b24790ac6a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ViniciusAndr/wifi-extractor 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" "+349c4bfa6ac87b818f6fd19d4869c0b24790ac6a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+349c4bfa6ac87b818f6fd19d4869c0b24790ac6a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1feffcb24e7126c8b0c27e0af72274f54ce95dc1b8ecea542c0b19175acc6663 [INFO] running `Command { std: "docker" "start" "-a" "1feffcb24e7126c8b0c27e0af72274f54ce95dc1b8ecea542c0b19175acc6663", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1feffcb24e7126c8b0c27e0af72274f54ce95dc1b8ecea542c0b19175acc6663", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1feffcb24e7126c8b0c27e0af72274f54ce95dc1b8ecea542c0b19175acc6663", kill_on_drop: false }` [INFO] [stdout] 1feffcb24e7126c8b0c27e0af72274f54ce95dc1b8ecea542c0b19175acc6663 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+349c4bfa6ac87b818f6fd19d4869c0b24790ac6a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23b3c2317a86ad2188a8e5d6d87a9c9e142aa2bfb71feab0aeac48cf3d9a4685 [INFO] running `Command { std: "docker" "start" "-a" "23b3c2317a86ad2188a8e5d6d87a9c9e142aa2bfb71feab0aeac48cf3d9a4685", kill_on_drop: false }` [INFO] [stderr] Compiling windows_x86_64_gnu v0.52.0 [INFO] [stderr] Checking windows-targets v0.52.0 [INFO] [stderr] Checking windows-core v0.52.0 [INFO] [stderr] Checking windows v0.52.0 [INFO] [stderr] Checking WifiAuthExtractor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: cannot find `windows` in `os` [INFO] [stdout] --> src/main.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ffi::OsString, os::windows::ffi::OsStringExt}; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/349c4bfa6ac87b818f6fd19d4869c0b24790ac6a/library/std/src/os/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/349c4bfa6ac87b818f6fd19d4869c0b24790ac6a/library/std/src/os/mod.rs:120:9 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ERROR_SUCCESS` and `WLAN_INTERFACE_INFO` [INFO] [stdout] --> src/main.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{ERROR_SUCCESS, HANDLE, INVALID_HANDLE_VALUE, WIN32_ERROR}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | ...agement::WiFi::{ [INFO] [stdout] 9 | ...oseHandle, WlanEnumInterfaces, WlanFreeMemory, WlanGetProfile, WlanGetProfileList, WlanOpenHandle, WLAN_API_VERSION_2_0, WLAN_INTERFACE_INFO, W... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | if(element_name.to_os_string() == node_name){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - if(element_name.to_os_string() == node_name){ [INFO] [stdout] 75 + if element_name.to_os_string() == node_name { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `windows` in `os` [INFO] [stdout] --> src/main.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ffi::OsString, os::windows::ffi::OsStringExt}; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/349c4bfa6ac87b818f6fd19d4869c0b24790ac6a/library/std/src/os/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/349c4bfa6ac87b818f6fd19d4869c0b24790ac6a/library/std/src/os/mod.rs:120:9 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Some(OsString::from_wide(&string_slice[..null_index])) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `OsString` consider using one of the following associated functions: [INFO] [stdout] OsString::new [INFO] [stdout] OsString::from_encoded_bytes_unchecked [INFO] [stdout] OsString::with_capacity [INFO] [stdout] --> /rustc/349c4bfa6ac87b818f6fd19d4869c0b24790ac6a/library/std/src/ffi/os_str.rs:141:4 [INFO] [stdout] help: there is an associated function `from_iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 52 - Some(OsString::from_wide(&string_slice[..null_index])) [INFO] [stdout] 52 + Some(OsString::from_iter(&string_slice[..null_index])) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ERROR_SUCCESS` and `WLAN_INTERFACE_INFO` [INFO] [stdout] --> src/main.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{ERROR_SUCCESS, HANDLE, INVALID_HANDLE_VALUE, WIN32_ERROR}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | ...agement::WiFi::{ [INFO] [stdout] 9 | ...oseHandle, WlanEnumInterfaces, WlanFreeMemory, WlanGetProfile, WlanGetProfileList, WlanOpenHandle, WLAN_API_VERSION_2_0, WLAN_INTERFACE_INFO, W... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | if(element_name.to_os_string() == node_name){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - if(element_name.to_os_string() == node_name){ [INFO] [stdout] 75 + if element_name.to_os_string() == node_name { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `HSTRING: From<&OsString>` is not satisfied [INFO] [stdout] --> src/main.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 57 | xml_document.LoadXml(&HSTRING::from(xml))?; [INFO] [stdout] | ^^^^^^^ the trait `From<&OsString>` is not implemented for `HSTRING` [INFO] [stdout] | [INFO] [stdout] help: the following other types implement trait `From` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/windows-core-0.52.0/src/strings/hstring.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 152 | impl std::convert::From<&str> for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From<&str>` [INFO] [stdout] ... [INFO] [stdout] 158 | impl std::convert::From for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From` [INFO] [stdout] ... [INFO] [stdout] 164 | impl std::convert::From<&std::string::String> for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From<&String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:67:35 [INFO] [stdout] | [INFO] [stdout] 67 | let node_name = OsString::from_wide(&node.encode_utf16().collect::>()); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `OsString` consider using one of the following associated functions: [INFO] [stdout] OsString::new [INFO] [stdout] OsString::from_encoded_bytes_unchecked [INFO] [stdout] OsString::with_capacity [INFO] [stdout] --> /rustc/349c4bfa6ac87b818f6fd19d4869c0b24790ac6a/library/std/src/ffi/os_str.rs:141:4 [INFO] [stdout] help: there is an associated function `from_iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 67 - let node_name = OsString::from_wide(&node.encode_utf16().collect::>()); [INFO] [stdout] 67 + let node_name = OsString::from_iter(&node.encode_utf16().collect::>()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_os_string` found for struct `HSTRING` in the current scope [INFO] [stdout] --> src/main.rs:75:29 [INFO] [stdout] | [INFO] [stdout] 75 | if(element_name.to_os_string() == node_name){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 75 - if(element_name.to_os_string() == node_name){ [INFO] [stdout] 75 + if(element_name.to_string() == node_name){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_os_string` found for struct `HSTRING` in the current scope [INFO] [stdout] --> src/main.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | if element_name.to_os_string().to_string_lossy().to_string() == last_node_name.to_string(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 76 - if element_name.to_os_string().to_string_lossy().to_string() == last_node_name.to_string(){ [INFO] [stdout] 76 + if element_name.to_string().to_string_lossy().to_string() == last_node_name.to_string(){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `HSTRING: From<&OsString>` is not satisfied [INFO] [stdout] --> src/main.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | PCWSTR(HSTRING::from(profile_name).as_ptr()), [INFO] [stdout] | ^^^^^^^ the trait `From<&OsString>` is not implemented for `HSTRING` [INFO] [stdout] | [INFO] [stdout] help: the following other types implement trait `From` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/windows-core-0.52.0/src/strings/hstring.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 152 | impl std::convert::From<&str> for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From<&str>` [INFO] [stdout] ... [INFO] [stdout] 158 | impl std::convert::From for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From` [INFO] [stdout] ... [INFO] [stdout] 164 | impl std::convert::From<&std::string::String> for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From<&String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_os_string` found for struct `HSTRING` in the current scope [INFO] [stdout] --> src/main.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | Ok(xml_string.to_os_string()) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 112 - Ok(xml_string.to_os_string()) [INFO] [stdout] 112 + Ok(xml_string.to_string()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interface_description` [INFO] [stdout] --> src/main.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let interface_description = match parse_utf16_slice(interface_info.strInterfaceDescription.as_slice()){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interface_description` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Some(OsString::from_wide(&string_slice[..null_index])) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `OsString` consider using one of the following associated functions: [INFO] [stdout] OsString::new [INFO] [stdout] OsString::from_encoded_bytes_unchecked [INFO] [stdout] OsString::with_capacity [INFO] [stdout] --> /rustc/349c4bfa6ac87b818f6fd19d4869c0b24790ac6a/library/std/src/ffi/os_str.rs:141:4 [INFO] [stdout] help: there is an associated function `from_iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 52 - Some(OsString::from_wide(&string_slice[..null_index])) [INFO] [stdout] 52 + Some(OsString::from_iter(&string_slice[..null_index])) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `WifiAuthExtractor` (bin "WifiAuthExtractor" test) due to 8 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the trait bound `HSTRING: From<&OsString>` is not satisfied [INFO] [stdout] --> src/main.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 57 | xml_document.LoadXml(&HSTRING::from(xml))?; [INFO] [stdout] | ^^^^^^^ the trait `From<&OsString>` is not implemented for `HSTRING` [INFO] [stdout] | [INFO] [stdout] help: the following other types implement trait `From` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/windows-core-0.52.0/src/strings/hstring.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 152 | impl std::convert::From<&str> for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From<&str>` [INFO] [stdout] ... [INFO] [stdout] 158 | impl std::convert::From for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From` [INFO] [stdout] ... [INFO] [stdout] 164 | impl std::convert::From<&std::string::String> for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From<&String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:67:35 [INFO] [stdout] | [INFO] [stdout] 67 | let node_name = OsString::from_wide(&node.encode_utf16().collect::>()); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `OsString` consider using one of the following associated functions: [INFO] [stdout] OsString::new [INFO] [stdout] OsString::from_encoded_bytes_unchecked [INFO] [stdout] OsString::with_capacity [INFO] [stdout] --> /rustc/349c4bfa6ac87b818f6fd19d4869c0b24790ac6a/library/std/src/ffi/os_str.rs:141:4 [INFO] [stdout] help: there is an associated function `from_iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 67 - let node_name = OsString::from_wide(&node.encode_utf16().collect::>()); [INFO] [stdout] 67 + let node_name = OsString::from_iter(&node.encode_utf16().collect::>()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_os_string` found for struct `HSTRING` in the current scope [INFO] [stdout] --> src/main.rs:75:29 [INFO] [stdout] | [INFO] [stdout] 75 | if(element_name.to_os_string() == node_name){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 75 - if(element_name.to_os_string() == node_name){ [INFO] [stdout] 75 + if(element_name.to_string() == node_name){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_os_string` found for struct `HSTRING` in the current scope [INFO] [stdout] --> src/main.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | if element_name.to_os_string().to_string_lossy().to_string() == last_node_name.to_string(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 76 - if element_name.to_os_string().to_string_lossy().to_string() == last_node_name.to_string(){ [INFO] [stdout] 76 + if element_name.to_string().to_string_lossy().to_string() == last_node_name.to_string(){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `HSTRING: From<&OsString>` is not satisfied [INFO] [stdout] --> src/main.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | PCWSTR(HSTRING::from(profile_name).as_ptr()), [INFO] [stdout] | ^^^^^^^ the trait `From<&OsString>` is not implemented for `HSTRING` [INFO] [stdout] | [INFO] [stdout] help: the following other types implement trait `From` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/windows-core-0.52.0/src/strings/hstring.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 152 | impl std::convert::From<&str> for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From<&str>` [INFO] [stdout] ... [INFO] [stdout] 158 | impl std::convert::From for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From` [INFO] [stdout] ... [INFO] [stdout] 164 | impl std::convert::From<&std::string::String> for HSTRING { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HSTRING` implements `From<&String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_os_string` found for struct `HSTRING` in the current scope [INFO] [stdout] --> src/main.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | Ok(xml_string.to_os_string()) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 112 - Ok(xml_string.to_os_string()) [INFO] [stdout] 112 + Ok(xml_string.to_string()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interface_description` [INFO] [stdout] --> src/main.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let interface_description = match parse_utf16_slice(interface_info.strInterfaceDescription.as_slice()){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interface_description` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `WifiAuthExtractor` (bin "WifiAuthExtractor") due to 8 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "23b3c2317a86ad2188a8e5d6d87a9c9e142aa2bfb71feab0aeac48cf3d9a4685", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23b3c2317a86ad2188a8e5d6d87a9c9e142aa2bfb71feab0aeac48cf3d9a4685", kill_on_drop: false }` [INFO] [stdout] 23b3c2317a86ad2188a8e5d6d87a9c9e142aa2bfb71feab0aeac48cf3d9a4685