Skip to content

Commit 7c436a8

Browse files
committed
update paths in comments
1 parent 762cd48 commit 7c436a8

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

compiler/rustc_session/src/config/sigpipe.rs

+2-2
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/base/illumos.rs

+1-1
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 src/libstd/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

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub fn cvt_gai(err: c_int) -> io::Result<()> {
6868
}
6969
}
7070

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

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

+1-1
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/api.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//! This module must only depend on core and not on std types as the eventual
2828
//! hope is to have std depend on sys and not the other way around.
2929
//! However, some amount of glue code may currently be necessary so such code
30-
//! should go in sys/windows/mod.rs rather than here. See `IoResult` as an example.
30+
//! should go in sys/pal/windows/mod.rs rather than here. See `IoResult` as an example.
3131
3232
use core::ffi::c_void;
3333
use core::ptr::addr_of;

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

+1-1
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/miri/src/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use rand::RngCore;
2525
use crate::*;
2626

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

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

+1-1
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" | "wasm32" => 8,

0 commit comments

Comments
 (0)