about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristiaan Dirkx <christiaan@dirkx.email>2021-06-20 12:06:19 +0200
committerChristiaan Dirkx <christiaan@dirkx.email>2021-06-20 12:06:19 +0200
commitad7b8975e08cc9ded5352c6771af3c8bf5c1b818 (patch)
tree9596a05c74755283db27afaeb185c147d55944ca
parent835561ac5b3529a827c76dc4e7cea15f38047b5a (diff)
downloadrust-ad7b8975e08cc9ded5352c6771af3c8bf5c1b818.tar.gz
rust-ad7b8975e08cc9ded5352c6771af3c8bf5c1b818.zip
Add comment to `std::os::unix::ffi::os_str` explaining that the module is reused on other platforms.
-rw-r--r--library/std/src/os/unix/ffi/os_str.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/os/unix/ffi/os_str.rs b/library/std/src/os/unix/ffi/os_str.rs
index f2402c13c91..54c9a9382f2 100644
--- a/library/std/src/os/unix/ffi/os_str.rs
+++ b/library/std/src/os/unix/ffi/os_str.rs
@@ -4,6 +4,9 @@ use crate::sealed::Sealed;
 use crate::sys::os_str::Buf;
 use crate::sys_common::{AsInner, FromInner, IntoInner};
 
+// Note: this file is currently reused in other `std::os::{platform}::ffi` modules to reduce duplication.
+// Keep this in mind when applying changes to this file that only apply to `unix`.
+
 /// Platform-specific extensions to [`OsString`].
 ///
 /// This trait is sealed: it cannot be implemented outside the standard library.