diff options
| author | Martin Pool <mbp@sourcefrog.net> | 2022-03-29 19:43:40 -0700 |
|---|---|---|
| committer | Martin Pool <mbp@sourcefrog.net> | 2022-03-29 19:49:15 -0700 |
| commit | cfee2ed8cb1c77e5bf841d52771e95e99f4fcac3 (patch) | |
| tree | 568472292bd79513d67c147956c7e4ef17c79798 | |
| parent | 93e9f5e96692f46c279c5d8d8096c613a9728925 (diff) | |
| download | rust-cfee2ed8cb1c77e5bf841d52771e95e99f4fcac3.tar.gz rust-cfee2ed8cb1c77e5bf841d52771e95e99f4fcac3.zip | |
Warn that platform-specific behavior may change
| -rw-r--r-- | library/std/src/fs.rs | 2 | ||||
| -rw-r--r-- | library/std/src/io/copy.rs | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 9daf694d68b..46acd0ee4c5 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -1739,7 +1739,7 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()> /// /// On MacOS, this function corresponds to `fclonefileat` and `fcopyfile`. /// -/// Note that, this [may change in the future][changes]. +/// Note that platform-specific behavior [may change in the future][changes]. /// /// [changes]: io#platform-specific-behavior /// diff --git a/library/std/src/io/copy.rs b/library/std/src/io/copy.rs index d446af0dad3..1a10245e4a5 100644 --- a/library/std/src/io/copy.rs +++ b/library/std/src/io/copy.rs @@ -45,6 +45,10 @@ use crate::mem::MaybeUninit; /// On Linux (including Android), this function uses `copy_file_range(2)`, /// `sendfile(2)` or `splice(2)` syscalls to move data directly between file /// descriptors if possible. +/// +/// Note that platform-specific behavior [may change in the future][changes]. +/// +/// [changes]: crate::io#platform-specific-behavior #[stable(feature = "rust1", since = "1.0.0")] pub fn copy<R: ?Sized, W: ?Sized>(reader: &mut R, writer: &mut W) -> Result<u64> where |
