Skip to content

Commit 3c03cce

Browse files
committed
bump windows crate 0.46 -> 0.48 in workspace
1 parent 7e7483d commit 3c03cce

File tree

10 files changed

+20
-29
lines changed

10 files changed

+20
-29
lines changed

Cargo.lock

+7-16
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ dependencies = [
741741
"tracing-subscriber",
742742
"unified-diff",
743743
"walkdir",
744-
"windows 0.46.0",
744+
"windows",
745745
]
746746

747747
[[package]]
@@ -1647,7 +1647,7 @@ dependencies = [
16471647
"iana-time-zone-haiku",
16481648
"js-sys",
16491649
"wasm-bindgen",
1650-
"windows 0.48.0",
1650+
"windows",
16511651
]
16521652

16531653
[[package]]
@@ -3259,7 +3259,7 @@ dependencies = [
32593259
"tempfile",
32603260
"thorin-dwp",
32613261
"tracing",
3262-
"windows 0.46.0",
3262+
"windows",
32633263
]
32643264

32653265
[[package]]
@@ -3315,7 +3315,7 @@ dependencies = [
33153315
"tempfile",
33163316
"thin-vec",
33173317
"tracing",
3318-
"windows 0.46.0",
3318+
"windows",
33193319
]
33203320

33213321
[[package]]
@@ -3376,7 +3376,7 @@ dependencies = [
33763376
"rustc_ty_utils",
33773377
"serde_json",
33783378
"tracing",
3379-
"windows 0.46.0",
3379+
"windows",
33803380
]
33813381

33823382
[[package]]
@@ -3426,7 +3426,7 @@ dependencies = [
34263426
"termize",
34273427
"tracing",
34283428
"unicode-width",
3429-
"windows 0.46.0",
3429+
"windows",
34303430
]
34313431

34323432
[[package]]
@@ -4096,7 +4096,7 @@ dependencies = [
40964096
"smallvec",
40974097
"termize",
40984098
"tracing",
4099-
"windows 0.46.0",
4099+
"windows",
41004100
]
41014101

41024102
[[package]]
@@ -5498,15 +5498,6 @@ version = "0.4.0"
54985498
source = "registry+https://github.com/rust-lang/crates.io-index"
54995499
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
55005500

5501-
[[package]]
5502-
name = "windows"
5503-
version = "0.46.0"
5504-
source = "registry+https://github.com/rust-lang/crates.io-index"
5505-
checksum = "cdacb41e6a96a052c6cb63a144f24900236121c6f63f4f8219fef5977ecb0c25"
5506-
dependencies = [
5507-
"windows-targets 0.42.2",
5508-
]
5509-
55105501
[[package]]
55115502
name = "windows"
55125503
version = "0.48.0"

compiler/rustc_codegen_ssa/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ default-features = false
5151
features = ["read_core", "elf", "macho", "pe", "unaligned", "archive", "write"]
5252

5353
[target.'cfg(windows)'.dependencies.windows]
54-
version = "0.46.0"
54+
version = "0.48.0"
5555
features = ["Win32_Globalization"]

compiler/rustc_data_structures/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ itertools = "0.10.1"
3737
version = "0.11"
3838

3939
[target.'cfg(windows)'.dependencies.windows]
40-
version = "0.46.0"
40+
version = "0.48.0"
4141
features = [
4242
"Win32_Foundation",
4343
"Win32_Storage_FileSystem",

compiler/rustc_data_structures/src/profiling.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -865,14 +865,16 @@ cfg_if! {
865865
use std::mem;
866866

867867
use windows::{
868-
Win32::System::ProcessStatus::{K32GetProcessMemoryInfo, PROCESS_MEMORY_COUNTERS},
868+
// FIXME: change back to K32GetProcessMemoryInfo when windows crate
869+
// updated to 0.49.0+ to drop dependency on psapi.dll
870+
Win32::System::ProcessStatus::{GetProcessMemoryInfo, PROCESS_MEMORY_COUNTERS},
869871
Win32::System::Threading::GetCurrentProcess,
870872
};
871873

872874
let mut pmc = PROCESS_MEMORY_COUNTERS::default();
873875
let pmc_size = mem::size_of_val(&pmc);
874876
unsafe {
875-
K32GetProcessMemoryInfo(
877+
GetProcessMemoryInfo(
876878
GetCurrentProcess(),
877879
&mut pmc,
878880
pmc_size as u32,

compiler/rustc_driver_impl/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ rustc_mir_transform = { path = "../rustc_mir_transform" }
5757
libc = "0.2"
5858

5959
[target.'cfg(windows)'.dependencies.windows]
60-
version = "0.46.0"
60+
version = "0.48.0"
6161
features = [
6262
"Win32_System_Diagnostics_Debug",
6363
]

compiler/rustc_errors/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ serde = { version = "1.0.125", features = [ "derive" ] }
2727
serde_json = "1.0.59"
2828

2929
[target.'cfg(windows)'.dependencies.windows]
30-
version = "0.46.0"
30+
version = "0.48.0"
3131
features = [
3232
"Win32_Foundation",
3333
"Win32_Security",
3434
"Win32_System_Threading",
35-
"Win32_System_WindowsProgramming",
3635
]
3736

3837
[features]

compiler/rustc_errors/src/lock.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
1919
use windows::{
2020
core::PCSTR,
2121
Win32::Foundation::{CloseHandle, HANDLE, WAIT_ABANDONED, WAIT_OBJECT_0},
22-
Win32::System::Threading::{CreateMutexA, ReleaseMutex, WaitForSingleObject},
23-
Win32::System::WindowsProgramming::INFINITE,
22+
Win32::System::Threading::{CreateMutexA, ReleaseMutex, WaitForSingleObject, INFINITE},
2423
};
2524

2625
struct Handle(HANDLE);

compiler/rustc_session/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ termize = "0.1.1"
2525
libc = "0.2"
2626

2727
[target.'cfg(windows)'.dependencies.windows]
28-
version = "0.46.0"
28+
version = "0.48.0"
2929
features = [
3030
"Win32_Foundation",
3131
"Win32_System_LibraryLoader",

compiler/rustc_session/src/filesearch.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ fn current_dll_path() -> Result<PathBuf, String> {
135135

136136
use windows::{
137137
core::PCWSTR,
138-
Win32::Foundation::HINSTANCE,
138+
Win32::Foundation::HMODULE,
139139
Win32::System::LibraryLoader::{
140140
GetModuleFileNameW, GetModuleHandleExW, GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS,
141141
},
142142
};
143143

144-
let mut module = HINSTANCE::default();
144+
let mut module = HMODULE::default();
145145
unsafe {
146146
GetModuleHandleExW(
147147
GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS,

src/tools/compiletest/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ libc = "0.2"
2828
miow = "0.5"
2929

3030
[target.'cfg(windows)'.dependencies.windows]
31-
version = "0.46.0"
31+
version = "0.48.0"
3232
features = [
3333
"Win32_Foundation",
3434
"Win32_System_Diagnostics_Debug",

0 commit comments

Comments
 (0)