[INFO] cloning repository https://github.com/quorauk/arduino-audio-meter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/quorauk/arduino-audio-meter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquorauk%2Farduino-audio-meter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquorauk%2Farduino-audio-meter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a18d32b89ad0fd46940213a8dedfa132d8045590 [INFO] checking quorauk/arduino-audio-meter against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquorauk%2Farduino-audio-meter" "/workspace/builds/worker-29/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-29/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/quorauk/arduino-audio-meter on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/quorauk/arduino-audio-meter [INFO] finished tweaking git repo https://github.com/quorauk/arduino-audio-meter [INFO] tweaked toml for git repo https://github.com/quorauk/arduino-audio-meter written to /workspace/builds/worker-29/source/Cargo.toml [INFO] crate git repo https://github.com/quorauk/arduino-audio-meter already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c01b5a436a6462f154834ff51165cec8d81b232473345836f1296ecefb72ba55 [INFO] running `Command { std: "docker" "start" "-a" "c01b5a436a6462f154834ff51165cec8d81b232473345836f1296ecefb72ba55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c01b5a436a6462f154834ff51165cec8d81b232473345836f1296ecefb72ba55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c01b5a436a6462f154834ff51165cec8d81b232473345836f1296ecefb72ba55", kill_on_drop: false }` [INFO] [stdout] c01b5a436a6462f154834ff51165cec8d81b232473345836f1296ecefb72ba55 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be29741eaaffeb4b3332d1cfe42fd852563f02c166f68bb6d93343024f446fb1 [INFO] running `Command { std: "docker" "start" "-a" "be29741eaaffeb4b3332d1cfe42fd852563f02c166f68bb6d93343024f446fb1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] libc v0.2.58: use_std [INFO] [stderr] winapi v0.3.7: cguid, commapi, errhandlingapi, fileapi, guiddef, handleapi, minwinbase, minwindef, ntdef, setupapi, winbase, winerror, winnt [INFO] [stderr] [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling winapi v0.3.7 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Checking libudev v0.2.0 [INFO] [stderr] Checking serialport v3.3.0 [INFO] [stderr] Checking vmu v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::objbase::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::mmdeviceapi::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::endpointvolume::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::shared` [INFO] [stdout] --> src/windows.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::Interface` [INFO] [stdout] --> src/windows.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::Interface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `Interface` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `guiddef` [INFO] [stdout] --> src/windows.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | let cls_mm_device_enum : guiddef::GUID = CLSID_MMDeviceEnumerator; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `guiddef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IMMDeviceEnumerator` [INFO] [stdout] --> src/windows.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | let iid_imm_device_enumerator = IMMDeviceEnumerator::uuidof(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `IMMDeviceEnumerator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | winapi::um::combaseapi::CoCreateInstance(&cls_mm_device_enum, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `wtypesbase` [INFO] [stdout] --> src/windows.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | wtypesbase::CLSCTX_INPROC_SERVER, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `wtypesbase` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/windows.rs:21:58 [INFO] [stdout] | [INFO] [stdout] 21 | ... as *mut *mut winapi::ctypes::c_void); [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | let mut pp_device : *mut winapi::um::mmdeviceapi::IMMDevice = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | winapi::um::mmdeviceapi::eCapture, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | winapi::um::mmdeviceapi::eCommunications, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IAudioMeterInformation` [INFO] [stdout] --> src/windows.rs:39:40 [INFO] [stdout] | [INFO] [stdout] 39 | let cls_iaudio_meter_information = IAudioMeterInformation::uuidof(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `IAudioMeterInformation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `wtypesbase` [INFO] [stdout] --> src/windows.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | wtypesbase::CLSCTX_INPROC_SERVER, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `wtypesbase` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:48:52 [INFO] [stdout] | [INFO] [stdout] 48 | &mut input_device as *mut *mut winapi::um::endpointvolume::IAudioMeterInformation [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/windows.rs:49:54 [INFO] [stdout] | [INFO] [stdout] 49 | ... as *mut *mut winapi::ctypes::c_void); [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:21:78 [INFO] [stdout] | [INFO] [stdout] 21 | fn connected(port : &mut serialport::SerialPort, input_device : *mut winapi::um::endpointvolume::IAudioMeterInformation) { [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | fn get_device_enumerator() -> *mut IMMDeviceEnumerator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CLSID_MMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | let cls_mm_device_enum : guiddef::GUID = CLSID_MMDeviceEnumerator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | let mut device_enumerator : *mut IMMDeviceEnumerator = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 20 | &mut device_enumerator as *mut *mut IMMDeviceEnumerator [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:26:44 [INFO] [stdout] | [INFO] [stdout] 26 | fn get_imm_device(device_enumerator : *mut IMMDeviceEnumerator) -> *mut IMMDevice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDevice` in this scope [INFO] [stdout] --> src/windows.rs:26:73 [INFO] [stdout] | [INFO] [stdout] 26 | fn get_imm_device(device_enumerator : *mut IMMDeviceEnumerator) -> *mut IMMDevice { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDevice` in this scope [INFO] [stdout] --> src/windows.rs:38:50 [INFO] [stdout] | [INFO] [stdout] 38 | fn get_iaudio_meter_information(pp_device : *mut IMMDevice) -> *mut IAudioMeterInformation { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IAudioMeterInformation` in this scope [INFO] [stdout] --> src/windows.rs:38:69 [INFO] [stdout] | [INFO] [stdout] 38 | fn get_iaudio_meter_information(pp_device : *mut IMMDevice) -> *mut IAudioMeterInformation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IAudioMeterInformation` in this scope [INFO] [stdout] --> src/windows.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | let mut input_device : *mut IAudioMeterInformation = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IAudioMeterInformation` in this scope [INFO] [stdout] --> src/windows.rs:54:46 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn get_audio_meter_information() -> *mut IAudioMeterInformation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoInitialize` in this scope [INFO] [stdout] --> src/windows.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | unsafe { CoInitialize(std::ptr::null_mut()) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | let device_enumerator : *mut IMMDeviceEnumerator = get_device_enumerator(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDevice` in this scope [INFO] [stdout] --> src/windows.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | let pp_device : *mut IMMDevice = get_imm_device(device_enumerator); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | fn connected(port : &mut serialport::SerialPort, input_device : *mut winapi::um::endpointvolume::IAudioMeterInformation) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn serialport::SerialPort` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 31 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `vmu` due to 32 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::objbase::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::mmdeviceapi::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::endpointvolume::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::shared` [INFO] [stdout] --> src/windows.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::Interface` [INFO] [stdout] --> src/windows.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::Interface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `Interface` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `guiddef` [INFO] [stdout] --> src/windows.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | let cls_mm_device_enum : guiddef::GUID = CLSID_MMDeviceEnumerator; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `guiddef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IMMDeviceEnumerator` [INFO] [stdout] --> src/windows.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | let iid_imm_device_enumerator = IMMDeviceEnumerator::uuidof(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `IMMDeviceEnumerator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | winapi::um::combaseapi::CoCreateInstance(&cls_mm_device_enum, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `wtypesbase` [INFO] [stdout] --> src/windows.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | wtypesbase::CLSCTX_INPROC_SERVER, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `wtypesbase` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/windows.rs:21:58 [INFO] [stdout] | [INFO] [stdout] 21 | ... as *mut *mut winapi::ctypes::c_void); [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | let mut pp_device : *mut winapi::um::mmdeviceapi::IMMDevice = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | winapi::um::mmdeviceapi::eCapture, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | winapi::um::mmdeviceapi::eCommunications, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IAudioMeterInformation` [INFO] [stdout] --> src/windows.rs:39:40 [INFO] [stdout] | [INFO] [stdout] 39 | let cls_iaudio_meter_information = IAudioMeterInformation::uuidof(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `IAudioMeterInformation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `wtypesbase` [INFO] [stdout] --> src/windows.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | wtypesbase::CLSCTX_INPROC_SERVER, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `wtypesbase` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:48:52 [INFO] [stdout] | [INFO] [stdout] 48 | &mut input_device as *mut *mut winapi::um::endpointvolume::IAudioMeterInformation [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/windows.rs:49:54 [INFO] [stdout] | [INFO] [stdout] 49 | ... as *mut *mut winapi::ctypes::c_void); [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:21:78 [INFO] [stdout] | [INFO] [stdout] 21 | fn connected(port : &mut serialport::SerialPort, input_device : *mut winapi::um::endpointvolume::IAudioMeterInformation) { [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | fn get_device_enumerator() -> *mut IMMDeviceEnumerator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CLSID_MMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | let cls_mm_device_enum : guiddef::GUID = CLSID_MMDeviceEnumerator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | let mut device_enumerator : *mut IMMDeviceEnumerator = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 20 | &mut device_enumerator as *mut *mut IMMDeviceEnumerator [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:26:44 [INFO] [stdout] | [INFO] [stdout] 26 | fn get_imm_device(device_enumerator : *mut IMMDeviceEnumerator) -> *mut IMMDevice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDevice` in this scope [INFO] [stdout] --> src/windows.rs:26:73 [INFO] [stdout] | [INFO] [stdout] 26 | fn get_imm_device(device_enumerator : *mut IMMDeviceEnumerator) -> *mut IMMDevice { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDevice` in this scope [INFO] [stdout] --> src/windows.rs:38:50 [INFO] [stdout] | [INFO] [stdout] 38 | fn get_iaudio_meter_information(pp_device : *mut IMMDevice) -> *mut IAudioMeterInformation { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IAudioMeterInformation` in this scope [INFO] [stdout] --> src/windows.rs:38:69 [INFO] [stdout] | [INFO] [stdout] 38 | fn get_iaudio_meter_information(pp_device : *mut IMMDevice) -> *mut IAudioMeterInformation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IAudioMeterInformation` in this scope [INFO] [stdout] --> src/windows.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | let mut input_device : *mut IAudioMeterInformation = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IAudioMeterInformation` in this scope [INFO] [stdout] --> src/windows.rs:54:46 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn get_audio_meter_information() -> *mut IAudioMeterInformation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoInitialize` in this scope [INFO] [stdout] --> src/windows.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | unsafe { CoInitialize(std::ptr::null_mut()) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/windows.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | let device_enumerator : *mut IMMDeviceEnumerator = get_device_enumerator(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMMDevice` in this scope [INFO] [stdout] --> src/windows.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | let pp_device : *mut IMMDevice = get_imm_device(device_enumerator); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | fn connected(port : &mut serialport::SerialPort, input_device : *mut winapi::um::endpointvolume::IAudioMeterInformation) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn serialport::SerialPort` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stdout] error: aborting due to 31 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "be29741eaaffeb4b3332d1cfe42fd852563f02c166f68bb6d93343024f446fb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be29741eaaffeb4b3332d1cfe42fd852563f02c166f68bb6d93343024f446fb1", kill_on_drop: false }` [INFO] [stdout] be29741eaaffeb4b3332d1cfe42fd852563f02c166f68bb6d93343024f446fb1