Skip to content

Commit d6efead

Browse files
committed
std: fix module references on Windows
1 parent 411f34b commit d6efead

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: library/std/src/sys/pal/windows/args.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#[cfg(test)]
77
mod tests;
88

9+
use super::os::current_exe;
910
use crate::ffi::OsString;
1011
use crate::fmt;
1112
use crate::io;
@@ -14,7 +15,6 @@ use crate::os::windows::prelude::*;
1415
use crate::path::{Path, PathBuf};
1516
use crate::sys::path::get_long_path;
1617
use crate::sys::process::ensure_no_nuls;
17-
use crate::sys::windows::os::current_exe;
1818
use crate::sys::{c, to_u16s};
1919
use crate::sys_common::wstr::WStrUnits;
2020
use crate::vec;
@@ -318,8 +318,8 @@ pub(crate) fn to_user_path(path: &Path) -> io::Result<Vec<u16>> {
318318
from_wide_to_user_path(to_u16s(path)?)
319319
}
320320
pub(crate) fn from_wide_to_user_path(mut path: Vec<u16>) -> io::Result<Vec<u16>> {
321+
use super::fill_utf16_buf;
321322
use crate::ptr;
322-
use crate::sys::windows::fill_utf16_buf;
323323

324324
// UTF-16 encoded code points, used in parsing and building UTF-16 paths.
325325
// All of these are in the ASCII range so they can be cast directly to `u16`.

Diff for: library/std/src/sys/pal/windows/args/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
use super::*;
12
use crate::ffi::OsString;
2-
use crate::sys::windows::args::*;
33

44
fn chk(string: &str, parts: &[&str]) {
55
let mut wide: Vec<u16> = OsString::from(string).encode_wide().collect();

Diff for: library/std/src/sys/pal/windows/locks/condvar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl Condvar {
2727
let r = c::SleepConditionVariableSRW(
2828
self.inner.get(),
2929
mutex::raw(mutex),
30-
crate::sys::windows::dur2timeout(dur),
30+
crate::sys::pal::windows::dur2timeout(dur),
3131
0,
3232
);
3333
if r == 0 {

Diff for: library/std/src/sys/pal/windows/stdio.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![unstable(issue = "none", feature = "windows_stdio")]
22

3+
use super::api;
34
use crate::cmp;
45
use crate::io;
56
use crate::mem::MaybeUninit;
@@ -9,7 +10,6 @@ use crate::str;
910
use crate::sys::c;
1011
use crate::sys::cvt;
1112
use crate::sys::handle::Handle;
12-
use crate::sys::windows::api;
1313
use core::str::utf8_char_width;
1414

1515
#[cfg(test)]

0 commit comments

Comments
 (0)