Skip to content

Commit 9463380

Browse files
committed
Switch to intra-doc links in std/src/sys/vxworks/ext/{fs,process}.rs
1 parent 5205b97 commit 9463380

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

library/std/src/sys/vxworks/ext/fs.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::sys_common::{AsInner, AsInnerMut, FromInner};
99

1010
/// Unix-specific extensions to [`File`].
1111
///
12-
/// [`File`]: ../../../../std/fs/struct.File.html
12+
/// [`File`]: crate::fs::File
1313
#[stable(feature = "file_offset", since = "1.15.0")]
1414
pub trait FileExt {
1515
/// Reads a number of bytes starting from a given offset.
@@ -24,7 +24,7 @@ pub trait FileExt {
2424
/// Note that similar to [`File::read`], it is not an error to return with a
2525
/// short read.
2626
///
27-
/// [`File::read`]: ../../../../std/fs/struct.File.html#method.read
27+
/// [`File::read`]: crate::fs::File::read
2828
///
2929
/// # Examples
3030
///
@@ -55,8 +55,8 @@ pub trait FileExt {
5555
///
5656
/// Similar to [`Read::read_exact`] but uses [`read_at`] instead of `read`.
5757
///
58-
/// [`Read::read_exact`]: ../../../../std/io/trait.Read.html#method.read_exact
59-
/// [`read_at`]: #tymethod.read_at
58+
/// [`Read::read_exact`]: crate::io::Read::read_exact
59+
/// [`read_at`]: FileExt::read_at
6060
///
6161
/// # Errors
6262
///
@@ -75,8 +75,8 @@ pub trait FileExt {
7575
/// has read, but it will never read more than would be necessary to
7676
/// completely fill the buffer.
7777
///
78-
/// [`ErrorKind::Interrupted`]: ../../../../std/io/enum.ErrorKind.html#variant.Interrupted
79-
/// [`ErrorKind::UnexpectedEof`]: ../../../../std/io/enum.ErrorKind.html#variant.UnexpectedEof
78+
/// [`ErrorKind::Interrupted`]: crate::io::ErrorKind::Interrupted
79+
/// [`ErrorKind::UnexpectedEof`]: crate::io::ErrorKind::UnexpectedEof
8080
///
8181
/// # Examples
8282
///
@@ -132,7 +132,7 @@ pub trait FileExt {
132132
/// Note that similar to [`File::write`], it is not an error to return a
133133
/// short write.
134134
///
135-
/// [`File::write`]: ../../../../std/fs/struct.File.html#method.write
135+
/// [`File::write`]: crate::fs::File::write
136136
///
137137
/// # Examples
138138
///
@@ -171,8 +171,8 @@ pub trait FileExt {
171171
/// This function will return the first error of
172172
/// non-[`ErrorKind::Interrupted`] kind that [`write_at`] returns.
173173
///
174-
/// [`ErrorKind::Interrupted`]: ../../../../std/io/enum.ErrorKind.html#variant.Interrupted
175-
/// [`write_at`]: #tymethod.write_at
174+
/// [`ErrorKind::Interrupted`]: crate::io::ErrorKind::Interrupted
175+
/// [`write_at`]: FileExt::write_at
176176
///
177177
/// # Examples
178178
///
@@ -224,7 +224,7 @@ impl FileExt for fs::File {
224224

225225
/// Unix-specific extensions to [`fs::Permissions`].
226226
///
227-
/// [`fs::Permissions`]: ../../../../std/fs/struct.Permissions.html
227+
/// [`fs::Permissions`]: crate::fs::Permissions
228228
#[stable(feature = "fs_ext", since = "1.1.0")]
229229
pub trait PermissionsExt {
230230
/// Returns the underlying raw `st_mode` bits that contain the standard
@@ -301,7 +301,7 @@ impl PermissionsExt for Permissions {
301301

302302
/// Unix-specific extensions to [`fs::OpenOptions`].
303303
///
304-
/// [`fs::OpenOptions`]: ../../../../std/fs/struct.OpenOptions.html
304+
/// [`fs::OpenOptions`]: crate::fs::OpenOptions
305305
#[stable(feature = "fs_ext", since = "1.1.0")]
306306
pub trait OpenOptionsExt {
307307
/// Sets the mode bits that a new file will be created with.
@@ -370,7 +370,7 @@ impl OpenOptionsExt for OpenOptions {
370370

371371
/// Unix-specific extensions to [`fs::Metadata`].
372372
///
373-
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
373+
/// [`fs::Metadata`]: crate::fs::Metadata
374374
#[stable(feature = "metadata_ext", since = "1.1.0")]
375375
pub trait MetadataExt {
376376
/// Returns the ID of the device containing the file.
@@ -655,7 +655,7 @@ impl MetadataExt for fs::Metadata {
655655
/// Adds support for special Unix file types such as block/character devices,
656656
/// pipes, and sockets.
657657
///
658-
/// [`FileType`]: ../../../../std/fs/struct.FileType.html
658+
/// [`FileType`]: crate::fs::FileType
659659
#[stable(feature = "file_type_ext", since = "1.5.0")]
660660
pub trait FileTypeExt {
661661
/// Returns whether this file type is a block device.
@@ -750,7 +750,7 @@ impl FileTypeExt for fs::FileType {
750750

751751
/// Unix-specific extension methods for [`fs::DirEntry`].
752752
///
753-
/// [`fs::DirEntry`]: ../../../../std/fs/struct.DirEntry.html
753+
/// [`fs::DirEntry`]: crate::fs::DirEntry
754754
#[stable(feature = "dir_entry_ext", since = "1.1.0")]
755755
pub trait DirEntryExt {
756756
/// Returns the underlying `d_ino` field in the contained `dirent`
@@ -812,7 +812,7 @@ pub fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()>
812812

813813
/// Unix-specific extensions to [`fs::DirBuilder`].
814814
///
815-
/// [`fs::DirBuilder`]: ../../../../std/fs/struct.DirBuilder.html
815+
/// [`fs::DirBuilder`]: crate::fs::DirBuilder
816816
#[stable(feature = "dir_builder", since = "1.6.0")]
817817
pub trait DirBuilderExt {
818818
/// Sets the mode to create new directories with. This option defaults to

library/std/src/sys/vxworks/ext/process.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};
1111

1212
/// Unix-specific extensions to the [`process::Command`] builder.
1313
///
14-
/// [`process::Command`]: ../../../../std/process/struct.Command.html
14+
/// [`process::Command`]: crate::process::Command
1515
#[stable(feature = "rust1", since = "1.0.0")]
1616
pub trait CommandExt {
1717
/// Sets the child process's user ID. This translates to a
@@ -65,7 +65,7 @@ pub trait CommandExt {
6565
/// This method is stable and usable, but it should be unsafe. To fix
6666
/// that, it got deprecated in favor of the unsafe [`pre_exec`].
6767
///
68-
/// [`pre_exec`]: #tymethod.pre_exec
68+
/// [`pre_exec`]: CommandExt::pre_exec
6969
#[stable(feature = "process_exec", since = "1.15.0")]
7070
#[rustc_deprecated(since = "1.37.0", reason = "should be unsafe, use `pre_exec` instead")]
7171
fn before_exec<F>(&mut self, f: F) -> &mut process::Command
@@ -94,7 +94,7 @@ pub trait CommandExt {
9494
/// a new child. Like spawn, however, the default behavior for the stdio
9595
/// descriptors will be to inherited from the current process.
9696
///
97-
/// [`process::exit`]: ../../../process/fn.exit.html
97+
/// [`process::exit`]: crate::process::exit
9898
///
9999
/// # Notes
100100
///
@@ -152,7 +152,7 @@ impl CommandExt for process::Command {
152152

153153
/// Unix-specific extensions to [`process::ExitStatus`].
154154
///
155-
/// [`process::ExitStatus`]: ../../../../std/process/struct.ExitStatus.html
155+
/// [`process::ExitStatus`]: crate::process::ExitStatus
156156
#[stable(feature = "rust1", since = "1.0.0")]
157157
pub trait ExitStatusExt {
158158
/// Creates a new `ExitStatus` from the raw underlying `i32` return value of

0 commit comments

Comments
 (0)