@@ -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" ) ]
1414pub 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" ) ]
229229pub 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" ) ]
306306pub 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" ) ]
375375pub 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" ) ]
660660pub 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" ) ]
755755pub 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" ) ]
817817pub trait DirBuilderExt {
818818 /// Sets the mode to create new directories with. This option defaults to
0 commit comments