Skip to content

Commit 35fe267

Browse files
committed
windows bump to 0.52
1 parent 5e2a7ac commit 35fe267

File tree

11 files changed

+16
-17
lines changed

11 files changed

+16
-17
lines changed

Cargo.lock

+4-3
Original file line numberDiff line numberDiff line change
@@ -6176,11 +6176,12 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
61766176

61776177
[[package]]
61786178
name = "windows"
6179-
version = "0.48.0"
6179+
version = "0.52.0"
61806180
source = "registry+https://github.com/rust-lang/crates.io-index"
6181-
checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
6181+
checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"
61826182
dependencies = [
6183-
"windows-targets 0.48.5",
6183+
"windows-core",
6184+
"windows-targets 0.52.0",
61846185
]
61856186

61866187
[[package]]

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", "xcoff", "unaligned", "archive", "write"]
5252

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

compiler/rustc_data_structures/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tracing = "0.1"
3333
version = "0.12"
3434

3535
[target.'cfg(windows)'.dependencies.windows]
36-
version = "0.48.0"
36+
version = "0.52.0"
3737
features = [
3838
"Win32_Foundation",
3939
"Win32_Storage_FileSystem",

compiler/rustc_data_structures/src/flock/windows.rs

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ impl Lock {
6969
&mut overlapped,
7070
)
7171
}
72-
.ok()
7372
.map_err(|e| {
7473
let err = io::Error::from_raw_os_error(e.code().0);
7574
debug!("failed acquiring file lock: {}", err);

compiler/rustc_data_structures/src/profiling.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -866,16 +866,14 @@ cfg_match! {
866866
use std::mem;
867867

868868
use windows::{
869-
// FIXME: change back to K32GetProcessMemoryInfo when windows crate
870-
// updated to 0.49.0+ to drop dependency on psapi.dll
871-
Win32::System::ProcessStatus::{GetProcessMemoryInfo, PROCESS_MEMORY_COUNTERS},
869+
Win32::System::ProcessStatus::{K32GetProcessMemoryInfo, PROCESS_MEMORY_COUNTERS},
872870
Win32::System::Threading::GetCurrentProcess,
873871
};
874872

875873
let mut pmc = PROCESS_MEMORY_COUNTERS::default();
876874
let pmc_size = mem::size_of_val(&pmc);
877875
unsafe {
878-
GetProcessMemoryInfo(
876+
K32GetProcessMemoryInfo(
879877
GetCurrentProcess(),
880878
&mut pmc,
881879
pmc_size as u32,

compiler/rustc_driver_impl/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ libc = "0.2"
6060
# tidy-alphabetical-end
6161

6262
[target.'cfg(windows)'.dependencies.windows]
63-
version = "0.48.0"
63+
version = "0.52.0"
6464
features = [
6565
"Win32_System_Diagnostics_Debug",
6666
]

compiler/rustc_errors/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ unicode-width = "0.1.4"
3030
# tidy-alphabetical-end
3131

3232
[target.'cfg(windows)'.dependencies.windows]
33-
version = "0.48.0"
33+
version = "0.52.0"
3434
features = [
3535
"Win32_Foundation",
3636
"Win32_Security",

compiler/rustc_errors/src/lock.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
2727
impl Drop for Handle {
2828
fn drop(&mut self) {
2929
unsafe {
30-
CloseHandle(self.0);
30+
// FIXME can panic here
31+
CloseHandle(self.0).unwrap();
3132
}
3233
}
3334
}
@@ -37,7 +38,8 @@ pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
3738
impl Drop for Guard {
3839
fn drop(&mut self) {
3940
unsafe {
40-
ReleaseMutex((self.0).0);
41+
// FIXME can panic here
42+
ReleaseMutex((self.0).0).unwrap();
4143
}
4244
}
4345
}

compiler/rustc_session/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ libc = "0.2"
3030
# tidy-alphabetical-end
3131

3232
[target.'cfg(windows)'.dependencies.windows]
33-
version = "0.48.0"
33+
version = "0.52.0"
3434
features = [
3535
"Win32_Foundation",
3636
"Win32_System_LibraryLoader",

compiler/rustc_session/src/filesearch.rs

-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ fn current_dll_path() -> Result<PathBuf, String> {
143143
&mut module,
144144
)
145145
}
146-
.ok()
147146
.map_err(|e| e.to_string())?;
148147

149148
let mut filename = vec![0; 1024];

src/tools/compiletest/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ libc = "0.2"
3434
miow = "0.6"
3535

3636
[target.'cfg(windows)'.dependencies.windows]
37-
version = "0.48.0"
37+
version = "0.52.0"
3838
features = [
3939
"Win32_Foundation",
4040
"Win32_System_Diagnostics_Debug",

0 commit comments

Comments
 (0)