Skip to content

Commit d5bee64

Browse files
Prefer unprefixed paths for well known structs
1 parent 182d99c commit d5bee64

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

src/libstd/sys/redox/ext/ffi.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ use mem;
1717
use sys::os_str::Buf;
1818
use sys_common::{FromInner, IntoInner, AsInner};
1919

20-
/// Redox-specific extensions to [`ffi::OsString`].
20+
/// Redox-specific extensions to [`OsString`].
2121
///
22-
/// [`ffi::OsString`]: ../../../../std/ffi/struct.OsString.html
22+
/// [`OsString`]: ../../../../std/ffi/struct.OsString.html
2323
#[stable(feature = "rust1", since = "1.0.0")]
2424
pub trait OsStringExt {
2525
/// Creates an `OsString` from a byte vector.
@@ -41,9 +41,9 @@ impl OsStringExt for OsString {
4141
}
4242
}
4343

44-
/// Redox-specific extensions to [`ffi::OsStr`].
44+
/// Redox-specific extensions to [`OsStr`].
4545
///
46-
/// [`ffi::OsStr`]: ../../../../std/ffi/struct.OsStr.html
46+
/// [`OsStr`]: ../../../../std/ffi/struct.OsStr.html
4747
#[stable(feature = "rust1", since = "1.0.0")]
4848
pub trait OsStrExt {
4949
#[stable(feature = "rust1", since = "1.0.0")]

src/libstd/sys/redox/ext/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,12 @@ impl MetadataExt for fs::Metadata {
260260
}
261261
}
262262

