about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgimbles <yusharora@protonmail.com>2022-05-06 22:51:13 +0530
committergimbles <yusharora@protonmail.com>2022-05-06 22:51:13 +0530
commit0a80bb43e5075c9ded49374fc008db7f70965cfe (patch)
tree596686e50e3b6c2e6dc8085726c1a8d1c03a5cf4
parentbb1a03c4fcbe547168fab128fa39b08d1122a1c2 (diff)
downloadrust-0a80bb43e5075c9ded49374fc008db7f70965cfe.tar.gz
rust-0a80bb43e5075c9ded49374fc008db7f70965cfe.zip
[feat] Make sys::windows::os_str::Slice repr(transparent)
-rw-r--r--library/std/src/sys/windows/os_str.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/os_str.rs b/library/std/src/sys/windows/os_str.rs
index 78e92a3331a..7661bc8eb0b 100644
--- a/library/std/src/sys/windows/os_str.rs
+++ b/library/std/src/sys/windows/os_str.rs
@@ -44,7 +44,8 @@ impl fmt::Display for Buf {
     }
 }
 
-pub struct Slice {
+#[repr(transparent)]
+pub(crate) struct Slice {
     pub inner: Wtf8,
 }