Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
64137c4
Parameters in doc comment should be formatted code-like.
frewsxcv Jun 22, 2016
03f9dd2
Fix typo in bootstrap README
Vogtinator Jun 22, 2016
eb17527
Switched tense to clarify what is happening in the example
Jun 22, 2016
bbc33ac
Add example for `std::thread::sleep`.
frewsxcv Jun 22, 2016
2d7bac7
Improve diagnostics E0425: `use` (public) items
liigo Jun 20, 2016
5215acc
Fix typo in future incompatible lint
sanxiyn Jun 23, 2016
0187aec
Renames "lets_do_this" macro more appropriately.
pyjarrett Jun 24, 2016
6e848be
Indicate how the `JoinHandle` struct is created.
frewsxcv Jun 23, 2016
5e9b75e
Add examples in docs for `JoinHandle`.
frewsxcv Jun 24, 2016
fd388d4
Add doc example for `std::thread::Builder::name`.
frewsxcv Jun 25, 2016
c55f092
Add hyperlinks to `std::fs` functions from `std::path`.
frewsxcv Jun 25, 2016
f300faf
Indicate how the `std::path::Components` struct is created.
frewsxcv Jun 25, 2016
6b949e9
Rollup merge of #34379 - liigo:patch-11, r=GuillaumeGomez
GuillaumeGomez Jun 25, 2016
dfbf619
Rollup merge of #34406 - frewsxcv:sleep-ex, r=GuillaumeGomez
GuillaumeGomez Jun 25, 2016
7526190
Rollup merge of #34410 - frewsxcv:code-like, r=apasel422
GuillaumeGomez Jun 25, 2016
4d7dac0
Rollup merge of #34411 - Vogtinator:patch-1, r=sanxiyn
GuillaumeGomez Jun 25, 2016
50164ab
Rollup merge of #34414 - alfiedotwtf:patch-1, r=steveklabnik
GuillaumeGomez Jun 25, 2016
0ee27da
Rollup merge of #34435 - sanxiyn:typo, r=apasel422
GuillaumeGomez Jun 25, 2016
d05a9c5
Rollup merge of #34438 - frewsxcv:joinhandle, r=GuillaumeGomez
GuillaumeGomez Jun 25, 2016
0934fc1
Rollup merge of #34445 - pyjarrett:lang_item_table_macro_rename, r=js…
GuillaumeGomez Jun 25, 2016
7fc9b3b
Rollup merge of #34465 - frewsxcv:builder-name-example, r=GuillaumeGomez
GuillaumeGomez Jun 25, 2016
43b388f
Rollup merge of #34468 - frewsxcv:doc-links, r=GuillaumeGomez
GuillaumeGomez Jun 25, 2016
a4a4f1f
Rollup merge of #34469 - frewsxcv:path-components, r=GuillaumeGomez
GuillaumeGomez Jun 25, 2016
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add hyperlinks to std::fs functions from std::path.
  • Loading branch information
frewsxcv committed Jun 25, 2016
commit c55f0922aa6df5be8c4ac00757ec691f9fd629d7
20 changes: 15 additions & 5 deletions src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1781,15 +1781,19 @@ impl Path {
/// This function will traverse symbolic links to query information about the
/// destination file.
///
/// This is an alias to `fs::metadata`.
/// This is an alias to [`fs::metadata`].
///
/// [`fs::metadata`]: ../fs/fn.metadata.html
#[stable(feature = "path_ext", since = "1.5.0")]
pub fn metadata(&self) -> io::Result<fs::Metadata> {
fs::metadata(self)
}

/// Query the metadata about a file without following symlinks.
///
/// This is an alias to `fs::symlink_metadata`.
/// This is an alias to [`fs::symlink_metadata`].
///
/// [`fs::symlink_metadata`]: ../fs/fn.symlink_metadata.html
#[stable(feature = "path_ext", since = "1.5.0")]
pub fn symlink_metadata(&self) -> io::Result<fs::Metadata> {
fs::symlink_metadata(self)
Expand All @@ -1798,15 +1802,19 @@ impl Path {
/// Returns the canonical form of the path with all intermediate components
/// normalized and symbolic links resolved.
///
/// This is an alias to `fs::canonicalize`.
/// This is an alias to [`fs::canonicalize`].
///
/// [`fs::canonicalize`]: ../fs/fn.canonicalize.html
#[stable(feature = "path_ext", since = "1.5.0")]
pub fn canonicalize(&self) -> io::Result<PathBuf> {
fs::canonicalize(self)
}

/// Reads a symbolic link, returning the file that the link points to.
///
/// This is an alias to `fs::read_link`.
/// This is an alias to [`fs::read_link`].
///
/// [`fs::read_link`]: ../fs/fn.read_link.html
#[stable(feature = "path_ext", since = "1.5.0")]
pub fn read_link(&self) -> io::Result<PathBuf> {
fs::read_link(self)
Expand All @@ -1817,7 +1825,9 @@ impl Path {
/// The iterator will yield instances of `io::Result<DirEntry>`. New errors may
/// be encountered after an iterator is initially constructed.
///
/// This is an alias to `fs::read_dir`.
/// This is an alias to [`fs::read_dir`].
///
/// [`fs::read_dir`]: ../fs/fn.read_dir.html
#[stable(feature = "path_ext", since = "1.5.0")]
pub fn read_dir(&self) -> io::Result<fs::ReadDir> {
fs::read_dir(self)
Expand Down