263-
/// Redox-specific extensions for [`fs::FileType`].
263+
/// Redox-specific extensions for [`FileType`].
264264
///
265265
/// Adds support for special Unix file types such as block/character devices,
266266
/// pipes, and sockets.
267267
///
268-
/// [`fs::FileType`]: ../../../../std/fs/struct.FileType.html
268+
/// [`FileType`]: ../../../../std/fs/struct.FileType.html
269269
#[stable(feature = "file_type_ext", since = "1.5.0")]
270270
pub trait FileTypeExt {
271271
/// Returns whether this file type is a block device.

src/libstd/sys/redox/ext/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use process;
1818
use sys;
1919
use sys_common::{AsInnerMut, AsInner, FromInner, IntoInner};
2020

21-
/// Redox-specific extensions to the [`process::Command`] builder.
21+
/// Redox-specific extensions to the [`process::Command`] builder,
2222
///
2323
/// [`process::Command`]: ../../../../std/process/struct.Command.html
2424
#[stable(feature = "rust1", since = "1.0.0")]

src/libstd/sys/unix/ext/ffi.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ use mem;
1717
use sys::os_str::Buf;
1818
use sys_common::{FromInner, IntoInner, AsInner};
1919

20-
/// Unix-specific extensions to [`ffi::OsString`].
20+
/// Unix-specific extensions to [`OsString`].
2121
///
22-
/// [`ffi::OsString`]: ../../../../std/ffi/struct.OsString.html
22+
/// [`OsString`]: ../../../../std/ffi/struct.OsString.html
2323
#[stable(feature = "rust1", since = "1.0.0")]
2424
pub trait OsStringExt {
2525
/// Creates an [`OsString`] from a byte vector.
@@ -68,9 +68,9 @@ impl OsStringExt for OsString {
6868
}
6969
}
7070

71-
/// Unix-specific extensions to [`ffi::OsStr`].
71+
/// Unix-specific extensions to [`OsStr`].
7272
///
73-
/// [`ffi::OsStr`]: ../../../../std/ffi/struct.OsStr.html
73+
/// [`OsStr`]: ../../../../std/ffi/struct.OsStr.html
7474
#[stable(feature = "rust1", since = "1.0.0")]
7575
pub trait OsStrExt {
7676
#[stable(feature = "rust1", since = "1.0.0")]

src/libstd/sys/unix/ext/fs.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ use sys;
2020
use sys_common::{FromInner, AsInner, AsInnerMut};
2121
use sys::platform::fs::MetadataExt as UnixMetadataExt;
2222

23-
/// Unix-specific extensions to [`fs::File`].
23+
/// Unix-specific extensions to [`File`].
2424
///
25-
/// [`fs::File`]: ../../../../std/fs/struct.File.html
25+
/// [`File`]: ../../../../std/fs/struct.File.html
2626
#[stable(feature = "file_offset", since = "1.15.0")]
2727
pub trait FileExt {
2828
/// Reads a number of bytes starting from a given offset.
@@ -555,12 +555,12 @@ impl MetadataExt for fs::Metadata {
555555
fn blocks(&self) -> u64 { self.st_blocks() }
556556
}
557557

558-
/// Unix-specific extensions for [`fs::FileType`].
558+
/// Unix-specific extensions for [`FileType`].
559559
///
560560
/// Adds support for special Unix file types such as block/character devices,
561561
/// pipes, and sockets.
562562
///
563-
/// [`fs::FileType`]: ../../../../std/fs/struct.FileType.html
563+
/// [`FileType`]: ../../../../std/fs/struct.FileType.html
564564
#[stable(feature = "file_type_ext", since = "1.5.0")]
565565
pub trait FileTypeExt {
566566
/// Returns whether this file type is a block device.

src/libstd/sys/windows/ext/ffi.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ use sys_common::{FromInner, AsInner};
7676
#[stable(feature = "rust1", since = "1.0.0")]
7777
pub use sys_common::wtf8::EncodeWide;
7878

79-
/// Windows-specific extensions to [`ffi::OsString`].
79+
/// Windows-specific extensions to [`OsString`].
8080
///
81-
/// [`ffi::OsString`]: ../../../../std/ffi/struct.OsString.html
81+
/// [`OsString`]: ../../../../std/ffi/struct.OsString.html
8282
#[stable(feature = "rust1", since = "1.0.0")]
8383
pub trait OsStringExt {
8484
/// Creates an `OsString` from a potentially ill-formed UTF-16 slice of
@@ -111,9 +111,9 @@ impl OsStringExt for OsString {
111111
}
112112
}
113113

114-
/// Windows-specific extensions to [`ffi::OsStr`].
114+
/// Windows-specific extensions to [`OsStr`].
115115
///
116-
/// [`ffi::OsStr`]: ../../../../std/ffi/struct.OsStr.html
116+
/// [`OsStr`]: ../../../../std/ffi/struct.OsStr.html
117117
#[stable(feature = "rust1", since = "1.0.0")]
118118
pub trait OsStrExt {
119119
/// Re-encodes an `OsStr` as a wide character sequence, i.e. potentially

src/libstd/sys/windows/ext/fs.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use path::Path;
1818
use sys;
1919
use sys_common::{AsInnerMut, AsInner};
2020

21-
/// Windows-specific extensions to [`fs::File`].
21+
/// Windows-specific extensions to [`File`].
2222
///
23-
/// [`fs::File`]: ../../../fs/struct.File.html
23+
/// [`File`]: ../../../fs/struct.File.html
2424
#[stable(feature = "file_offset", since = "1.15.0")]
2525
pub trait FileExt {
2626
/// Seeks to a given position and reads a number of bytes.
@@ -444,11 +444,11 @@ impl MetadataExt for Metadata {
444444
fn file_size(&self) -> u64 { self.as_inner().size() }
445445
}
446446

447-
/// Windows-specific extensions to [`fs::FileType`].
447+
/// Windows-specific extensions to [`FileType`].
448448
///
449449
/// On Windows, a symbolic link knows whether it is a file or directory.
450450
///
451-
/// [`fs::FileType`]: ../../../../std/fs/struct.FileType.html
451+
/// [`FileType`]: ../../../../std/fs/struct.FileType.html
452452
#[unstable(feature = "windows_file_type_ext", issue = "0")]
453453
pub trait FileTypeExt {
454454
/// Returns whether this file type is a symbolic link that is also a directory.

0 commit comments

Comments
 (0)