Skip to content

Commit f3ac2f7

Browse files
committed
std: update comments referencing modules in sys
1 parent a921880 commit f3ac2f7

File tree

22 files changed

+47
-47
lines changed

22 files changed

+47
-47
lines changed

.reuse/dep5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Copyright: 2019 The Crossbeam Project Developers
5858
The Rust Project Developers (see https://thanks.rust-lang.org)
5959
License: MIT OR Apache-2.0
6060

61-
Files: library/std/src/sys/unix/locks/fuchsia_mutex.rs
61+
Files: library/std/src/sys/pal/unix/locks/fuchsia_mutex.rs
6262
Copyright: 2016 The Fuchsia Authors
6363
The Rust Project Developers (see https://thanks.rust-lang.org)
6464
License: BSD-2-Clause AND (MIT OR Apache-2.0)

compiler/rustc_session/src/config/sigpipe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
//! NOTE: Keep these constants in sync with `library/std/src/sys/unix/mod.rs`!
1+
//! NOTE: Keep these constants in sync with `library/std/src/sys/pal/unix/mod.rs`!
22
33
/// The default value if `#[unix_sigpipe]` is not specified. This resolves
4-
/// to `SIG_IGN` in `library/std/src/sys/unix/mod.rs`.
4+
/// to `SIG_IGN` in `library/std/src/sys/pal/unix/mod.rs`.
55
///
66
/// Note that `SIG_IGN` has been the Rust default since 2014. See
77
/// <https://github.com/rust-lang/rust/issues/62569>.

compiler/rustc_target/src/spec/illumos_base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub fn opts() -> TargetOptions {
3939
// While we support ELF TLS, rust requires a way to register
4040
// cleanup handlers (in C, this would be something along the lines of:
4141
// void register_callback(void (*fn)(void *), void *arg);
42-
// (see src/libstd/sys/unix/fast_thread_local.rs) that is currently
42+
// (see library/std/sys/pal/unix/fast_thread_local.rs) that is currently
4343
// missing in illumos. For now at least, we must fallback to using
4444
// pthread_{get,set}specific.
4545
//has_thread_local: true,

library/core/tests/num/int_log.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! This tests the `Integer::{ilog,log2,log10}` methods. These tests are in a
22
//! separate file because there's both a large number of them, and not all tests
33
//! can be run on Android. This is because in Android `ilog2` uses an imprecise
4-
//! approximation:https://github.com/rust-lang/rust/blob/4825e12fc9c79954aa0fe18f5521efa6c19c7539/src/libstd/sys/unix/android.rs#L27-L53
4+
//! approximation:https://github.com/rust-lang/rust/blob/4825e12fc9c79954aa0fe18f5521efa6c19c7539/src/libstd/sys/pal/unix/android.rs#L27-L53
55
66
#[test]
77
fn checked_ilog() {

library/std/src/sys/pal/solid/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pub fn cvt_gai(err: c_int) -> io::Result<()> {
163163
}
164164
}
165165

166-
/// Just to provide the same interface as sys/unix/net.rs
166+
/// Just to provide the same interface as sys/pal/unix/net.rs
167167
pub fn cvt_r<T, F>(mut f: F) -> io::Result<T>
168168
where
169169
T: IsMinusOne,

library/std/src/sys/pal/wasi/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pub fn env() -> Env {
209209
return Env { iter: result.into_iter() };
210210
}
211211

212-
// See src/libstd/sys/unix/os.rs, same as that
212+
// See src/libstd/sys/pal/unix/os.rs, same as that
213213
fn parse(input: &[u8]) -> Option<(OsString, OsString)> {
214214
if input.is_empty() {
215215
return None;

library/std/src/sys/pal/windows/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub fn cvt_gai(err: c_int) -> io::Result<()> {
9090
if err == 0 { Ok(()) } else { Err(last_error()) }
9191
}
9292

93-
/// Just to provide the same interface as sys/unix/net.rs
93+
/// Just to provide the same interface as sys/pal/unix/net.rs
9494
pub fn cvt_r<T, F>(mut f: F) -> io::Result<T>
9595
where
9696
T: IsMinusOne,

src/tools/generate-windows-sys/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const PRELUDE: &str = r#"// This file is autogenerated.
1616
fn main() -> Result<(), Box<dyn Error>> {
1717
let mut path: PathBuf =
1818
env::args_os().nth(1).expect("a path to the rust repository is required").into();
19-
path.push("library/std/src/sys/windows/c");
19+
path.push("library/std/src/sys/pal/windows/c");
2020
env::set_current_dir(&path)?;
2121

2222
let info = windows_bindgen::bindgen(["--etc", "windows_sys.lst"])?;

src/tools/miri/src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use rand::RngCore;
2323
use crate::*;
2424

2525
// This mapping should match `decode_error_kind` in
26-
// <https://github.com/rust-lang/rust/blob/master/library/std/src/sys/unix/mod.rs>.
26+
// <https://github.com/rust-lang/rust/blob/master/library/std/src/sys/pal/unix/mod.rs>.
2727
const UNIX_IO_ERROR_TABLE: &[(&str, std::io::ErrorKind)] = {
2828
use std::io::ErrorKind::*;
2929
&[

src/tools/miri/src/shims/foreign_items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ trait EvalContextExtPriv<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
342342
/// Returns the minimum alignment for the target architecture for allocations of the given size.
343343
fn min_align(&self, size: u64, kind: MiriMemoryKind) -> Align {
344344
let this = self.eval_context_ref();
345-
// List taken from `library/std/src/sys/common/alloc.rs`.
345+
// List taken from `library/std/src/sys/pal/common/alloc.rs`.
346346
// This list should be kept in sync with the one from libstd.
347347
let min_align = match this.tcx.sess.target.arch.as_ref() {
348348
"x86" | "arm" | "mips" | "mips32r6" | "powerpc" | "powerpc64" | "asmjs" | "wasm32" => 8,

0 commit comments

Comments
 (0)