Skip to content

Commit

Permalink
Rollup merge of #79399 - pickfire:patch-3, r=JohnTitor
Browse files Browse the repository at this point in the history
Use detailed and shorter fs error explaination

Includes suggestion from `@the8472` #79390 (comment)
  • Loading branch information
JohnTitor authored Mar 27, 2021
2 parents 1010038 + 5495ce0 commit 1f33a6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1677,9 +1677,9 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()>
/// This function will return an error in the following situations, but is not
/// limited to just these cases:
///
/// * The `from` path is not a file.
/// * The `from` file does not exist.
/// * The current process does not have the permission rights to access
/// * `from` is neither a regular file nor a symlink to a regular file.
/// * `from` does not exist.
/// * The current process does not have the permission rights to read
/// `from` or write `to`.
///
/// # Examples
Expand Down

0 comments on commit 1f33a6a

Please sign in to comment.