about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-09 02:25:32 +0000
committerbors <bors@rust-lang.org>2022-05-09 02:25:32 +0000
commitdb5b365fb0e7aa5f59d80236f520f5afc6e39ff4 (patch)
treeb01271f3c8ef5b51df2686af33369bb1c80dd4d6 /library/std/src
parenta57117982aa99f410f6efcba511998c1161adfb8 (diff)
parent3b5fe261febbba990633d0db794307a386bd401c (diff)
downloadrust-db5b365fb0e7aa5f59d80236f520f5afc6e39ff4.tar.gz
rust-db5b365fb0e7aa5f59d80236f520f5afc6e39ff4.zip
Auto merge of #96802 - gimbles:windows_slice, r=thomcc
[feat] Make sys::windows::os_str::Slice repr(transparent)

Fixes #96577
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/sys/windows/os_str.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/windows/os_str.rs b/library/std/src/sys/windows/os_str.rs
index 78e92a3331a..11883f15022 100644
--- a/library/std/src/sys/windows/os_str.rs
+++ b/library/std/src/sys/windows/os_str.rs
@@ -44,6 +44,7 @@ impl fmt::Display for Buf {
     }
 }
 
+#[repr(transparent)]
 pub struct Slice {
     pub inner: Wtf8,
 }