diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-05-05 16:30:13 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-05-26 19:02:24 -0400 |
| commit | 577bbaceb982623ecd2b220a31a162ccb3b1d378 (patch) | |
| tree | f997dbf4bc1e6f4907213d6cbbb36af2f34a0568 /src/libstd | |
| parent | 6cd748611346dec3181f81ca3aa551cce0529343 (diff) | |
| download | rust-577bbaceb982623ecd2b220a31a162ccb3b1d378.tar.gz rust-577bbaceb982623ecd2b220a31a162ccb3b1d378.zip | |
Add note about filesystems to fs::rename
Fixes #24816
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fs.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 5a05c61e064..0a19350851e 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -844,6 +844,8 @@ pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> { /// Rename a file or directory to a new name. /// +/// This will not work if the new name is on a different mount point. +/// /// # Errors /// /// This function will return an error if the provided `from` doesn't exist, if |
