Skip to content

Commit b54341a

Browse files
committed
resolve comments
1 parent 9463380 commit b54341a

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

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

Lines changed: 8 additions & 13 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`]: crate::fs::File
12+
/// [`File`]: 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`]: crate::fs::File::read
27+
/// [`File::read`]: fs::File::read
2828
///
2929
/// # Examples
3030
///
@@ -55,7 +55,7 @@ pub trait FileExt {
5555
///
5656
/// Similar to [`Read::read_exact`] but uses [`read_at`] instead of `read`.
5757
///
58-
/// [`Read::read_exact`]: crate::io::Read::read_exact
58+
/// [`Read::read_exact`]: io::Read::read_exact
5959
/// [`read_at`]: FileExt::read_at
6060
///
6161
/// # Errors
@@ -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`]: crate::io::ErrorKind::Interrupted
79-
/// [`ErrorKind::UnexpectedEof`]: crate::io::ErrorKind::UnexpectedEof
78+
/// [`ErrorKind::Interrupted`]: io::ErrorKind::Interrupted
79+
/// [`ErrorKind::UnexpectedEof`]: 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`]: crate::fs::File::write
135+
/// [`File::write`]: fs::File::write
136136
///
137137
/// # Examples
138138
///
@@ -171,7 +171,7 @@ 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`]: crate::io::ErrorKind::Interrupted
174+
/// [`ErrorKind::Interrupted`]: io::ErrorKind::Interrupted
175175
/// [`write_at`]: FileExt::write_at
176176
///
177177
/// # Examples
@@ -224,7 +224,6 @@ impl FileExt for fs::File {
224224

225225
/// Unix-specific extensions to [`fs::Permissions`].
226226
///
227-
/// [`fs::Permissions`]: crate::fs::Permissions
228227
#[stable(feature = "fs_ext", since = "1.1.0")]
229228
pub trait PermissionsExt {
230229
/// Returns the underlying raw `st_mode` bits that contain the standard
@@ -301,7 +300,6 @@ impl PermissionsExt for Permissions {
301300

302301
/// Unix-specific extensions to [`fs::OpenOptions`].
303302
///
304-
/// [`fs::OpenOptions`]: crate::fs::OpenOptions
305303
#[stable(feature = "fs_ext", since = "1.1.0")]
306304
pub trait OpenOptionsExt {
307305
/// Sets the mode bits that a new file will be created with.
@@ -370,7 +368,6 @@ impl OpenOptionsExt for OpenOptions {
370368

371369
/// Unix-specific extensions to [`fs::Metadata`].
372370
///
373-
/// [`fs::Metadata`]: crate::fs::Metadata
374371
#[stable(feature = "metadata_ext", since = "1.1.0")]
375372
pub trait MetadataExt {
376373
/// Returns the ID of the device containing the file.
@@ -655,7 +652,7 @@ impl MetadataExt for fs::Metadata {
655652
/// Adds support for special Unix file types such as block/character devices,
656653
/// pipes, and sockets.
657654
///
658-
/// [`FileType`]: crate::fs::FileType
655+
/// [`FileType`]: fs::FileType
659656
#[stable(feature = "file_type_ext", since = "1.5.0")]
660657
pub trait FileTypeExt {
661658
/// Returns whether this file type is a block device.
@@ -750,7 +747,6 @@ impl FileTypeExt for fs::FileType {
750747

751748
/// Unix-specific extension methods for [`fs::DirEntry`].
752749
///
753-
/// [`fs::DirEntry`]: crate::fs::DirEntry
754750
#[stable(feature = "dir_entry_ext", since = "1.1.0")]
755751
pub trait DirEntryExt {
756752
/// Returns the underlying `d_ino` field in the contained `dirent`
@@ -812,7 +808,6 @@ pub fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()>
812808

813809
/// Unix-specific extensions to [`fs::DirBuilder`].
814810
///
815-
/// [`fs::DirBuilder`]: crate::fs::DirBuilder
816811
#[stable(feature = "dir_builder", since = "1.6.0")]
817812
pub trait DirBuilderExt {
818813
/// Sets the mode to create new directories with. This option defaults to

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

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

1212
/// Unix-specific extensions to the [`process::Command`] builder.
1313
///
14-
/// [`process::Command`]: crate::process::Command
1514
#[stable(feature = "rust1", since = "1.0.0")]
1615
pub trait CommandExt {
1716
/// Sets the child process's user ID. This translates to a
@@ -94,7 +93,6 @@ pub trait CommandExt {
9493
/// a new child. Like spawn, however, the default behavior for the stdio
9594
/// descriptors will be to inherited from the current process.
9695
///
97-
/// [`process::exit`]: crate::process::exit
9896
///
9997
/// # Notes
10098
///
@@ -152,7 +150,6 @@ impl CommandExt for process::Command {
152150

153151
/// Unix-specific extensions to [`process::ExitStatus`].
154152
///
155-
/// [`process::ExitStatus`]: crate::process::ExitStatus
156153
#[stable(feature = "rust1", since = "1.0.0")]
157154
pub trait ExitStatusExt {
158155
/// Creates a new `ExitStatus` from the raw underlying `i32` return value of

0 commit comments

Comments
 (0)