@@ -9,9 +9,7 @@ use crate::sys;
99use  crate :: sys:: platform:: fs:: MetadataExt  as  UnixMetadataExt ; 
1010use  crate :: sys_common:: { AsInner ,  AsInnerMut ,  FromInner } ; 
1111
12- /// Unix-specific extensions to [`File`]. 
13- /// 
14- /// [`File`]: ../../../../std/fs/struct.File.html 
12+ /// Unix-specific extensions to [`fs::File`]. 
1513#[ stable( feature = "file_offset" ,  since = "1.15.0" ) ]  
1614pub  trait  FileExt  { 
1715    /// Reads a number of bytes starting from a given offset. 
@@ -55,19 +53,18 @@ pub trait FileExt {
5553     /// 
5654     /// The current file cursor is not affected by this function. 
5755     /// 
58-      /// Similar to [`Read::read_exact`] but uses [`read_at`] instead of `read`. 
56+      /// Similar to [`io:: Read::read_exact`] but uses [`read_at`] instead of `read`. 
5957     /// 
60-      /// [`Read::read_exact`]: ../../../../std/io/trait.Read.html#method.read_exact 
61-      /// [`read_at`]: #tymethod.read_at 
58+      /// [`read_at`]: FileExt::read_at 
6259     /// 
6360     /// # Errors 
6461     /// 
6562     /// If this function encounters an error of the kind 
66-      /// [`ErrorKind::Interrupted`] then the error is ignored and the operation 
63+      /// [`io:: ErrorKind::Interrupted`] then the error is ignored and the operation 
6764     /// will continue. 
6865     /// 
6966     /// If this function encounters an "end of file" before completely filling 
70-      /// the buffer, it returns an error of the kind [`ErrorKind::UnexpectedEof`]. 
67+      /// the buffer, it returns an error of the kind [`io:: ErrorKind::UnexpectedEof`]. 
7168     /// The contents of `buf` are unspecified in this case. 
7269     /// 
7370     /// If any other read error is encountered then this function immediately 
@@ -77,9 +74,6 @@ pub trait FileExt {
7774     /// has read, but it will never read more than would be necessary to 
7875     /// completely fill the buffer. 
7976     /// 
80-      /// [`ErrorKind::Interrupted`]: ../../../../std/io/enum.ErrorKind.html#variant.Interrupted 
81-      /// [`ErrorKind::UnexpectedEof`]: ../../../../std/io/enum.ErrorKind.html#variant.UnexpectedEof 
82-      /// 
8377     /// # Examples 
8478     /// 
8579     /// ```no_run 
@@ -161,19 +155,18 @@ pub trait FileExt {
161155     /// The current file cursor is not affected by this function. 
162156     /// 
163157     /// This method will continuously call [`write_at`] until there is no more data 
164-      /// to be written or an error of non-[`ErrorKind::Interrupted`] kind is 
158+      /// to be written or an error of non-[`io:: ErrorKind::Interrupted`] kind is 
165159     /// returned. This method will not return until the entire buffer has been 
166160     /// successfully written or such an error occurs. The first error that is 
167-      /// not of [`ErrorKind::Interrupted`] kind generated from this method will be 
161+      /// not of [`io:: ErrorKind::Interrupted`] kind generated from this method will be 
168162     /// returned. 
169163     /// 
170164     /// # Errors 
171165     /// 
172166     /// This function will return the first error of 
173-      /// non-[`ErrorKind::Interrupted`] kind that [`write_at`] returns. 
167+      /// non-[`io:: ErrorKind::Interrupted`] kind that [`write_at`] returns. 
174168     /// 
175-      /// [`ErrorKind::Interrupted`]: ../../../../std/io/enum.ErrorKind.html#variant.Interrupted 
176-      /// [`write_at`]: #tymethod.write_at 
169+      /// [`write_at`]: FileExt::write_at 
177170     /// 
178171     /// # Examples 
179172     /// 
@@ -223,8 +216,6 @@ impl FileExt for fs::File {
223216} 
224217
225218/// Unix-specific extensions to [`fs::Permissions`]. 
226- /// 
227- /// [`fs::Permissions`]: ../../../../std/fs/struct.Permissions.html 
228219#[ stable( feature = "fs_ext" ,  since = "1.1.0" ) ]  
229220pub  trait  PermissionsExt  { 
230221    /// Returns the underlying raw `st_mode` bits that contain the standard 
@@ -302,8 +293,6 @@ impl PermissionsExt for Permissions {
302293} 
303294
304295/// Unix-specific extensions to [`fs::OpenOptions`]. 
305- /// 
306- /// [`fs::OpenOptions`]: ../../../../std/fs/struct.OpenOptions.html 
307296#[ stable( feature = "fs_ext" ,  since = "1.1.0" ) ]  
308297pub  trait  OpenOptionsExt  { 
309298    /// Sets the mode bits that a new file will be created with. 
@@ -372,8 +361,6 @@ impl OpenOptionsExt for OpenOptions {
372361} 
373362
374363/// Unix-specific extensions to [`fs::Metadata`]. 
375- /// 
376- /// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html 
377364#[ stable( feature = "metadata_ext" ,  since = "1.1.0" ) ]  
378365pub  trait  MetadataExt  { 
379366    /// Returns the ID of the device containing the file. 
@@ -535,7 +522,7 @@ pub trait MetadataExt {
535522    fn  atime ( & self )  -> i64 ; 
536523    /// Returns the last access time of the file, in nanoseconds since [`atime`]. 
537524     /// 
538-      /// [`atime`]: #tymethod. atime 
525+      /// [`atime`]: MetadataExt:: atime 
539526     /// 
540527     /// # Examples 
541528     /// 
@@ -571,7 +558,7 @@ pub trait MetadataExt {
571558    fn  mtime ( & self )  -> i64 ; 
572559    /// Returns the last modification time of the file, in nanoseconds since [`mtime`]. 
573560     /// 
574-      /// [`mtime`]: #tymethod. mtime 
561+      /// [`mtime`]: MetadataExt:: mtime 
575562     /// 
576563     /// # Examples 
577564     /// 
@@ -607,7 +594,7 @@ pub trait MetadataExt {
607594    fn  ctime ( & self )  -> i64 ; 
608595    /// Returns the last status change time of the file, in nanoseconds since [`ctime`]. 
609596     /// 
610-      /// [`ctime`]: #tymethod. ctime 
597+      /// [`ctime`]: MetadataExt:: ctime 
611598     /// 
612599     /// # Examples 
613600     /// 
@@ -714,12 +701,10 @@ impl MetadataExt for fs::Metadata {
714701    } 
715702} 
716703
717- /// Unix-specific extensions for [`FileType`]. 
704+ /// Unix-specific extensions for [`fs:: FileType`]. 
718705/// 
719706/// Adds support for special Unix file types such as block/character devices, 
720707/// pipes, and sockets. 
721- /// 
722- /// [`FileType`]: ../../../../std/fs/struct.FileType.html 
723708#[ stable( feature = "file_type_ext" ,  since = "1.5.0" ) ]  
724709pub  trait  FileTypeExt  { 
725710    /// Returns `true` if this file type is a block device. 
@@ -813,8 +798,6 @@ impl FileTypeExt for fs::FileType {
813798} 
814799
815800/// Unix-specific extension methods for [`fs::DirEntry`]. 
816- /// 
817- /// [`fs::DirEntry`]: ../../../../std/fs/struct.DirEntry.html 
818801#[ stable( feature = "dir_entry_ext" ,  since = "1.1.0" ) ]  
819802pub  trait  DirEntryExt  { 
820803    /// Returns the underlying `d_ino` field in the contained `dirent` 
@@ -875,8 +858,6 @@ pub fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()>
875858} 
876859
877860/// Unix-specific extensions to [`fs::DirBuilder`]. 
878- /// 
879- /// [`fs::DirBuilder`]: ../../../../std/fs/struct.DirBuilder.html 
880861#[ stable( feature = "dir_builder" ,  since = "1.6.0" ) ]  
881862pub  trait  DirBuilderExt  { 
882863    /// Sets the mode to create new directories with. This option defaults to 
0 commit comments