diff options
| author | klensy <klensy@users.noreply.github.com> | 2023-05-09 18:20:13 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2023-05-09 18:20:13 +0300 |
| commit | 3c03cce341ef9be288f05e0be3e9fe56100d37ba (patch) | |
| tree | 48ebf590c9ed95cbfd3b1c2b37e234acb6d4e573 /compiler/rustc_data_structures/src | |
| parent | 7e7483d26e3cec7a44ef00cf7ae6c9c8c918bec6 (diff) | |
| download | rust-3c03cce341ef9be288f05e0be3e9fe56100d37ba.tar.gz rust-3c03cce341ef9be288f05e0be3e9fe56100d37ba.zip | |
bump windows crate 0.46 -> 0.48 in workspace
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/profiling.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_data_structures/src/profiling.rs b/compiler/rustc_data_structures/src/profiling.rs index 5e13e7c8aaf..3c76c2b7991 100644 --- a/compiler/rustc_data_structures/src/profiling.rs +++ b/compiler/rustc_data_structures/src/profiling.rs @@ -865,14 +865,16 @@ cfg_if! { use std::mem; use windows::{ - Win32::System::ProcessStatus::{K32GetProcessMemoryInfo, PROCESS_MEMORY_COUNTERS}, + // FIXME: change back to K32GetProcessMemoryInfo when windows crate + // updated to 0.49.0+ to drop dependency on psapi.dll + Win32::System::ProcessStatus::{GetProcessMemoryInfo, PROCESS_MEMORY_COUNTERS}, Win32::System::Threading::GetCurrentProcess, }; let mut pmc = PROCESS_MEMORY_COUNTERS::default(); let pmc_size = mem::size_of_val(&pmc); unsafe { - K32GetProcessMemoryInfo( + GetProcessMemoryInfo( GetCurrentProcess(), &mut pmc, pmc_size as u32, |
